Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TQAF")
0004 
0005 ## configure 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 ## define maximal number of events to loop over
0015 process.maxEvents = cms.untracked.PSet(
0016     input = cms.untracked.int32(100)
0017 )
0018 ## configure process options
0019 process.options = cms.untracked.PSet(
0020     wantSummary      = cms.untracked.bool(True)
0021 )
0022 
0023 ## configure geometry & conditions
0024 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0025 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0026 from Configuration.AlCa.GlobalTag import GlobalTag
0027 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0028 process.load("Configuration.StandardSequences.MagneticField_cff")
0029 
0030 process.task = cms.Task()
0031 
0032 ## std sequence for PAT
0033 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0034 process.task.add(process.patCandidatesTask)
0035 #Temporary customize to the unit tests that fail due to old input samples
0036 process.patTaus.skipMissingTauID = True
0037 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0038 process.task.add(process.selectedPatCandidatesTask)
0039 
0040 ## std sequence for TQAF
0041 process.load("TopQuarkAnalysis.TopEventProducers.tqafSequences_cff")
0042 process.task.add(process.tqafTtSemiLeptonicTask)
0043 
0044 ## configure output module
0045 process.out = cms.OutputModule("PoolOutputModule",
0046     fileName       = cms.untracked.string('tqaf.root'),
0047     outputCommands = cms.untracked.vstring('drop *'),
0048     dropMetaData   = cms.untracked.string("DROPPED")  ## NONE    for none
0049                                                       ## DROPPED for drop for dropped data
0050 )
0051 process.outpath = cms.EndPath(process.out, process.task)
0052 
0053 ## PAT content
0054 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning
0055 process.out.outputCommands += patEventContentNoCleaning
0056 ## TQAF content
0057 from TopQuarkAnalysis.TopEventProducers.tqafEventContent_cff import tqafEventContent
0058 process.out.outputCommands += tqafEventContent