CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
gen::BaseHadronizer Class Reference

#include <BaseHadronizer.h>

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

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)
 
virtual bool select (HepMC::GenEvent *) const
 
void setEDMEvent (edm::Event &event)
 
void setLHEEvent (lhef::LHEEvent *event)
 
void setLHERunInfo (lhef::LHERunInfo *runInfo)
 
void setRandomEngine (CLHEP::HepRandomEngine *v)
 
std::vector< std::string > const & sharedResources () const
 
 ~BaseHadronizer ()
 

Protected Member Functions

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

Private Member Functions

virtual void doSetRandomEngine (CLHEP::HepRandomEngine *v)
 
virtual std::vector
< std::string > const & 
doSharedResources () const
 

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_
 

Static Private Attributes

static const std::vector
< std::string > 
theSharedResources
 

Detailed Description

Definition at line 42 of file BaseHadronizer.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file BaseHadronizer.cc.

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

9 {
10 
12  ps.getUntrackedParameter<double>("filterEfficiency", -1.) );
14  GenRunInfoProduct::XSec(ps.getUntrackedParameter<double>("crossSection", -1.)) );
16  GenRunInfoProduct::XSec(ps.getUntrackedParameter<double>("crossSectionNLO", -1.)) );
17 
18 }
void setFilterEfficiency(double effic)
GenRunInfoProduct & runInfo()
void setExternalXSecNLO(const XSec &xsec)
void setExternalXSecLO(const XSec &xsec)
gen::BaseHadronizer::~BaseHadronizer ( )
inline

Definition at line 45 of file BaseHadronizer.h.

45 {}

Member Function Documentation

virtual void gen::BaseHadronizer::doSetRandomEngine ( CLHEP::HepRandomEngine *  v)
inlineprivatevirtual
virtual std::vector<std::string> const& gen::BaseHadronizer::doSharedResources ( ) const
inlineprivatevirtual
std::auto_ptr<HepMC::GenEvent>& gen::BaseHadronizer::event ( )
inlineprotected

Definition at line 72 of file BaseHadronizer.h.

References genEvent_.

Referenced by gen::PomwigHadronizer::decay(), gen::PomwigHadronizer::finalizeEvent(), gen::Cascade2Hadronizer::finalizeEvent(), ThePEGHadronizer::finalizeEvent(), SherpaHadronizer::finalizeEvent(), gen::ExhumeHadronizer::finalizeEvent(), gen::Pythia6Hadronizer::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), Herwig6Hadronizer::finalizeEvent(), gen::HijingHadronizer::generatePartonsAndHadronize(), gen::PomwigHadronizer::generatePartonsAndHadronize(), gen::PyquenHadronizer::generatePartonsAndHadronize(), gen::AMPTHadronizer::generatePartonsAndHadronize(), gen::HydjetHadronizer::generatePartonsAndHadronize(), ThePEGHadronizer::generatePartonsAndHadronize(), gen::Cascade2Hadronizer::generatePartonsAndHadronize(), gen::ExhumeHadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::generatePartonsAndHadronize(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), gen::ReggeGribovPartonMCHadronizer::generatePartonsAndHadronize(), ThePEGHadronizer::hadronize(), gen::Pythia6Hadronizer::hadronize(), Pythia8Hadronizer::hadronize(), Herwig6Hadronizer::hadronize(), gen::Cascade2Hadronizer::imposeProperTime(), gen::Pythia6Hadronizer::imposeProperTime(), Herwig6Hadronizer::pythiaStatusCodes(), gen::Cascade2Hadronizer::residualDecay(), gen::Pythia6Hadronizer::residualDecay(), Pythia8Hadronizer::residualDecay(), and setEDMEvent().

72 { return genEvent_; }
std::auto_ptr< HepMC::GenEvent > genEvent_
std::auto_ptr<GenEventInfoProduct>& gen::BaseHadronizer::eventInfo ( )
inlineprotected
edm::Event& gen::BaseHadronizer::getEDMEvent ( ) const
inline
HepMC::GenEvent* gen::BaseHadronizer::getGenEvent ( )
inline

Definition at line 49 of file BaseHadronizer.h.

References genEvent_.

49 { return genEvent_.release(); }
std::auto_ptr< HepMC::GenEvent > genEvent_
GenEventInfoProduct* gen::BaseHadronizer::getGenEventInfo ( )
inline

Definition at line 50 of file BaseHadronizer.h.

References genEventInfo_.

50 { return genEventInfo_.release(); }
std::auto_ptr< GenEventInfoProduct > genEventInfo_
GenRunInfoProduct& gen::BaseHadronizer::getGenRunInfo ( )
inline

Definition at line 48 of file BaseHadronizer.h.

References genRunInfo_.

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

Definition at line 56 of file BaseHadronizer.h.

References lheRunInfo_.

Referenced by ThePEGHadronizer::initializeForExternalPartons().

56 { return lheRunInfo_; }
boost::shared_ptr< lhef::LHERunInfo > lheRunInfo_
lhef::LHEEvent* gen::BaseHadronizer::lheEvent ( )
inlineprotected
lhef::LHERunInfo* gen::BaseHadronizer::lheRunInfo ( )
inlineprotected
void gen::BaseHadronizer::resetEvent ( HepMC::GenEvent *  event)
inline

Definition at line 52 of file BaseHadronizer.h.

References genEvent_.

Referenced by SherpaHadronizer::generatePartonsAndHadronize().

52 { genEvent_.reset(event); }
std::auto_ptr< HepMC::GenEvent > & event()
std::auto_ptr< HepMC::GenEvent > genEvent_
void gen::BaseHadronizer::resetEventInfo ( GenEventInfoProduct eventInfo)
inline

Definition at line 53 of file BaseHadronizer.h.

References genEventInfo_.

53 { genEventInfo_.reset(eventInfo); }
std::auto_ptr< GenEventInfoProduct > genEventInfo_
GenRunInfoProduct& gen::BaseHadronizer::runInfo ( )
inlineprotected
virtual bool gen::BaseHadronizer::select ( HepMC::GenEvent *  ) const
inlinevirtual

Reimplemented in gen::PyquenHadronizer.

Definition at line 64 of file BaseHadronizer.h.

64 { return true;}
void gen::BaseHadronizer::setEDMEvent ( edm::Event event)
inline

Definition at line 62 of file BaseHadronizer.h.

References edmEvent_, and event().

62 { edmEvent_ = &event; }
edm::Event * edmEvent_
std::auto_ptr< HepMC::GenEvent > & event()
void gen::BaseHadronizer::setLHEEvent ( lhef::LHEEvent event)
inline

Definition at line 59 of file BaseHadronizer.h.

References lheEvent_.

59 { lheEvent_.reset(event); }
std::auto_ptr< lhef::LHEEvent > lheEvent_
void gen::BaseHadronizer::setLHERunInfo ( lhef::LHERunInfo runInfo)
inline

Definition at line 58 of file BaseHadronizer.h.

References lheRunInfo_.

58 { lheRunInfo_.reset(runInfo); }
boost::shared_ptr< lhef::LHERunInfo > lheRunInfo_
void gen::BaseHadronizer::setRandomEngine ( CLHEP::HepRandomEngine *  v)
inline

Definition at line 66 of file BaseHadronizer.h.

References doSetRandomEngine().

66 { doSetRandomEngine(v); }
double v[5][pyjets_maxn]
virtual void doSetRandomEngine(CLHEP::HepRandomEngine *v)
std::vector<std::string> const& gen::BaseHadronizer::sharedResources ( ) const
inline

Definition at line 68 of file BaseHadronizer.h.

References doSharedResources().

68 { return doSharedResources(); }
virtual std::vector< std::string > const & doSharedResources() const

Member Data Documentation

edm::Event* gen::BaseHadronizer::edmEvent_
private

Definition at line 91 of file BaseHadronizer.h.

Referenced by getEDMEvent(), and setEDMEvent().

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

Definition at line 85 of file BaseHadronizer.h.

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

std::auto_ptr<GenEventInfoProduct> gen::BaseHadronizer::genEventInfo_
private

Definition at line 86 of file BaseHadronizer.h.

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

GenRunInfoProduct gen::BaseHadronizer::genRunInfo_
private

Definition at line 84 of file BaseHadronizer.h.

Referenced by getGenRunInfo(), and runInfo().

std::auto_ptr<lhef::LHEEvent> gen::BaseHadronizer::lheEvent_
private

Definition at line 89 of file BaseHadronizer.h.

Referenced by lheEvent(), and setLHEEvent().

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

Definition at line 88 of file BaseHadronizer.h.

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

const std::vector< std::string > gen::BaseHadronizer::theSharedResources
staticprivate

Definition at line 93 of file BaseHadronizer.h.

Referenced by doSharedResources().