File indexing completed on 2024-04-06 12:24:02
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("Test")
0004
0005 process.source = cms.Source("PoolSource",
0006 fileNames = cms.untracked.vstring(
0007 "file:patTuple_standard.root"
0008 )
0009 )
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0011
0012 process.MessageLogger = cms.Service("MessageLogger")
0013
0014
0015
0016 process.patMuonAnalyzer = cms.EDProducer(
0017 "CandViewNtpProducer",
0018 src = cms.InputTag("selectedPatMuons"),
0019 lazyParser = cms.untracked.bool(True),
0020 prefix = cms.untracked.string(""),
0021 eventInfo = cms.untracked.bool(True),
0022 variables = cms.VPSet(
0023 cms.PSet(
0024 tag = cms.untracked.string("pt"),
0025 quantity = cms.untracked.string("pt")
0026 ),
0027 cms.PSet(
0028 tag = cms.untracked.string("eta"),
0029 quantity = cms.untracked.string("eta")
0030 ),
0031 cms.PSet(
0032 tag = cms.untracked.string("phi"),
0033 quantity = cms.untracked.string("phi")
0034 ),
0035 )
0036 )
0037
0038 process.p = cms.Path(process.patMuonAnalyzer)
0039
0040 process.out = cms.OutputModule("PoolOutputModule",
0041 fileName = cms.untracked.string('edmTuple.root'),
0042
0043 SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
0044
0045
0046 outputCommands = cms.untracked.vstring('drop *', 'keep *_patMuonAnalyzer_*_*')
0047 )
0048
0049 process.outpath = cms.EndPath(process.out)