Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:16:41

0001 #!/usr/bin/bash
0002 start=${1?Error: no start file \# given}
0003 stop=${2?Error: no stop file \# given}
0004 bX=${3?Error: no beamX \# given}
0005 source /opt/sphenix/core/bin/sphenix_setup.sh -n new
0006 export MYINSTALL=/sphenix/user/shulga/tpc2019_install
0007 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0008  
0009 for (( f=$start; f<$stop; f++ ));
0010 do 
0011     #let Xstart=f*1000 Xend=(f+1)*1000;
0012     #A=$( printf '%06d' $Xstart )
0013     #B=$( printf '%06d' $Xend )
0014     let Xstart=f*100 Xend=(f+1)*100;
0015     A=$( printf '%05d' $f )
0016     B=$( printf '%06d' $Xend )
0017     #fname="/sphenix/user/shulga/Work/IBF/macros/detectors/sPHENIX/Files/DST_NoW_G4Hits_sHijing_0-12fm_"$A"_"$B".root" ;
0018     #fname="DST_TRKR_HIT_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000062-"$A".root" ;
0019     fname="DST_TRKR_HIT_sHijing_0_20fm-0000000006-"$A".root" ;
0020     foutputname="./Files/hist_G4Hits_sHijing_0-12fm_bX"$bX"_"$A"_"$B".root" ;
0021     echo $fname ;
0022     echo $foutputname ;
0023     root -l -b -q ./macros/Fun4All_FillDCMap.C\(100,$Xstart,$bX,\"$fname\",\"$foutputname\"\)
0024 done
0025 
0026 echo all done