Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-21 07:51:37

0001 #! /bin/bash
0002 echo "username $1"
0003 echo "run option $2"
0004 
0005 if [ $1 = "fbockTB" ]; then 
0006         dataRaw=/media/fbock/Lennard4TB/SummingBoardTestFull/raw/                   # source directory for output files from DAQ system
0007         dataDir=/media/fbock/Lennard4TB/SummingBoardTestFull/HGCROCData            # base directory for root trees
0008 elif [ $1 = "ehagen" ]; then
0009         dataRaw=/Users/hagen/Downloads/data/
0010         dataDir=/Users/hagen/Downloads/data/converted
0011 fi
0012 
0013 
0014 # global run list for 2025 TB
0015 runList=""
0016 
0017 # default path for the HGCROC analysis
0018 if [ $2 = "SumTests" ]; then 
0019 
0020   runList=../configs/LocalTesting/DataTakingDB_ORNL_HGCROC_Cosmics_Summing_202603.csv
0021   # different mapping files for layering
0022   mapCon=../configs/LocalTesting/mapping_HGCROC_ORNL_SummingTest_2026_1.txt
0023   
0024   mkdir -p $dataDir/
0025         runs='206 207'
0026 #       runs='207'
0027 #       for runNr in $runs; do 
0028 #               ./Convert -d 0 -f -w -c $dataRaw/Run$runNr.h2g -o $dataDir/rawHGCROC_$runNr.root -m $mapCon -r $runList
0029 #       done
0030   
0031 #   mapCon=../configs/LocalTesting/mapping_HGCROC_ORNL_SummingTest_2026_v1.txt
0032 #       runs='223 224 225 226 227'
0033 #       for runNr in $runs; do 
0034 #               ./Convert -d 0 -f -w -c $dataRaw/Run$runNr.h2g -o $dataDir/rawHGCROC_$runNr.root -m $mapCon -r $runList
0035 #       done
0036 
0037   mapCon=../configs/LocalTesting/mapping_HGCROC_ORNL_SummingTest_2026_v2.txt
0038         runs='228 229 230 231 232 233 234'
0039 #       runs='234'
0040         for runNr in $runs; do 
0041                 ./Convert -d 5 -f -w -c $dataRaw/Run$runNr.h2g -o $dataDir/rawHGCROC_$runNr.root -m $mapCon -r $runList
0042         done    
0043         
0044 fi