Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:44

0001 #! /bin/bash
0002 baseDir=""
0003 if [ $1 = "fbock" ]; then 
0004   baseDir=/media/fbock/Samsung_T5/LFHCAL_TB/202309_SPSH4
0005 else
0006   echo "Please select a known user name, otherwise I don't know where the data is"
0007   exit
0008 fi
0009 
0010 
0011 if [ $2 == "single" ]; then 
0012   runs='145'
0013   dataDir=$baseDir/pionsEnergyScan
0014   for runNr in $runs; do   
0015     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 3 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0016     ./Analyse -d 1 -p -i $dataDir/raw_$runNr.root -f -o $dataDir/PedestalCalib_$runNr.root
0017   done;
0018 else 
0019 #   runs='47 48 50 51 52 53 54 74 75 76 77 78 79 80 81 82 142 143 144 145 146 147 148 149' 
0020 #   dataDir=$baseDir/pionsEnergyScan
0021 #   for runNr in $runs; do 
0022 #     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0023 #   done;
0024   runs='120 121' 
0025   dataDir=$baseDir/pions300GeV_positionScan
0026   for runNr in $runs; do 
0027     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0028   done;
0029   runs='30 31 32 33 34 35 36 ' 
0030   dataDir=$baseDir/pions360GeV_PositionScan
0031   for runNr in $runs; do 
0032     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0033   done;
0034 #   runs='99 100 101 102 104 124 125' 
0035 #   dataDir=$baseDir/electron60GeV-VoltageScan
0036 #   for runNr in $runs; do 
0037 #     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0038 #   done;
0039 #   runs='105 106 107 108' 
0040 #   dataDir=$baseDir/electron60GeV_GainScan
0041 #   for runNr in $runs; do 
0042 #     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0043 #   done;
0044 #   runs='55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 83 85 86 87 88 89 90 91 140 141' 
0045 #   dataDir=$baseDir/electron_EnergyScan
0046 #   for runNr in $runs; do 
0047 #     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0048 #   done;
0049 #   runs='3 20 21 22 23 24 150 152 153'
0050 #   dataDir=$baseDir/electrons100GeV_positionScan
0051 #   for runNr in $runs; do 
0052 #     ./Analyse -c $dataDir/Run$runNr\_list.root -o $dataDir/raw_$runNr.root -d 1 -f -m ../configs/mappingTBSetupNewStructure_Sept2023_SPSfirstdays.txt -r ../configs/DataTakingDB_TBSept2023_SPSH4.csv
0053 #   done;
0054 fi