-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from blinkseb/tests
Add very simple unit test to check that the framework is running
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<bin name="Testcp3_llbbFramework" file="TestDriver.cc"> | ||
<flags TEST_RUNNER_ARGS="/bin/bash cp3_llbb/Framework/test run_tests.sh"/> | ||
<use name="FWCore/Utilities" /> | ||
</bin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "FWCore/Utilities/interface/TestHelper.h" | ||
|
||
RUNTEST() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Pass in name and status | ||
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" $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(False, eras.Run2_25ns, '74X_mcRun2_asymptotic_v2', redoJEC=True) | ||
|
||
process.source.fileNames = cms.untracked.vstring( | ||
'file:///afs/cern.ch/user/s/sbrochet/public/CP3/TTJets_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_Asympt25ns_MCRUN2_74_V9_reduced.root' | ||
) | ||
|
||
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10)) |