#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) |
int | evtnum () const |
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 | setEvtNum (int n) |
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 |
int | evtnum_ |
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, recoMuon::in, lhef::HEPEUP::ISTUP, mps_splice::line, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, originalXWGTUP_, pdf, lhef::HEPEUP::PUP, lhef::HEPEUP::resize(), runInfo, lhef::HEPEUP::SCALUP, skipWhitespace(), lhef::HEPEUP::SPINUP, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, lhef::HEPEUP::VTIMUP, lhef::HEPEUP::XPDWUP, and lhef::HEPEUP::XWGTUP.
lhef::LHEEvent::LHEEvent | ( | const std::shared_ptr< LHERunInfo > & | runInfo, |
const HEPEUP & | hepeup | ||
) |
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 112 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const std::shared_ptr< LHERunInfo > & | runInfo, |
const LHEEventProduct & | product | ||
) |
Definition at line 126 of file LHEEvent.cc.
lhef::LHEEvent::~LHEEvent | ( | ) |
Definition at line 140 of file LHEEvent.cc.
|
inline |
|
inline |
std::unique_ptr< HepMC::GenEvent > lhef::LHEEvent::asHepMCEvent | ( | ) | const |
Definition at line 230 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, b1, b2, checkHepMCTree(), pdg::cTau(), findSignalVertex(), GenParticle::GenParticle, AJJGenJetFilter_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 360 of file LHEEvent.cc.
References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and mps_update::status.
Referenced by asHepMCEvent().
void lhef::LHEEvent::count | ( | LHERunInfo::CountMode | count, |
double | weight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 187 of file LHEEvent.cc.
References counted, hepeup, lhef::HEPEUP::IDPRUP, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, runInfo, and lhef::HEPEUP::XWGTUP.
Referenced by gen::Pythia6Hadronizer::hadronize(), Pythia8HepMC3Hadronizer::hadronize(), and Pythia8Hadronizer::hadronize().
|
inline |
Definition at line 55 of file LHEEvent.h.
References evtnum_.
Referenced by Herwig7Hadronizer::hadronize().
void lhef::LHEEvent::fillEventInfo | ( | HepMC::GenEvent * | hepmc | ) | const |
Definition at line 223 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, hepeup, lhef::HEPEUP::IDPRUP, and lhef::HEPEUP::SCALUP.
Referenced by gen::Pythia6Hadronizer::finalizeEvent().
void lhef::LHEEvent::fillPdfInfo | ( | HepMC::PdfInfo * | info | ) | const |
Definition at line 196 of file LHEEvent.cc.
References funct::abs(), lhef::HEPRUP::EBMUP, getHEPRUP(), hepeup, lhef::HEPEUP::IDUP, info(), lhef::HEPEUP::NUP, pdf, lhef::HEPEUP::PUP, and lhef::HEPEUP::SCALUP.
Referenced by gen::Pythia6Hadronizer::finalizeEvent().
|
static |
Definition at line 396 of file LHEEvent.cc.
References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and bphysicsOniaDQM_cfi::vertex.
Referenced by asHepMCEvent().
|
static |
Definition at line 456 of file LHEEvent.cc.
References lhef::fixSubTree(), and class-composition::visited.
|
inline |
|
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 |
Definition at line 39 of file LHEEvent.h.
References runInfo.
Referenced by asHepMCEvent(), and fillPdfInfo().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 347 of file LHEEvent.cc.
References GenParticle::GenParticle, hepeup, mps_fire::i, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::PUP, and mps_update::status.
Referenced by asHepMCEvent().
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 142 of file LHEEvent.cc.
References hepeup, 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 178 of file LHEEvent.cc.
References funct::abs(), spr::find(), hepeup, mps_fire::i, l1ctLayer2EG_cff::id, lhef::HEPEUP::IDUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, and removeParticle().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 91 of file LHEEvent.h.
Referenced by addComment(), getComments(), and LHEEvent().
|
private |
Definition at line 92 of file LHEEvent.h.
Referenced by count().
|
private |
Definition at line 98 of file LHEEvent.h.
Referenced by evtnum(), and setEvtNum().
|
private |
Definition at line 88 of file LHEEvent.h.
Referenced by asHepMCEvent(), count(), fillEventInfo(), fillPdfInfo(), getHEPEUP(), LHEEvent(), makeHepMCParticle(), removeParticle(), and removeResonances().
|
private |
Definition at line 96 of file LHEEvent.h.
|
private |
Definition at line 97 of file LHEEvent.h.
Referenced by npNLO(), and setNpNLO().
|
private |
Definition at line 94 of file LHEEvent.h.
Referenced by LHEEvent(), and originalXWGTUP().
|
private |
Definition at line 89 of file LHEEvent.h.
Referenced by fillPdfInfo(), getPDF(), LHEEvent(), and setPDF().
|
private |
Definition at line 93 of file LHEEvent.h.
Referenced by attempted(), and getReadAttempts().
|
private |
Definition at line 86 of file LHEEvent.h.
Referenced by count(), getHEPRUP(), getRunInfo(), and LHEEvent().
|
private |
Definition at line 95 of file LHEEvent.h.
Referenced by scales(), and setScales().
|
private |
Definition at line 90 of file LHEEvent.h.
Referenced by addWeight(), and weights().