CMS 3D CMS Logo

StGenEventReco.cc
Go to the documentation of this file.
2 
4  : srcToken_(consumes<reco::GenParticleCollection>(cfg.getParameter<edm::InputTag>("src"))),
5  initToken_(consumes<reco::GenParticleCollection>(cfg.getParameter<edm::InputTag>("init"))) {
6  produces<StGenEvent>();
7 }
8 
10 
14 
16  evt.getByToken(initToken_, inits);
17 
18  //add TopDecayTree
20 
21  //add InitialStatePartons
22  reco::GenParticleRefProd initParts(inits);
23 
24  //add genEvt to the output stream
25  StGenEvent* genEvt = new StGenEvent(cands, initParts);
26  std::unique_ptr<StGenEvent> gen(genEvt);
27  evt.put(std::move(gen));
28 }
edm::RefProd< GenParticleCollection >
StGenEventReco::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: StGenEventReco.cc:11
edm
HLT enums.
Definition: AlignableModifier.h:19
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition: GenParticleFwd.h:13
StGenEvent
Class derived from the TopGenEvent for single-top events.
Definition: StGenEvent.h:17
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
StGenEventReco::initToken_
edm::EDGetTokenT< reco::GenParticleCollection > initToken_
Definition: StGenEventReco.h:16
edm::Handle< reco::GenParticleCollection >
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
StGenEventReco::srcToken_
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
Definition: StGenEventReco.h:15
StGenEventReco::StGenEventReco
StGenEventReco(const edm::ParameterSet &)
Definition: StGenEventReco.cc:3
contentValuesFiles.parts
parts
Definition: contentValuesFiles.py:58
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
gen
Definition: PythiaDecays.h:13
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:132
edm::EventSetup
Definition: EventSetup.h:57
looper.cfg
cfg
Definition: looper.py:297
eostools.move
def move(src, dest)
Definition: eostools.py:511
HLT_2018_cff.cands
cands
Definition: HLT_2018_cff.py:13762
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition: relval_steps.py:500
StGenEventReco.h
StGenEventReco::~StGenEventReco
~StGenEventReco() override
Definition: StGenEventReco.cc:9
edm::Event
Definition: Event.h:73
TtGenEvtProducer_cfi.genEvt
genEvt
Definition: TtGenEvtProducer_cfi.py:7