Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:03

0001 #This file is meant to test legacy modules that may still be used by some analyses
0002 from FWCore.ParameterSet.Config import *
0003 
0004 process = Process("CandSelectorTest")
0005 
0006 process.maxEvents = untracked.PSet( input = untracked.int32(10) )
0007 
0008 process.source = Source("PoolSource",
0009   fileNames = untracked.vstring("/store/data/Run2018C/JetHT/MINIAOD/UL2018_MiniAODv2-v1/00000/9F030B27-DBB0-EE46-A8FB-64FE0C417EE9.root")
0010 )
0011 
0012 process.genmuons = EDFilter("CandViewShallowCloneProducer",
0013   src = InputTag("packedPFCandidates"),
0014   cut = string("abs(pdgId)==13")
0015 )
0016 
0017 process.Ztomumu = EDProducer("CandViewCombiner",
0018     decay = string("genmuons@+ genmuons@-"),
0019     cut = string("0.0 < mass < 200.0")
0020 )
0021 
0022 process.out = OutputModule("PoolOutputModule",
0023     fileName = untracked.string("test.root"),
0024     outputCommands = untracked.vstring(
0025         'drop *',
0026         'keep *_Ztomumu_*_*'
0027     )
0028 )
0029 
0030 task = Task(process.genmuons,process.Ztomumu)
0031 process.path = Path(task)
0032 process.endpath = EndPath(process.out)
0033