-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcheck_cuts.sh
More file actions
executable file
·39 lines (35 loc) · 1.79 KB
/
check_cuts.sh
File metadata and controls
executable file
·39 lines (35 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/bash
#
# Description:
# ================================================================
# Time-stamp: "2023-03-22 17:20:28 trottar"
# ================================================================
#
# Author: Richard L. Trotta III <trotta@cua.edu>
#
# Copyright (c) trottar
#
# Runs script in the ltsep python package that grabs current path enviroment
if [[ ${HOSTNAME} = *"cdaq"* ]]; then
PATHFILE_INFO=`python3 /home/cdaq/pionLT-2021/hallc_replay_lt/UTIL_PION/bin/python/ltsep/scripts/getPathDict.py $PWD` # The output of this python script is just a comma separated string
elif [[ "${HOSTNAME}" = *"farm"* ]]; then
PATHFILE_INFO=`python3 /u/home/${USER}/.local/lib/python3.4/site-packages/ltsep/scripts/getPathDict.py $PWD` # The output of this python script is just a comma separated string
fi
# Split the string we get to individual variables, easier for printing and use later
VOLATILEPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f1` # Cut the string on , delimitter, select field (f) 1, set variable to output of command
ANALYSISPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f2`
HCANAPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f3`
REPLAYPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f4`
UTILPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f5`
PACKAGEPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f6`
OUTPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f7`
ROOTPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f8`
REPORTPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f9`
CUTPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f10`
PARAMPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f11`
SCRIPTPATH=`echo ${PATHFILE_INFO} | cut -d ',' -f12`
ANATYPE=`echo ${PATHFILE_INFO} | cut -d ',' -f13`
USER=`echo ${PATHFILE_INFO} | cut -d ',' -f14`
HOST=`echo ${PATHFILE_INFO} | cut -d ',' -f15`
cd $UTILPATH/bin/cut_check/
python3 readin_run_type.py