#include <GeneratorInterface/MadGraphInterface/src/PdfAnalyzer.cc>
Public Member Functions | |
PdfAnalyzer (const edm::ParameterSet &) | |
~PdfAnalyzer () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob (const edm::EventSetup &) |
virtual void | endJob () |
Definition at line 20 of file PdfAnalyzer.h.
PdfAnalyzer::PdfAnalyzer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
PdfAnalyzer::~PdfAnalyzer | ( | ) |
void PdfAnalyzer::analyze | ( | const edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 8 of file PdfAnalyzer.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), TtGenEvtProducer_cfi::genEvt, edm::Event::getByType(), and std.
00008 { 00009 using namespace edm; using namespace std; 00010 00011 Handle<HepMCProduct> evt; iEvent.getByType(evt); 00012 00013 const HepMC::GenEvent * genEvt = evt->GetEvent(); // genEvt->print(); 00014 00015 // NOT STORED! 00016 HepMC::PdfInfo* pdfstuff = genEvt->pdf_info(); 00017 if (pdfstuff != 0) cout << "Momentum of first incoming parton: (id/flavour = " << pdfstuff->id1() << ") " << pdfstuff->x1() << endl 00018 << "Momentum of second incoming parton: (id/flavour = " << pdfstuff->id2() << ") " << pdfstuff->x2() << endl 00019 << "Scale = " << pdfstuff->scalePDF() << endl; 00020 else cout << "PDFstuff not set!" << endl; 00021 }
void PdfAnalyzer::beginJob | ( | const edm::EventSetup & | ) | [private, virtual] |