Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:30

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.TopHitFit=dict()
0009 
0010 ## define input
0011 from TopQuarkAnalysis.TopEventProducers.tqafInputFiles_cff import relValTTbar
0012 process.source = cms.Source("PoolSource",
0013     fileNames = cms.untracked.vstring(relValTTbar)
0014 )
0015 
0016 ## define maximal number of events to loop over
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(50)
0019 
0020 )
0021 ## configure process options
0022 process.options = cms.untracked.PSet(
0023     wantSummary      = cms.untracked.bool(True)
0024 )
0025 
0026 ## configure geometry & conditions
0027 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0028 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0029 from Configuration.AlCa.GlobalTag import GlobalTag
0030 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0031 process.load("Configuration.StandardSequences.MagneticField_cff")
0032 
0033 process.task = cms.Task()
0034 
0035 ## std sequence for pat
0036 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0037 process.task.add(process.patCandidatesTask)
0038 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0039 process.task.add(process.selectedPatCandidatesTask)
0040 
0041 ## std sequence to produce the kinematic fit for semi-leptonic events
0042 process.load("TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Muons_cfi")
0043 process.task.add(process.hitFitTtSemiLepEvent)
0044 
0045 ## configure output module
0046 process.out = cms.OutputModule("PoolOutputModule",
0047     fileName = cms.untracked.string('ttSemiLepHitFitProducer.root'),
0048     outputCommands = cms.untracked.vstring('drop *')
0049 )
0050 process.out.outputCommands += ['keep *_hitFitTtSemiLepEvent_*_*']
0051 
0052 ## output path
0053 process.outpath = cms.EndPath(process.out, process.task)