#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::unique_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::unique_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::unique_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, mps_fire::i, lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDPRUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, mps_splice::line, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, originalXWGTUP_, pdf, lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), lhef::HEPEUP::SCALUP, skipWhitespace(), lhef::HEPEUP::SPINUP, 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.
References count(), electrons_cff::ids, removeParticle(), and removeResonances().
|
inline |
std::unique_ptr< HepMC::GenEvent > lhef::LHEEvent::asHepMCEvent | ( | ) | const |
Definition at line 250 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, checkHepMCTree(), findSignalVertex(), GenParticle::GenParticle, GenHFHadronMatcher_cfi::genParticles, getHEPRUP(), hepeup, mps_fire::i, lhef::HEPEUP::IDPRUP, makeHepMCParticle(), lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::SCALUP, and lhef::HEPEUP::VTIMUP.
Referenced by attempted().
|
inline |
Definition at line 72 of file LHEEvent.h.
References asHepMCEvent(), checkHepMCTree(), fillEventInfo(), fillPdfInfo(), findSignalVertex(), fixHepMCEventTimeOrdering(), GenParticle::GenParticle, mps_fire::i, info(), makeHepMCParticle(), and readAttemptCounter.
|
staticprivate |
Definition at line 397 of file LHEEvent.cc.
References mps_update::status.
Referenced by asHepMCEvent(), and attempted().
void lhef::LHEEvent::count | ( | LHERunInfo::CountMode | count, |
double | weight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 200 of file LHEEvent.cc.
References counted, hepeup, lhef::HEPEUP::IDPRUP, runInfo, and lhef::HEPEUP::XWGTUP.
Referenced by addComment(), gen::Pythia6Hadronizer::hadronize(), Pythia8Hadronizer::hadronize(), and Herwig6Hadronizer::hadronize().
void lhef::LHEEvent::fillEventInfo | ( | HepMC::GenEvent * | hepmc | ) | const |
Definition at line 242 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, hepeup, lhef::HEPEUP::IDPRUP, and lhef::HEPEUP::SCALUP.
Referenced by attempted(), gen::Pythia6Hadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
void lhef::LHEEvent::fillPdfInfo | ( | HepMC::PdfInfo * | info | ) | const |
Definition at line 214 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 attempted(), gen::Pythia6Hadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
|
static |
Definition at line 441 of file LHEEvent.cc.
Referenced by asHepMCEvent(), and attempted().
|
static |
Definition at line 506 of file LHEEvent.cc.
References lhef::fixSubTree(), and class-composition::visited.
Referenced by attempted(), 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 380 of file LHEEvent.cc.
References GenParticle::GenParticle, hepeup, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::PUP, and mps_update::status.
Referenced by asHepMCEvent(), and attempted().
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 149 of file LHEEvent.cc.
References mps_fire::i, lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::PUP, lhef::HEPEUP::SPINUP, and lhef::HEPEUP::VTIMUP.
Referenced by addComment(), and removeResonances().
void lhef::LHEEvent::removeResonances | ( | const std::vector< int > & | ids | ) |
Definition at line 189 of file LHEEvent.cc.
References funct::abs(), spr::find(), hepeup, mps_fire::i, triggerObjects_cff::id, lhef::HEPEUP::IDUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, and removeParticle().
Referenced by addComment().
|
inline |
|
inline |
Definition at line 61 of file LHEEvent.h.
|
inline |
|
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(), and LHEEvent().
|
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().