Skip to content

Commit

Permalink
Add data unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Brochet committed Sep 22, 2015
1 parent a12dbbb commit 0b85fab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ function die { echo $1: status $2 ; exit $2; }

F1=${LOCAL_TEST_DIR}/unit_tests_mc.py
(cmsRun $F1 ) || die "Failure using $F1" $?

F2=${LOCAL_TEST_DIR}/unit_tests_data.py
(cmsRun $F2 ) || die "Failure using $F2" $?
13 changes: 13 additions & 0 deletions test/unit_tests_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

import FWCore.ParameterSet.Config as cms

from Configuration.StandardSequences.Eras import eras
from cp3_llbb.Framework import Framework

process = Framework.create(True, eras.Run2_50ns, '74X_dataRun2_v2', redoJEC=True)

process.source.fileNames = cms.untracked.vstring(
'file:///afs/cern.ch/user/s/sbrochet/public/CP3/DoubleMuon-Run2015B-17Jul2015-v1-MiniAOD_reduced.root'
)

process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))

0 comments on commit 0b85fab

Please sign in to comment.