Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 process.MessageLogger.cerr.TtFullLeptonicEvent = cms.untracked.PSet(
0009     limit = cms.untracked.int32(-1)
0010 )
0011 
0012 ## define input
0013 from TopQuarkAnalysis.TopEventProducers.tqafInputFiles_cff import relValTTbar
0014 process.source = cms.Source("PoolSource",
0015     fileNames = cms.untracked.vstring(relValTTbar)
0016 )
0017 
0018 ## define maximal number of events to loop over
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(50)
0021 )
0022 
0023 ## configure process options
0024 process.options = cms.untracked.PSet(
0025     wantSummary      = cms.untracked.bool(True)
0026 )
0027 
0028 ## configure geometry & conditions
0029 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0031 from Configuration.AlCa.GlobalTag import GlobalTag
0032 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0033 process.load("Configuration.StandardSequences.MagneticField_cff")
0034 
0035 process.task = cms.Task()
0036 
0037 ## std sequence for pat
0038 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0039 process.task.add(process.patCandidatesTask)
0040 #Temporary customize to the unit tests that fail due to old input samples
0041 process.patTaus.skipMissingTauID = True
0042 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0043 process.task.add(process.selectedPatCandidatesTask)
0044 
0045 ## std sequence to produce the ttGenEvt
0046 process.load("TopQuarkAnalysis.TopEventProducers.sequences.ttGenEvent_cff")
0047 process.task.add(process.makeGenEvtTask)
0048 
0049 ## std sequence to produce the ttFullLepEvent
0050 process.load("TopQuarkAnalysis.TopEventProducers.sequences.ttFullLepEvtBuilder_cff")
0051 process.task.add(process.makeTtFullLepEventTask)
0052 process.ttFullLepEvent.verbosity = 1
0053 
0054 ## optional change of settings
0055 #from TopQuarkAnalysis.TopEventProducers.sequences.ttFullLepEvtBuilder_cff import *
0056 #removeTtFullLepHypGenMatch(process)
0057 
0058 #setForAllTtFullLepHypotheses(process,"muons","myMuons")
0059 #setForAllTtFullLepHypotheses(process,"jets","myJets")
0060 #setForAllTtFullLepHypotheses(process,"maxNJets",4)
0061 #setForAllTtFullLepHypotheses(process,"jetCorrectionLevel","part")
0062 
0063 ## configure output module
0064 process.out = cms.OutputModule("PoolOutputModule",
0065     fileName     = cms.untracked.string('ttFullLepEvtBuilder.root'),
0066     outputCommands = cms.untracked.vstring('drop *'),
0067     dropMetaData = cms.untracked.string('DROPPED')
0068 )
0069 process.outpath = cms.EndPath(process.out, process.task)
0070 
0071 ## PAT content
0072 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning
0073 process.out.outputCommands += patEventContentNoCleaning
0074 ## TQAF content
0075 from TopQuarkAnalysis.TopEventProducers.tqafEventContent_cff import tqafEventContent
0076 process.out.outputCommands += tqafEventContent