#include <IOMC/HepMCProductAnalyzer/src/HepMCProductAnalyzer.cc>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
HepMCProductAnalyzer (const edm::ParameterSet &) | |
~HepMCProductAnalyzer () | |
Private Attributes | |
std::string | label_ |
Implementation: <Notes on="" implementation>="">
Definition at line 42 of file HepMCProductAnalyzer.h.
HepMCProductAnalyzer::HepMCProductAnalyzer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 10 of file HepMCProductAnalyzer.cc.
00010 : 00011 label_(iConfig.getUntrackedParameter("moduleLabel",std::string("source"))) 00012 { 00013 //now do what ever initialization is needed 00014 00015 }
HepMCProductAnalyzer::~HepMCProductAnalyzer | ( | ) |
Definition at line 18 of file HepMCProductAnalyzer.cc.
00019 { 00020 00021 // do anything here that needs to be done at desctruction time 00022 // (e.g. close files, deallocate resources etc.) 00023 00024 }
void HepMCProductAnalyzer::analyze | ( | const edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 33 of file HepMCProductAnalyzer.cc.
References edm::Event::getByType().
00034 { 00035 using namespace edm; 00036 00037 Handle<HepMCProduct> evt; 00038 // iEvent.getByLabel("PythiaSource",evt); 00039 // iEvent.getByLabel("MCFileSource",evt); 00040 00041 // if there is an ambiguity: get by label 00042 // iEvent.getByLabel(label_, evt); 00043 00044 // if no ambiguity one can do get by type 00045 iEvent.getByType(evt); 00046 00047 evt->GetEvent()->print(); 00048 00049 00050 }
std::string HepMCProductAnalyzer::label_ [private] |
Definition at line 52 of file HepMCProductAnalyzer.h.