Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 ## add message logger
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.cerr.threshold = 'INFO'
0008 
0009 ## define input
0010 from TopQuarkAnalysis.TopEventProducers.tqafInputFiles_cff import relValTTbar
0011 process.source = cms.Source("PoolSource",
0012     fileNames = cms.untracked.vstring(relValTTbar)
0013 )
0014 
0015 ## define maximal number of events to loop over
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(100)
0018 )
0019 
0020 ## configure process options
0021 process.options = cms.untracked.PSet(
0022     wantSummary      = cms.untracked.bool(True)
0023 )
0024 
0025 ## configure geometry & conditions
0026 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0027 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0028 from Configuration.AlCa.GlobalTag import GlobalTag
0029 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0030 process.load("Configuration.StandardSequences.MagneticField_cff")
0031 
0032 process.task = cms.Task()
0033 
0034 ## std sequence for PAT
0035 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0036 process.task.add(process.patCandidatesTask)
0037 #Temporary customize to the unit tests that fail due to old input samples
0038 process.patTaus.skipMissingTauID = True
0039 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0040 process.task.add(process.selectedPatCandidatesTask)
0041 process.load("TopQuarkAnalysis.TopEventSelection.TtSemiLepSignalSelMVAComputer_cff")
0042 
0043 ## path1
0044 process.p = cms.Path(
0045     process.findTtSemiLepSignalSelMVA,
0046     process.task
0047 )
0048 
0049 ## output module
0050 process.out = cms.OutputModule(
0051   "PoolOutputModule",
0052   SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p')),
0053   outputCommands = cms.untracked.vstring('drop *',
0054                                          'keep double_*_DiscSel_*'
0055                                         ),
0056   fileName = cms.untracked.string('ttSemiLepSignalSelMVAComputer.root')
0057 )
0058 ## output path
0059 process.outpath = cms.EndPath(process.out)