Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-09 07:53:39

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 = "fbockExt" ]; then 
0019         if [ $2 = "muon" ]; then
0020                 dataDirOut=/media/fbock/Samsung_T5/LFHCAL_TB/202408_PST09/CAENdata/MuonRuns
0021                 runNr=$6
0022         elif [ $2 = "electron" ]; then
0023                 dataDirOut=/media/fbock/Samsung_T5/LFHCAL_TB/202408_PST09/CAENdata/ElectronRuns
0024                 runNr=$6
0025         elif [ $2 = "hadron" ]; then
0026                 dataDirOut=/media/fbock/Samsung_T5/LFHCAL_TB/202408_PST09/CAENdata/HadronRuns
0027                 runNr=$6
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 elif [ $1 = "eglimos" ]; then 
0033         if [ $2 = "muon" ]; then
0034                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/MuonRuns
0035                 runNr=376
0036         elif [ $2 = "electron" ]; then
0037                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/ElectronRuns
0038                 runNr=380
0039         elif [ $2 = "hadron" ]; then
0040                 dataDirOut=/home/ewa/EIC/test_beam2024/fullScanC/Output/HadronRuns
0041                 runNr=397
0042         else 
0043                 echo "Please select a beam type (muon, electron, or hadron), otherwise I don't know where the data is"
0044                 exit
0045         fi
0046 else
0047         echo "Please select a known user name, otherwise I don't know where the data is"
0048         exit
0049 fi
0050 
0051 runNrFile='../configs/DataTakingDB_202409_CAEN.csv'
0052 
0053 if [ $5 == "muonTrig" ]; then
0054         ./Display -i $dataDirOut/calibrated_Run_$runNr.root -r $runNrFile -P ../3DPlot/Run_$runNr/MuonTrig -e $3 -N $4 -M
0055 else
0056 #       ./Display -i $dataDirOut/calibrated_Run_$runNr.root -r $runNrFile -P ../3DPlot/Run_$runNr -e $3 -N $4 -d 0 -F png
0057         ./Display -i $dataDirOut/calibrated_Run_$runNr.root -r $runNrFile -P ../3DPlot/Run_$runNr -e $3 -N $4 -d 0 -F pdf
0058 fi 
0059