Skip to content

Commit

Permalink
Merge pull request #31565 from apsallid/addhgcalmatbudunitest
Browse files Browse the repository at this point in the history
[HGCal] Add unit test for HGCal material budget plots
  • Loading branch information
cmsbuild committed Oct 1, 2020
2 parents d0c137b + 846bb2a commit 396662c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Validation/Geometry/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<!--CMSBot IB tests-->
<test name="materialBudgetTrackerPlots" command="genTrackerPlots.sh"/>
<test name="materialBudgetHGCalPlots" command="genHGCalPlots.sh"/>
14 changes: 14 additions & 0 deletions Validation/Geometry/test/genHGCalPlots.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -ex

geom=Extended2026D62
VGEO_DIR=$CMSSW_BASE/src/Validation/Geometry
TEST_DIR=${VGEO_DIR}/test/materialBudgetHGCalPlots

if [ -d $TEST_DIR ] ; then rm -rf $TEST_DIR ; fi
mkdir $TEST_DIR && cd $TEST_DIR

cmsRun ${VGEO_DIR}/test/single_neutrino_cfg.py nEvents=1 >$TEST_DIR/single_neutrino_cfg.log 2>&1

python ${VGEO_DIR}/test/runP_HGCal_cfg.py geom=${geom} label=HGCal >$TEST_DIR/runP_HGCal_cfg_${geom}.log 2>&1
python ${VGEO_DIR}/test/MaterialBudgetHGCal.py -s -d HGCal

0 comments on commit 396662c

Please sign in to comment.