CMS 3D CMS Logo

StGenEventReco.cc
Go to the documentation of this file.
5 
7 
9 public:
10  explicit StGenEventReco(const edm::ParameterSet&);
11  void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
12 
13 private:
17 };
18 
20  : srcToken_(consumes<reco::GenParticleCollection>(cfg.getParameter<edm::InputTag>("src"))),
21  initToken_(consumes<reco::GenParticleCollection>(cfg.getParameter<edm::InputTag>("init"))),
22  putToken_(produces<StGenEvent>()) {}
23 
25  //add TopDecayTree
27 
28  //add InitialStatePartons
30 
31  //add genEvt to the output stream
32  evt.emplace(putToken_, cands, initParts);
33 }
34 
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
edm::EDGetTokenT< reco::GenParticleCollection > initToken_
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
edm::EDPutTokenT< StGenEvent > putToken_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Class derived from the TopGenEvent for single-top events.
Definition: StGenEvent.h:17
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
Definition: Event.h:431
fixed size matrix
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
Definition: Event.h:552
HLT enums.
StGenEventReco(const edm::ParameterSet &)