Skip to content

Commit

Permalink
Add unit tests for PixBary validation
Browse files Browse the repository at this point in the history
  • Loading branch information
amecca committed Sep 11, 2024
1 parent 1180d72 commit 24db950
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Alignment/OfflineValidation/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<test name="MTSall" command="testingScripts/test_unitMTS.sh">
<flags PRE_TEST="validateAlignments"/>
</test>
<test name="PixBaryall" command="testingScripts/test_unitPixBary.sh">
<flags PRE_TEST="validateAlignments"/>
</test>
<bin file="testTrackAnalyzers.cc" name="testTrackAnalysis">
<use name="FWCore/TestProcessor"/>
<use name="catch2"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

runrange=376370-379254

thistest="Alignment/PixelBarycentre single yaml configuration unitTest (test 1/3)"
echo "TESTING $thistest..."
pushd test_yaml/PixBary/single/testSinglePixBary/unitTest/$runrange
./cmsRun validation_cfg.py config=validation.json || die "Failure running $thistest" $?
popd

thistest="Alignment/PixelBarycentre single yaml configuration mp3619 (test 2/3)"
echo "TESTING $thistest..."
pushd test_yaml/PixBary/single/testSinglePixBary/mp3619/$runrange
./cmsRun validation_cfg.py config=validation.json || die "Failure running $thistest" $?
popd

thistest="Alignment/PixelBarycentre single json configuration unitTest (test 3/3)"
echo "TESTING $thistest..."
pushd test_json/PixBary/single/testSinglePixBary/unitTest/$runrange
./cmsRun validation_cfg.py config=validation.json || die "Failure running $thistest" $?
popd
14 changes: 13 additions & 1 deletion Alignment/OfflineValidation/test/unit_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,19 @@
}
}
}
}
},
"PixBary": {
"single": {
"testSinglePixBary": {
"firstRun": 376370,
"lastRun": 379254,
"alignments": [
"unitTest",
"mp3619"
]
}
}
}
},
"style":{
"trends":{
Expand Down
8 changes: 8 additions & 0 deletions Alignment/OfflineValidation/test/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@ validations:
drawHistograms:
drawDz: true
drawDxy: true
PixBary:
single:
testSinglePixBary:
firstRun: 376370
lastRun: 379254
alignments:
- unitTest
- mp3619
style:
DMR:
averaged:
Expand Down

0 comments on commit 24db950

Please sign in to comment.