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
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
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:535
gen
Definition: PythiaDecays.h:13
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15146
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
edm::EventSetup
Definition: EventSetup.h:58
looper.cfg
cfg
Definition: looper.py:297
eostools.move
def move(src, dest)
Definition: eostools.py:511
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition: relval_steps.py:504
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