CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

gen::BaseHadronizer Class Reference

#include <BaseHadronizer.h>

Inheritance diagram for gen::BaseHadronizer:
gen::AMPTHadronizer gen::ExhumeHadronizer gen::HijingHadronizer gen::HydjetHadronizer gen::PomwigHadronizer gen::PyquenHadronizer gen::Pythia6Hadronizer Herwig6Hadronizer Pythia8Hadronizer SherpaHadronizer ThePEGHadronizer

List of all members.

Public Member Functions

 BaseHadronizer (edm::ParameterSet const &ps)
edm::EventgetEDMEvent () const
HepMC::GenEvent * getGenEvent ()
GenEventInfoProductgetGenEventInfo ()
GenRunInfoProductgetGenRunInfo ()
const boost::shared_ptr
< lhef::LHERunInfo > & 
getLHERunInfo () const
void resetEvent (HepMC::GenEvent *event)
void resetEventInfo (GenEventInfoProduct *eventInfo)
void setEDMEvent (edm::Event &event)
void setLHEEvent (lhef::LHEEvent *event)
void setLHERunInfo (lhef::LHERunInfo *runInfo)
 ~BaseHadronizer ()

Protected Member Functions

std::auto_ptr< HepMC::GenEvent > & event ()
std::auto_ptr
< GenEventInfoProduct > & 
eventInfo ()
lhef::LHEEventlheEvent ()
lhef::LHERunInfolheRunInfo ()
GenRunInfoProductrunInfo ()

Private Attributes

edm::EventedmEvent_
std::auto_ptr< HepMC::GenEvent > genEvent_
std::auto_ptr
< GenEventInfoProduct
genEventInfo_
GenRunInfoProduct genRunInfo_
std::auto_ptr< lhef::LHEEventlheEvent_
boost::shared_ptr
< lhef::LHERunInfo
lheRunInfo_

Detailed Description

Definition at line 36 of file BaseHadronizer.h.


Constructor & Destructor Documentation

gen::BaseHadronizer::BaseHadronizer ( edm::ParameterSet const &  ps)

Definition at line 6 of file BaseHadronizer.cc.

References edm::ParameterSet::getUntrackedParameter(), runInfo(), GenRunInfoProduct::setExternalXSecLO(), GenRunInfoProduct::setExternalXSecNLO(), and GenRunInfoProduct::setFilterEfficiency().

{

   runInfo().setFilterEfficiency(
      ps.getUntrackedParameter<double>("filterEfficiency", -1.) );
   runInfo().setExternalXSecLO(
      GenRunInfoProduct::XSec(ps.getUntrackedParameter<double>("crossSection", -1.)) );
   runInfo().setExternalXSecNLO(
       GenRunInfoProduct::XSec(ps.getUntrackedParameter<double>("crossSectionNLO", -1.)) );

}
gen::BaseHadronizer::~BaseHadronizer ( ) [inline]

Definition at line 39 of file BaseHadronizer.h.

{}

Member Function Documentation

std::auto_ptr<HepMC::GenEvent>& gen::BaseHadronizer::event ( ) [inline, protected]
std::auto_ptr<GenEventInfoProduct>& gen::BaseHadronizer::eventInfo ( ) [inline, protected]
edm::Event& gen::BaseHadronizer::getEDMEvent ( ) const [inline]
HepMC::GenEvent* gen::BaseHadronizer::getGenEvent ( ) [inline]

Definition at line 43 of file BaseHadronizer.h.

References genEvent_.

{ return genEvent_.release(); }
GenEventInfoProduct* gen::BaseHadronizer::getGenEventInfo ( ) [inline]

Definition at line 44 of file BaseHadronizer.h.

References genEventInfo_.

{ return genEventInfo_.release(); }
GenRunInfoProduct& gen::BaseHadronizer::getGenRunInfo ( ) [inline]

Definition at line 42 of file BaseHadronizer.h.

References genRunInfo_.

{ return genRunInfo_; }
const boost::shared_ptr<lhef::LHERunInfo>& gen::BaseHadronizer::getLHERunInfo ( ) const [inline]

Definition at line 50 of file BaseHadronizer.h.

References lheRunInfo_.

{ return lheRunInfo_; }
lhef::LHEEvent* gen::BaseHadronizer::lheEvent ( ) [inline, protected]
lhef::LHERunInfo* gen::BaseHadronizer::lheRunInfo ( ) [inline, protected]
void gen::BaseHadronizer::resetEvent ( HepMC::GenEvent *  event) [inline]

Definition at line 46 of file BaseHadronizer.h.

References genEvent_.

Referenced by SherpaHadronizer::generatePartonsAndHadronize().

{ genEvent_.reset(event); }
void gen::BaseHadronizer::resetEventInfo ( GenEventInfoProduct eventInfo) [inline]

Definition at line 47 of file BaseHadronizer.h.

References genEventInfo_.

{ genEventInfo_.reset(eventInfo); }
GenRunInfoProduct& gen::BaseHadronizer::runInfo ( ) [inline, protected]
void gen::BaseHadronizer::setEDMEvent ( edm::Event event) [inline]

Definition at line 56 of file BaseHadronizer.h.

References edmEvent_, and event().

{ edmEvent_ = &event; }
void gen::BaseHadronizer::setLHEEvent ( lhef::LHEEvent event) [inline]

Definition at line 53 of file BaseHadronizer.h.

References lheEvent_.

{ lheEvent_.reset(event); }
void gen::BaseHadronizer::setLHERunInfo ( lhef::LHERunInfo runInfo) [inline]

Definition at line 52 of file BaseHadronizer.h.

References lheRunInfo_.

{ lheRunInfo_.reset(runInfo); }

Member Data Documentation

Definition at line 75 of file BaseHadronizer.h.

Referenced by getEDMEvent(), and setEDMEvent().

std::auto_ptr<HepMC::GenEvent> gen::BaseHadronizer::genEvent_ [private]

Definition at line 69 of file BaseHadronizer.h.

Referenced by event(), getGenEvent(), and resetEvent().

Definition at line 70 of file BaseHadronizer.h.

Referenced by eventInfo(), getGenEventInfo(), and resetEventInfo().

Definition at line 68 of file BaseHadronizer.h.

Referenced by getGenRunInfo(), and runInfo().

Definition at line 73 of file BaseHadronizer.h.

Referenced by lheEvent(), and setLHEEvent().

boost::shared_ptr<lhef::LHERunInfo> gen::BaseHadronizer::lheRunInfo_ [private]

Definition at line 72 of file BaseHadronizer.h.

Referenced by getLHERunInfo(), lheRunInfo(), and setLHERunInfo().