CMS 3D CMS Logo

TtGenEventReco.cc
Go to the documentation of this file.
7 
9 public:
10  explicit TtGenEventReco(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<TtGenEvent>()) {}
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::EDPutTokenT< TtGenEvent > putToken_
Class derived from the TopGenEvent for ttbar events.
Definition: TtGenEvent.h:18
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
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.
TtGenEventReco(const edm::ParameterSet &)