CMS 3D CMS Logo

PdfAnalyzer Class Reference

Description: get pdf info for every event Implementation: <Notes on="" implementation>="">. More...

#include <GeneratorInterface/MadGraphInterface/src/PdfAnalyzer.cc>

Inheritance diagram for PdfAnalyzer:

edm::EDAnalyzer

List of all members.

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 ()


Detailed Description

Description: get pdf info for every event Implementation: <Notes on="" implementation>="">.

Definition at line 20 of file PdfAnalyzer.h.


Constructor & Destructor Documentation

PdfAnalyzer::PdfAnalyzer ( const edm::ParameterSet iConfig  )  [explicit]

Definition at line 3 of file PdfAnalyzer.cc.

00003 { }

PdfAnalyzer::~PdfAnalyzer (  ) 

Definition at line 4 of file PdfAnalyzer.cc.

00004 { }


Member Function Documentation

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]

Reimplemented from edm::EDAnalyzer.

Definition at line 5 of file PdfAnalyzer.cc.

00005 { }

void PdfAnalyzer::endJob ( void   )  [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 6 of file PdfAnalyzer.cc.

00006 { }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:29:29 2009 for CMSSW by  doxygen 1.5.4