Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:26

0001 #!/bin/bash
0002 function die { echo $1: status $2; exit $2; }
0003 
0004 # customisation command needed for all tests cases
0005 COMMON_CUSTOM="process.ALCARECOPPSCalMaxTracksFilter.TriggerResultsTag = cms.InputTag(\"TriggerResults\",\"\",\"HLTX\")"
0006 
0007 # test on 2022 data
0008 INPUTFILE_355207="/store/data/Run2022B/AlCaPPS/RAW/v1/000/355/207/00000/c23440f4-49c0-44aa-b8f6-f40598fb4705.root"
0009 
0010 # new test on generated data, with same structure as data expected in 2024
0011 INPUTFILE_367104="/store/group/alca_global/pps_alcareco_producer_tests/outputALCAPPSPrompt.root"
0012 
0013 # all input files and customisation commands to loop through
0014 INPUTFILES=($INPUTFILE_355207 $INPUTFILE_367104)
0015 
0016 # test case loop
0017 for TEST_RUN_NO in {0..1}; do
0018     INPUTFILE=${INPUTFILES[$TEST_RUN_NO]}
0019     echo "Using file: ${INPUTFILE} , Running in: ${SCRAM_TEST_PATH} ."
0020     (cmsDriver.py testpromptPPSAlCaRecoProducer -s ALCAPRODUCER:PPSCalMaxTracks,ENDJOB \
0021         --process ALCARECO \
0022         --scenario pp \
0023         --era run3_common \
0024         --conditions auto:run3_data_prompt \
0025         --data  \
0026         --datatier ALCARECO \
0027         --eventcontent ALCARECO \
0028         --nThreads 8 \
0029         --number 100 --filein ${INPUTFILE} \
0030         --fileout file:outputALCAPPS_RECO_prompt_test${TEST_RUN_NO}.root \
0031         --customise_commands="$COMMON_CUSTOM") || die 'failed running test_prompt_AlCaRecoProducer' $?
0032 done