CMS 3D CMS Logo

PythiaFilterGammaGamma.cc
Go to the documentation of this file.
3 
4 #include "TLorentzVector.h"
5 
6 #include <iostream>
7 
8 using namespace edm;
9 using namespace std;
10 using namespace HepMC;
11 
12 
14  token_(consumes<edm::HepMCProduct>(edm::InputTag(iConfig.getUntrackedParameter("moduleLabel",std::string("generator")),"unsmeared"))),
15  hepMCFilter_(new PythiaHepMCFilterGammaGamma(iConfig)) {
16 }
17 
19 {
20 }
21 
23 
25  iEvent.getByToken(token_, evt);
26 
27  const HepMC::GenEvent *myGenEvent = evt->GetEvent();
28 
29  return hepMCFilter_->filter(myGenEvent);
30 
31 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< edm::HepMCProduct > token_
int iEvent
Definition: GenABIO.cc:224
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:38
HLT enums.
std::unique_ptr< PythiaHepMCFilterGammaGamma > hepMCFilter_
PythiaFilterGammaGamma(const edm::ParameterSet &)