Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 09:39:24

0001 #! /bin/bash
0002 dataDirOut=""
0003 runNr=""
0004 if [ $1 = "fbock" ]; then 
0005         if [ $2 = "muon" ]; then
0006                 dataDirOut=/home/fbock/EIC/Analysis/LFHCalTB2024/CAENdata/MuonRuns
0007                 runNr=$6
0008         elif [ $2 = "electron" ]; then
0009                 dataDirOut=/home/fbock/EIC/Analysis/LFHCalTB2024/CAENdata/ElectronRuns
0010                 runNr=$6
0011         elif [ $2 = "hadron" ]; then
0012                 dataDirOut=/home/fbock/EIC/Analysis/LFHCalTB2024/CAENdata/HadronRuns
0013                 runNr=$6
0014         else 
0015                 echo "Please select a beam type (muon, electron, or hadron), otherwise I don't know where the data is"
0016                 exit
0017         fi
0018 elif [ $1 = "eglimos" ]; then 
0019         if [ $2 = "muon" ]; then
0020                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/MuonRuns
0021                 runNr=376
0022         elif [ $2 = "electron" ]; then
0023                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/ElectronRuns
0024                 runNr=380
0025         elif [ $2 = "hadron" ]; then
0026                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/HadronRuns
0027                 runNr=397
0028         else 
0029                 echo "Please select a beam type (muon, electron, or hadron), otherwise I don't know where the data is"
0030                 exit
0031         fi
0032 else
0033         echo "Please select a known user name, otherwise I don't know where the data is"
0034         exit
0035 fi
0036 
0037 runNrFile='../configs/DataTakingDB_202409_CAEN.csv'
0038 
0039 if [ $5 == "muonTrig" ]; then
0040         ./Display -i $dataDirOut/calibrated_Run_$runNr.root -r $runNrFile -P ../3DPlot/Run_$runNr/MuonTrig -e $3 -N $4 -M
0041 else
0042         ./Display -i $dataDirOut/calibrated_Run_$runNr.root -r $runNrFile -P ../3DPlot/Run_$runNr -e $3 -N $4
0043 fi 
0044