Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-05-23 02:04:59

0001 #!/bin/bash
0002 
0003 test=ref_merge_
0004 
0005 function die { echo Failure $1: status $2 ; exit $2 ; }
0006 
0007 LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
0008   echo ${test}prod1 ------------------------------------------------------------
0009   cmsRun ${LOCAL_TEST_DIR}/${test}prod_cfg.py --extraProducers --fileName 'ref_merge_prod1.root' || die "cmsRun ${test}prod_cfg.py --extraProducers" $?
0010 
0011   echo ${test}prod2 ------------------------------------------------------------
0012   cmsRun ${LOCAL_TEST_DIR}/${test}prod_cfg.py --firstLumi 10 --fileName 'ref_merge_prod2.root'|| die "cmsRun ${test}prod_cfg.py" $?
0013 
0014   echo ${test}MERGE------------------------------------------------------------
0015   cmsRun ${LOCAL_TEST_DIR}/${test}cfg.py --inFile1 'ref_merge_prod1.root' --inFile2 'ref_merge_prod2.root' --outFile 'ref_merge.root' || die "cmsRun ${test}cfg.py" $?
0016 
0017 
0018   echo ${test}MERGE promptRead------------------------------------------------------------
0019   cmsRun ${LOCAL_TEST_DIR}/${test}test_cfg.py --fileName 'ref_merge.root'  --promptRead || die "cmsRun ${test}test_cfg.py" $?
0020 
0021   echo ${test}keepAllProd ------------------------------------------------------------
0022   cmsRun ${LOCAL_TEST_DIR}/${test}prod_cfg.py --extraProducers --keepAllProducts --fileName 'ref_merge_prod_all.root' || die "cmsRun ${test}prod_cfg.py --keepAllProducts" $?
0023 
0024   echo ${test}MERGE_keepAll1st ------------------------------------------------------------
0025   cmsRun ${LOCAL_TEST_DIR}/${test}cfg.py --inFile1 'ref_merge_prod_all.root' --inFile2 'ref_merge_prod2.root' --outFile 'ref_merge_all1st.root' || die "cmsRun ${test}cfg.py" $?
0026 
0027   echo ${test}test_all1st------------------------------------------------------------
0028   cmsRun ${LOCAL_TEST_DIR}/${test}test_cfg.py --fileName 'ref_merge_all1st.root' || die "cmsRun ${test}test_cfg.py all1st" $?
0029 
0030   #note having all be the second file does not work as PoolSource enforces that subsequent files must have a strict subset
0031   # of the branches in the first file read
0032 
0033 exit 0