-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44091 from CTPPS/CMSSW_14_0_X_feature_hltGtStage2…
…Digis_in_ALCARECO_backport [PPS] Added gtStage2DigisAlCaRecoProducer to ALCARECOPRODUCER [14_0_X backport]
- Loading branch information
Showing
10 changed files
with
131 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Running tests on lxplus | ||
|
||
|
||
## Using scram | ||
|
||
To be able to run tests locally enable re-director used internally by `cmsbuild`: | ||
|
||
``` | ||
CMS_PATH="/cvmfs/cms-ib.cern.ch" SITECONFIG_PATH="/cvmfs/cms-ib.cern.ch/SITECONF/local" scram b runtests | ||
``` | ||
|
||
## Manually (to inspect test output files) | ||
|
||
To run the tests in this directory (`Calibration/PPSAlCaRecoProducer/test/`) type: | ||
|
||
``` | ||
CMS_PATH="/cvmfs/cms-ib.cern.ch" SITECONFIG_PATH="/cvmfs/cms-ib.cern.ch/SITECONF/local" ./test_express_AlCaRecoProducer.sh | ||
``` | ||
|
||
and | ||
|
||
``` | ||
SCRAM_TEST_PATH=. ./test_express_PPSAlCaReco_output.sh | ||
``` | ||
|
||
The same can be done for prompt tests |
51 changes: 27 additions & 24 deletions
51
Calibration/PPSAlCaRecoProducer/test/test_express_AlCaRecoProducer.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
#!/bin/bash | ||
function die { echo $1: status $2; exit $2; } | ||
|
||
customise_commands="process.GlobalTag.toGet = cms.VPSet()\ | ||
\nprocess.GlobalTag.toGet.append(cms.PSet(record = cms.string(\"AlCaRecoTriggerBitsRcd\"),tag = cms.string(\"AlCaRecoHLTpaths_PPS2022_express_v1\"), connect = cms.string(\"frontier://FrontierProd/CMS_CONDITIONS\")))\ | ||
\nprocess.GlobalTag.toGet.append(cms.PSet(record = cms.string(\"PPSTimingCalibrationLUTRcd\"),tag = cms.string(\"PPSDiamondTimingCalibrationLUT_test\"), connect = cms.string(\"frontier://FrontierProd/CMS_CONDITIONS\")))\ | ||
\nprocess.ALCARECOPPSCalMaxTracksFilter.TriggerResultsTag = cms.InputTag(\"TriggerResults\",\"\",\"HLTX\")" | ||
# customisation command needed for all tests cases | ||
COMMON_CUSTOM="process.ALCARECOPPSCalMaxTracksFilter.TriggerResultsTag = cms.InputTag(\"TriggerResults\",\"\",\"HLTX\")" | ||
|
||
INPUTFILE="/store/group/alca_global/pps_alcareco_producer_tests/outputALCAPPS_single.root" | ||
COMMMAND=`xrdfs cms-xrd-global.cern.ch locate $INPUTFILE` | ||
STATUS=$? | ||
echo "xrdfs command status = "$STATUS | ||
if [ $STATUS -eq 0 ]; then | ||
echo "Using file ${INPUTFILE}. Running in ${SCRAM_TEST_PATH}." | ||
# test on 2022 data | ||
INPUTFILE_355207="/store/data/Run2022B/AlCaPPS/RAW/v1/000/355/207/00000/c23440f4-49c0-44aa-b8f6-f40598fb4705.root" | ||
|
||
# new test on generated data, with same structure as data expected in 2024 | ||
INPUTFILE_367104="/store/group/alca_global/pps_alcareco_producer_tests/outputALCAPPSExpress.root" | ||
|
||
# all input files and customisation commands to loop through | ||
INPUTFILES=($INPUTFILE_355207 $INPUTFILE_367104) | ||
|
||
# test case loop | ||
for TEST_RUN_NO in {0..1}; do | ||
INPUTFILE=${INPUTFILES[$TEST_RUN_NO]} | ||
echo "Using file: ${INPUTFILE} , Running in: ${SCRAM_TEST_PATH} ." | ||
(cmsDriver.py testExpressPPSAlCaRecoProducer -s ALCAPRODUCER:PPSCalMaxTracks,ENDJOB \ | ||
--process ALCARECO \ | ||
--scenario pp \ | ||
--era ctpps_2018 \ | ||
--conditions auto:run3_data_express \ | ||
--data \ | ||
--datatier ALCARECO \ | ||
--eventcontent ALCARECO \ | ||
--nThreads 8 \ | ||
--number 100 --filein ${INPUTFILE} \ | ||
--fileout file:outputALCAPPS_RECO_express.root \ | ||
--customise_commands="$customise_commands") || die 'failed running test_express_AlCaRecoProducer' $? | ||
else | ||
die "SKIPPING test, file ${INPUTFILE} not found" 0 | ||
fi | ||
--process ALCARECO \ | ||
--scenario pp \ | ||
--era run3_common \ | ||
--conditions auto:run3_data_express \ | ||
--data \ | ||
--datatier ALCARECO \ | ||
--eventcontent ALCARECO \ | ||
--nThreads 8 \ | ||
--number 100 --filein ${INPUTFILE} \ | ||
--fileout file:outputALCAPPS_RECO_express_test${TEST_RUN_NO}.root \ | ||
--customise_commands="$COMMON_CUSTOM") || die 'failed running test_express_AlCaRecoProducer' $? | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
Calibration/PPSAlCaRecoProducer/test/test_express_PPSAlCaReco_output.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
function die { echo $1: status $2; exit $2; } | ||
|
||
(cmsRun ${SCRAM_TEST_PATH}/test_express_PPSAlCaReco_output.py) || die 'failed running test_express_PPSAlCaReco_output.py' $? | ||
cmsRun ${SCRAM_TEST_PATH}/test_express_PPSAlCaReco_output.py inputFiles=file:outputALCAPPS_RECO_express_test0.root runNo=355207 || die 'failed running test_express_PPSAlCaReco_output.py' $? | ||
cmsRun ${SCRAM_TEST_PATH}/test_express_PPSAlCaReco_output.py inputFiles=file:outputALCAPPS_RECO_express_test1.root runNo=367104 || die 'failed running test_express_PPSAlCaReco_output.py' $? |
55 changes: 28 additions & 27 deletions
55
Calibration/PPSAlCaRecoProducer/test/test_prompt_AlCaRecoProducer.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
#!/bin/bash | ||
function die { echo $1: status $2; exit $2; } | ||
|
||
customise_commands="process.GlobalTag.toGet = cms.VPSet()\ | ||
\nprocess.GlobalTag.toGet.append(cms.PSet(record = cms.string(\"AlCaRecoTriggerBitsRcd\"),tag = cms.string(\"AlCaRecoHLTpaths_PPS2022_prompt_v1\"), connect = cms.string(\"frontier://FrontierProd/CMS_CONDITIONS\")))\ | ||
\nprocess.GlobalTag.toGet.append(cms.PSet(record = cms.string(\"PPSTimingCalibrationLUTRcd\"),tag = cms.string(\"PPSDiamondTimingCalibrationLUT_test\"), connect = cms.string(\"frontier://FrontierProd/CMS_CONDITIONS\")))\ | ||
\nprocess.ALCARECOPPSCalMaxTracksFilter.TriggerResultsTag = cms.InputTag(\"TriggerResults\",\"\",\"HLTX\")" | ||
# customisation command needed for all tests cases | ||
COMMON_CUSTOM="process.ALCARECOPPSCalMaxTracksFilter.TriggerResultsTag = cms.InputTag(\"TriggerResults\",\"\",\"HLTX\")" | ||
|
||
INPUTFILE="/store/group/alca_global/pps_alcareco_producer_tests/outputALCAPPS_single.root" | ||
COMMMAND=`xrdfs cms-xrd-global.cern.ch locate $INPUTFILE` | ||
STATUS=$? | ||
echo "xrdfs command status = "$STATUS | ||
if [ $STATUS -eq 0 ]; then | ||
echo "Using file ${INPUTFILE}. Running in ${SCRAM_TEST_PATH}." | ||
# note we currently use `auto:run3_data_express` GT | ||
# the correct GT (auto:run3_data_prompt) doesn't have LHCInfo record for run 322022 which corresponds to our face ALCARAW file | ||
(cmsDriver.py testPromptPPSAlCaRecoProducer -s ALCAPRODUCER:PPSCalMaxTracks,ENDJOB \ | ||
--process ALCARECO \ | ||
--scenario pp \ | ||
--era ctpps_2018 \ | ||
--conditions auto:run3_data_express \ | ||
--data \ | ||
--datatier ALCARECO \ | ||
--eventcontent ALCARECO \ | ||
--nThreads 8 \ | ||
--number 100 --filein ${INPUTFILE} \ | ||
--fileout file:outputALCAPPS_RECO_prompt.root \ | ||
--customise_commands="$customise_commands") || die 'failed running test_prompt_AlCaRecoProducer' $? | ||
else | ||
die "SKIPPING test, file ${INPUTFILE} not found" 0 | ||
fi | ||
# test on 2022 data | ||
INPUTFILE_355207="/store/data/Run2022B/AlCaPPS/RAW/v1/000/355/207/00000/c23440f4-49c0-44aa-b8f6-f40598fb4705.root" | ||
|
||
# new test on generated data, with same structure as data expected in 2024 | ||
INPUTFILE_367104="/store/group/alca_global/pps_alcareco_producer_tests/outputALCAPPSPrompt.root" | ||
|
||
# all input files and customisation commands to loop through | ||
INPUTFILES=($INPUTFILE_355207 $INPUTFILE_367104) | ||
|
||
# test case loop | ||
for TEST_RUN_NO in {0..1}; do | ||
INPUTFILE=${INPUTFILES[$TEST_RUN_NO]} | ||
echo "Using file: ${INPUTFILE} , Running in: ${SCRAM_TEST_PATH} ." | ||
(cmsDriver.py testpromptPPSAlCaRecoProducer -s ALCAPRODUCER:PPSCalMaxTracks,ENDJOB \ | ||
--process ALCARECO \ | ||
--scenario pp \ | ||
--era run3_common \ | ||
--conditions auto:run3_data_prompt \ | ||
--data \ | ||
--datatier ALCARECO \ | ||
--eventcontent ALCARECO \ | ||
--nThreads 8 \ | ||
--number 100 --filein ${INPUTFILE} \ | ||
--fileout file:outputALCAPPS_RECO_prompt_test${TEST_RUN_NO}.root \ | ||
--customise_commands="$COMMON_CUSTOM") || die 'failed running test_prompt_AlCaRecoProducer' $? | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
Calibration/PPSAlCaRecoProducer/test/test_prompt_PPSAlCaReco_output.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
function die { echo $1: status $2; exit $2; } | ||
|
||
(cmsRun ${SCRAM_TEST_PATH}/test_prompt_PPSAlCaReco_output.py) || die 'failed running test_prompt_PPSAlCaReco_output.py' $? | ||
cmsRun ${SCRAM_TEST_PATH}/test_prompt_PPSAlCaReco_output.py inputFiles=file:outputALCAPPS_RECO_prompt_test0.root runNo=355207 || die 'failed running test_prompt_PPSAlCaReco_output.py' $? | ||
cmsRun ${SCRAM_TEST_PATH}/test_prompt_PPSAlCaReco_output.py inputFiles=file:outputALCAPPS_RECO_prompt_test1.root runNo=367104 || die 'failed running test_prompt_PPSAlCaReco_output.py' $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters