#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 std::shared_ptr < LHERunInfo > & | getRunInfo () const |
LHEEvent (const std::shared_ptr< LHERunInfo > &runInfo, std::istream &in) | |
LHEEvent (const std::shared_ptr< LHERunInfo > &runInfo, const HEPEUP &hepeup) | |
LHEEvent (const std::shared_ptr< LHERunInfo > &runInfo, const HEPEUP &hepeup, const LHEEventProduct::PDF *pdf, const std::vector< std::string > &comments) | |
LHEEvent (const std::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 std::shared_ptr< LHERunInfo > | runInfo |
std::vector< float > | scales_ |
std::vector< WGT > | weights_ |
Definition at line 23 of file LHEEvent.h.
Definition at line 34 of file LHEEvent.h.
Definition at line 35 of file LHEEvent.h.
lhef::LHEEvent::LHEEvent | ( | const std::shared_ptr< LHERunInfo > & | runInfo, |
std::istream & | in | ||
) |
Definition at line 37 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, 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 std::shared_ptr< LHERunInfo > & | runInfo, |
const HEPEUP & | hepeup | ||
) |
Definition at line 108 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const std::shared_ptr< LHERunInfo > & | runInfo, |
const HEPEUP & | hepeup, | ||
const LHEEventProduct::PDF * | pdf, | ||
const std::vector< std::string > & | comments | ||
) |
Definition at line 111 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const std::shared_ptr< LHERunInfo > & | runInfo, |
const LHEEventProduct & | product | ||
) |
Definition at line 124 of file LHEEvent.cc.
lhef::LHEEvent::~LHEEvent | ( | ) |
Definition at line 137 of file LHEEvent.cc.
|
inline |
Definition at line 59 of file LHEEvent.h.
|
inline |
std::unique_ptr< HepMC::GenEvent > lhef::LHEEvent::asHepMCEvent | ( | ) | const |
Definition at line 227 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, b1, b2, checkHepMCTree(), pdg::cTau(), findSignalVertex(), GenParticle::GenParticle, genParticleCandidates2GenParticles_cfi::genParticles, getHEPRUP(), hepeup, mps_fire::i, lhef::HEPEUP::IDPRUP, dqmiolumiharvest::j, makeHepMCParticle(), lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::SCALUP, and lhef::HEPEUP::VTIMUP.
|
inline |
|
staticprivate |
Definition at line 357 of file LHEEvent.cc.
References mps_update::status.
Referenced by asHepMCEvent().
void lhef::LHEEvent::count | ( | LHERunInfo::CountMode | count, |
double | weight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 184 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 220 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 193 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 393 of file LHEEvent.cc.
Referenced by asHepMCEvent().
|
static |
Definition at line 453 of file LHEEvent.cc.
References lhef::fixSubTree(), and class-composition::visited.
Referenced by gen::PomwigHadronizer::finalizeEvent(), and Herwig6Hadronizer::finalizeEvent().
|
inline |
Definition at line 41 of file LHEEvent.h.
References comments.
Referenced by Herwig6Hadronizer::upEvnt().
|
inline |
Definition at line 38 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 40 of file LHEEvent.h.
|
inline |
|
inline |
|
private |
Definition at line 344 of file LHEEvent.cc.
References GenParticle::GenParticle, hepeup, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::PUP, and mps_update::status.
Referenced by asHepMCEvent().
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 139 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 removeResonances().
void lhef::LHEEvent::removeResonances | ( | const std::vector< int > & | ids | ) |
Definition at line 175 of file LHEEvent.cc.
References funct::abs(), spr::find(), hepeup, mps_fire::i, gpuClustering::id, lhef::HEPEUP::IDUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, and removeParticle().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 89 of file LHEEvent.h.
Referenced by getComments(), and LHEEvent().
|
private |
Definition at line 90 of file LHEEvent.h.
Referenced by count().
|
private |
Definition at line 86 of file LHEEvent.h.
Referenced by asHepMCEvent(), count(), fillEventInfo(), fillPdfInfo(), getHEPEUP(), LHEEvent(), makeHepMCParticle(), and removeResonances().
|
private |
Definition at line 94 of file LHEEvent.h.
|
private |
Definition at line 95 of file LHEEvent.h.
Referenced by npNLO(), and setNpNLO().
|
private |
Definition at line 92 of file LHEEvent.h.
Referenced by LHEEvent(), and originalXWGTUP().
|
private |
Definition at line 87 of file LHEEvent.h.
Referenced by fillPdfInfo(), and LHEEvent().
|
private |
Definition at line 91 of file LHEEvent.h.
Referenced by attempted(), and getReadAttempts().
|
private |
Definition at line 84 of file LHEEvent.h.
Referenced by count(), and getRunInfo().
|
private |
Definition at line 93 of file LHEEvent.h.
Referenced by scales(), and setScales().
|
private |
Definition at line 88 of file LHEEvent.h.
Referenced by addWeight(), and weights().