Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:03:53

0001 #! /bin/bash
0002 
0003 # bash runCompareHGCROC_TBPST10_202604.sh $USERNAME [calib/ana] [R/V] $OPTION
0004 # R: trending plots vs run#. V: trending plots vs Vop.
0005 # options: HVScan1, FullSetC, FullSetD
0006 
0007 runList=../configs/TB2026/DataTakingDB_TBPST10_202604_HGCROC.csv
0008 
0009 if [ $1 == "yale" ]; then
0010         mkdir -p ../Trending/$2/TB2026/PS/$4/$3
0011         mkdir -p ../Trending/$2/TB2026/PS/$4/$3/plots
0012         dirOut=../Trending/$2/TB2026/PS/$4/$3
0013         PlotBaseDir=../Trending/$2/TB2026/PS/$4/$3/plots
0014         calibFileList=calibFileList_202604_$4.txt
0015         anaFileList=anaFileList_202604_$4.txt
0016 else
0017         echo "Please select a known user name, otherwise I don't know where the data is"
0018         exit
0019 fi
0020 
0021 if [ $3 == "V" ]; then
0022         plotNameSuff=Volt_$4
0023 elif [ $3 == "R" ]; then
0024         plotNameSuff=RunNr_$4
0025 else
0026         echo "Useage: bash runCompareHGCROC_TBPST10_202604.sh $USERNAME [calib/ana] [R/V] [dataset]"
0027         exit
0028 fi
0029 
0030 if [ $2 == "calib" ]; then
0031 #       if [ $3 == "V" ]; then
0032 #               plotNameSuff=Volt_$4
0033 #       elif [ $3 == "R" ]; then
0034 #               plotNameSuff=RunNr_$4
0035 #       else
0036 #               echo "Useage: bash runCompareHGCROC_TBPST10_202604.sh $USERNAME [calib/ana] [R/V] [dataset]"
0037 #               exit
0038 #       fi      
0039         ./CompareCalib -F pdf -e 1 -d 1 -f -$3 -H -I $calibFileList -o $dirOut/TrendingAllCalibs_$plotNameSuff.root -O $PlotBaseDir -r $runList
0040         
0041 elif [ $2 == "ana" ]; then
0042         if [[ $4 == *"HVScan"* ]]; then
0043                 ./CompareAna -F pdf -e 1 -d 0 -f -$3 -s -I $anaFileList -o $dirOut/TrendingAllAna_$plotNameSuff.root -O $PlotBaseDir -r $runList
0044         else
0045                 ./CompareAna -F pdf -e 1 -d 0 -f -$3 -I $anaFileList -o $dirOut/TrendingAllAna_$plotNameSuff.root -O $PlotBaseDir -r $runList
0046         fi
0047 else
0048         echo "Useage: bash runCompareHGCROC_TBPST10_202604.sh $USERNAME [calib/ana] [R/V] [dataset]"
0049         exit
0050 fi