Skip to content

Commit

Permalink
adding runtest for tau reconstruction based on miniAOD input
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-wolf committed Apr 18, 2018
1 parent 32f2eea commit f77ae6c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions RecoTauTag/RecoTau/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@
<use name="root"/>
<flags EDM_PLUGIN="1"/>
</library>
<environment>
<bin file="runtestRecoTauTagRecoTau.cpp">
<flags TEST_RUNNER_ARGS=" /bin/bash RecoTauTag/RecoTau/test runtests.sh"/>
<use name="FWCore/Utilities"/>
</bin>
</environment>
4 changes: 3 additions & 1 deletion RecoTauTag/RecoTau/test/rerunTauRecoOnMiniAOD.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
if runSignal:
readFiles.extend( [
# 'file:patMiniAOD_standard.root'
'root://cms-xrd-global.cern.ch////store/relval/CMSSW_10_1_0/RelValZTT_13/MINIAODSIM/101X_upgrade2018_realistic_v6_resub-v1/10000/AE5162C1-0A38-E811-9FCA-0CC47A4D7634.root',
'/store/relval/CMSSW_10_1_0_pre3/RelValZTT_13UP18/MINIAODSIM/PUpmx25ns_101X_upgrade2018_realistic_v3_cc7-v1/10000/2808A251-DE31-E811-BFBC-0242AC130002.root'
#'/store/relval/CMSSW_10_1_0_pre1/RelValTTbar_13/MINIAODSIM/PU25ns_100X_mcRun2_asymptotic_v2_FastSim-v1/10000/72D398B6-8613-E811-B900-0CC47A4D75EE.root'
#'root://cms-xrd-global.cern.ch////store/relval/CMSSW_10_1_0/RelValZTT_13/MINIAODSIM/101X_upgrade2018_realistic_v6_resub-v1/10000/AE5162C1-0A38-E811-9FCA-0CC47A4D7634.root',
#'root://cms-xrd-global.cern.ch///store/relval/CMSSW_10_0_0_pre2/RelValZTT_13/MINIAODSIM/PUpmx25ns_100X_mc2017_realistic_v1-v1/20000/B01F0774-17E1-E711-9826-0CC47A4D7654.root',
] )
else:
Expand Down
3 changes: 3 additions & 0 deletions RecoTauTag/RecoTau/test/runtestRecoTauTagRecoTau.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "FWCore/Utilities/interface/TestHelper.h"

RUNTEST()
6 changes: 6 additions & 0 deletions RecoTauTag/RecoTau/test/runtests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

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

cmsRun ${LOCAL_TEST_DIR}/rerunTauRecoOnMiniAOD.py || die 'Failure using rerunTauRecoOnMiniAOD.py' $?

0 comments on commit f77ae6c

Please sign in to comment.