|
53 | 53 | echo "WARNING!!! The number of events in the strip filter file ($stripCounts) does NOT match expectations (10)." |
54 | 54 | exit 1 |
55 | 55 | fi |
| 56 | + |
| 57 | +# Now take as input file an express FEVT file from 2024 pp running, run 380032 |
| 58 | +# https://cmsoms.cern.ch/cms/runs/lumisection?cms_run=380032 |
| 59 | +# it has all partitions ON excepted TIBTID (which was affected by a bad setting of the DCS bit) |
| 60 | + |
| 61 | +INPUTFILE="/store/express/Run2024C/ExpressPhysics/FEVT/Express-v1/000/380/032/00000/26a18459-49a8-4e3c-849c-9b3e4c09712e.root" |
| 62 | + |
| 63 | +# test Strips |
| 64 | +printf "TESTING Strips with all partitions...\n\n" |
| 65 | +cmsRun ${SCRAM_TEST_PATH}/test_DetectorStateFilter_cfg.py maxEvents=10 isStrip=True inputFiles=$INPUTFILE outputFile=outStrips_run380032_all.root || die "Failure filtering on strips" $? |
| 66 | + |
| 67 | +printf "TESTING Strips with only TIBTID partitions...\n\n" |
| 68 | +cmsRun ${SCRAM_TEST_PATH}/test_DetectorStateFilter_cfg.py maxEvents=10 isStrip=True inputFiles=$INPUTFILE testCombinations='TIBTID' outputFile=outStrips_run380032_TIBTID.root || die "Failure filtering on strips" $? |
| 69 | + |
| 70 | +printf "TESTING Strips with several OK partition combinations...\n\n" |
| 71 | +cmsRun ${SCRAM_TEST_PATH}/test_DetectorStateFilter_cfg.py maxEvents=10 isStrip=True inputFiles=$INPUTFILE testCombinations='TOB+TECp+TECm','TIBTID+TECp+TECm','TECp+TECm' outputFile=outStrips_run380032_OKCombos.root || die "Failure filtering on strips" $? |
| 72 | + |
| 73 | +# count events |
| 74 | +allPartsCounts=`countEvents outStrips_run380032_all_numEvent10.root` |
| 75 | +onlyTIBTIDCounts=`countEvents outStrips_run380032_TIBTID_numEvent10.root` |
| 76 | +combinationCounts=`countEvents outStrips_run380032_OKCombos_numEvent10.root` |
| 77 | + |
| 78 | +if [[ $allPartsCounts -eq 0 ]] |
| 79 | +then |
| 80 | + echo "The number of events in the all partitions filter file matches expectations ($allPartsCounts)." |
| 81 | +else |
| 82 | + echo "WARNING!!! The number of events in the pixel filter file ($allPartsCounts) does NOT match expectations (0)." |
| 83 | + exit 1 |
| 84 | +fi |
| 85 | + |
| 86 | +if [[ $onlyTIBTIDCounts -eq 0 ]] |
| 87 | +then |
| 88 | + echo "The number of events in the all partitions filter file matches expectations ($onlyTIBTIDCounts)." |
| 89 | +else |
| 90 | + echo "WARNING!!! The number of events in the pixel filter file ($onlyTIBTIDCounts) does NOT match expectations (0)." |
| 91 | + exit 1 |
| 92 | +fi |
| 93 | + |
| 94 | +if [[ $combinationCounts -eq 10 ]] |
| 95 | +then |
| 96 | + echo "The number of events in the all partitions filter file matches expectations ($combinationCounts)." |
| 97 | +else |
| 98 | + echo "WARNING!!! The number of events in the pixel filter file ($combinationCounts) does NOT match expectations (10)." |
| 99 | + exit 1 |
| 100 | +fi |
0 commit comments