Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:27

0001 #!/bin/bash
0002 
0003 DirRootFiles='/eos/cms/store/user/zhokin/PSM/HcalNZS/2018'
0004 
0005 echo $DirRootFiles
0006 fileName=$1
0007 echo $fileName
0008 DIROUT=$2
0009 echo $DIROUT
0010 
0011 # Obtain the runList from a file, if needed
0012 #runList=""
0013 runList=`cat ${fileName}`
0014 for i in ${runList} ; do
0015 NRUN=$i
0016 echo $NRUN
0017 
0018 list=`ls $DirRootFiles/$NRUN/HcalNZS/crab_*_*/*_*/0000/Global_*.root`
0019 echo $list
0020 echo " start hadd   "
0021 hadd Global_$NRUN.root $list
0022 
0023 
0024 echo " start copying"
0025 mv Global_$NRUN.root $DIROUT/.
0026 
0027 done
0028