#include <LHEEvent.h>
Public Types | |
typedef LHEEventProduct::PDF | |
typedef LHEEventProduct::WGT | WGT |
Public Member Functions | |
void | addComment (const std::string &line) |
void | addWeight (const WGT &wgt) |
std::auto_ptr< HepMC::GenEvent > | asHepMCEvent () const |
void | attempted () |
void | count (LHERunInfo::CountMode count, double weight=1.0, double matchWeight=1.0) |
void | fillEventInfo (HepMC::GenEvent *hepmc) const |
void | fillPdfInfo (HepMC::PdfInfo *info) const |
const std::vector< std::string > & | getComments () const |
const HEPEUP * | getHEPEUP () const |
const HEPRUP * | getHEPRUP () const |
const PDF * | getPDF () const |
const int | getReadAttempts () |
const boost::shared_ptr < LHERunInfo > & | getRunInfo () const |
LHEEvent (const boost::shared_ptr< LHERunInfo > &runInfo, std::istream &in) | |
LHEEvent (const boost::shared_ptr< LHERunInfo > &runInfo, const HEPEUP &hepeup) | |
LHEEvent (const boost::shared_ptr< LHERunInfo > &runInfo, const HEPEUP &hepeup, const LHEEventProduct::PDF *pdf, const std::vector< std::string > &comments) | |
LHEEvent (const boost::shared_ptr< LHERunInfo > &runInfo, const LHEEventProduct &product) | |
int | npLO () const |
int | npNLO () const |
double | originalXWGTUP () const |
void | removeResonances (const std::vector< int > &ids) |
const std::vector< float > & | scales () const |
void | setNpLO (int n) |
void | setNpNLO (int n) |
void | setPDF (std::auto_ptr< PDF > pdf) |
void | setScales (const std::vector< float > &scales) |
const std::vector< WGT > & | weights () const |
~LHEEvent () | |
Static Public Member Functions | |
static const HepMC::GenVertex * | findSignalVertex (const HepMC::GenEvent *event, bool status3=true) |
static void | fixHepMCEventTimeOrdering (HepMC::GenEvent *event) |
static void | removeParticle (lhef::HEPEUP &hepeup, int index) |
Private Member Functions | |
HepMC::GenParticle * | makeHepMCParticle (unsigned int i) const |
Static Private Member Functions | |
static bool | checkHepMCTree (const HepMC::GenEvent *event) |
Private Attributes | |
std::vector< std::string > | comments |
bool | counted |
HEPEUP | hepeup |
int | npLO_ |
int | npNLO_ |
double | originalXWGTUP_ |
std::auto_ptr< PDF > | |
int | readAttemptCounter |
const boost::shared_ptr < LHERunInfo > | runInfo |
std::vector< float > | scales_ |
std::vector< WGT > | weights_ |
Definition at line 25 of file LHEEvent.h.
Definition at line 39 of file LHEEvent.h.
Definition at line 40 of file LHEEvent.h.
lhef::LHEEvent::LHEEvent | ( | const boost::shared_ptr< LHERunInfo > & | runInfo, |
std::istream & | in | ||
) |
Definition at line 36 of file LHEEvent.cc.
References funct::abs(), lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, comments, hepeup, i, lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDPRUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, geometryCSVtoXML::line, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, originalXWGTUP_, pdf, lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), lhef::HEPEUP::SCALUP, skipWhitespace(), lhef::HEPEUP::SPINUP, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, lhef::HEPEUP::VTIMUP, lhef::HEPEUP::XPDWUP, and lhef::HEPEUP::XWGTUP.
lhef::LHEEvent::LHEEvent | ( | const boost::shared_ptr< LHERunInfo > & | runInfo, |
const HEPEUP & | hepeup | ||
) |
Definition at line 116 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const boost::shared_ptr< LHERunInfo > & | runInfo, |
const HEPEUP & | hepeup, | ||
const LHEEventProduct::PDF * | pdf, | ||
const std::vector< std::string > & | comments | ||
) |
Definition at line 123 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const boost::shared_ptr< LHERunInfo > & | runInfo, |
const LHEEventProduct & | product | ||
) |
Definition at line 133 of file LHEEvent.cc.
lhef::LHEEvent::~LHEEvent | ( | ) |
Definition at line 145 of file LHEEvent.cc.
|
inline |
Definition at line 64 of file LHEEvent.h.
|
inline |
std::auto_ptr< HepMC::GenEvent > lhef::LHEEvent::asHepMCEvent | ( | ) | const |
Definition at line 257 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, checkHepMCTree(), findSignalVertex(), GenParticle::GenParticle, genParticleCandidates2GenParticles_cfi::genParticles, getHEPRUP(), hepeup, i, lhef::HEPEUP::IDPRUP, getDQMSummary::iter, j, makeHepMCParticle(), lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::SCALUP, and lhef::HEPEUP::VTIMUP.
|
inline |
|
staticprivate |
Definition at line 404 of file LHEEvent.cc.
References getDQMSummary::iter, and ntuplemaker::status.
Referenced by asHepMCEvent().
void lhef::LHEEvent::count | ( | LHERunInfo::CountMode | count, |
double | weight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 207 of file LHEEvent.cc.
References counted, hepeup, lhef::HEPEUP::IDPRUP, runInfo, and lhef::HEPEUP::XWGTUP.
Referenced by gen::Pythia6Hadronizer::hadronize(), Pythia8Hadronizer::hadronize(), and Herwig6Hadronizer::hadronize().
void lhef::LHEEvent::fillEventInfo | ( | HepMC::GenEvent * | hepmc | ) | const |
Definition at line 249 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, hepeup, lhef::HEPEUP::IDPRUP, and lhef::HEPEUP::SCALUP.
Referenced by gen::Pythia6Hadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
void lhef::LHEEvent::fillPdfInfo | ( | HepMC::PdfInfo * | info | ) | const |
Definition at line 221 of file LHEEvent.cc.
References funct::abs(), lhef::HEPRUP::EBMUP, getHEPRUP(), hepeup, lhef::HEPEUP::IDUP, lhef::HEPEUP::NUP, pdf, lhef::HEPEUP::PUP, and lhef::HEPEUP::SCALUP.
Referenced by gen::Pythia6Hadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
|
static |
Definition at line 448 of file LHEEvent.cc.
References getDQMSummary::iter.
Referenced by asHepMCEvent(), lhef::Hadronisation::hadronize(), and lhef::Hadronisation::showeredEvent().
|
static |
Definition at line 513 of file LHEEvent.cc.
References lhef::fixSubTree(), and getDQMSummary::iter.
Referenced by gen::PomwigHadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
|
inline |
Definition at line 46 of file LHEEvent.h.
References comments.
Referenced by Herwig6Hadronizer::upEvnt().
|
inline |
Definition at line 43 of file LHEEvent.h.
References hepeup.
Referenced by gen::JetMatchingMGFastJet::beforeHadronisation(), gen::TauolappInterface::decay(), gen::FortranCallback::fillEvent(), Py8toJetInput::fillJetAlgoInput(), Py8toJetInputHEPEVT::fillJetAlgoInput(), gen::JetMatchingMGFastJet::match(), and JetMatchingHook::setLHEEvent().
|
inline |
|
inline |
Definition at line 45 of file LHEEvent.h.
|
inline |
|
inline |
|
private |
Definition at line 387 of file LHEEvent.cc.
References GenParticle::GenParticle, hepeup, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::PUP, and ntuplemaker::status.
Referenced by asHepMCEvent().
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 156 of file LHEEvent.cc.
References i, lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDUP, cmsHarvester::index, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::pop(), lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), lhef::HEPEUP::SPINUP, and lhef::HEPEUP::VTIMUP.
Referenced by removeResonances().
void lhef::LHEEvent::removeResonances | ( | const std::vector< int > & | ids | ) |
Definition at line 196 of file LHEEvent.cc.
References funct::abs(), spr::find(), hepeup, i, lhef::HEPEUP::IDUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, and removeParticle().
|
inline |
|
inline |
Definition at line 61 of file LHEEvent.h.
|
inline |
Definition at line 62 of file LHEEvent.h.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 93 of file LHEEvent.h.
Referenced by getComments(), and LHEEvent().
|
private |
Definition at line 94 of file LHEEvent.h.
Referenced by count().
|
private |
Definition at line 90 of file LHEEvent.h.
Referenced by asHepMCEvent(), count(), fillEventInfo(), fillPdfInfo(), getHEPEUP(), LHEEvent(), makeHepMCParticle(), and removeResonances().
|
private |
Definition at line 98 of file LHEEvent.h.
|
private |
Definition at line 99 of file LHEEvent.h.
Referenced by npNLO(), and setNpNLO().
|
private |
Definition at line 96 of file LHEEvent.h.
Referenced by LHEEvent(), and originalXWGTUP().
|
private |
Definition at line 91 of file LHEEvent.h.
Referenced by fillPdfInfo(), LHEEvent(), and setPDF().
|
private |
Definition at line 95 of file LHEEvent.h.
Referenced by attempted(), and getReadAttempts().
|
private |
Definition at line 88 of file LHEEvent.h.
Referenced by count(), and getRunInfo().
|
private |
Definition at line 97 of file LHEEvent.h.
Referenced by scales(), and setScales().
|
private |
Definition at line 92 of file LHEEvent.h.
Referenced by addWeight(), and weights().