#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) | |
double | originalXWGTUP () const |
void | removeResonances (const std::vector< int > &ids) |
void | setPDF (std::auto_ptr< PDF > pdf) |
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 |
double | originalXWGTUP_ |
std::auto_ptr< PDF > | |
int | readAttemptCounter |
const boost::shared_ptr < LHERunInfo > | runInfo |
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, newFWLiteAna::found, 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, 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 125 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 131 of file LHEEvent.cc.
lhef::LHEEvent::LHEEvent | ( | const boost::shared_ptr< LHERunInfo > & | runInfo, |
const LHEEventProduct & | product | ||
) |
Definition at line 140 of file LHEEvent.cc.
lhef::LHEEvent::~LHEEvent | ( | ) |
Definition at line 150 of file LHEEvent.cc.
|
inline |
Definition at line 55 of file LHEEvent.h.
|
inline |
std::auto_ptr< HepMC::GenEvent > lhef::LHEEvent::asHepMCEvent | ( | ) | const |
Definition at line 262 of file LHEEvent.cc.
References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, checkHepMCTree(), findSignalVertex(), configurableAnalysis::GenParticle, genParticleCandidates2GenParticles_cfi::genParticles, getHEPRUP(), hepeup, i, lhef::HEPEUP::IDPRUP, j, makeHepMCParticle(), lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::SCALUP, and lhef::HEPEUP::VTIMUP.
|
inline |
|
staticprivate |
Definition at line 409 of file LHEEvent.cc.
References ntuplemaker::status.
Referenced by asHepMCEvent().
void lhef::LHEEvent::count | ( | LHERunInfo::CountMode | count, |
double | weight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 212 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 254 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 226 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 453 of file LHEEvent.cc.
Referenced by asHepMCEvent(), lhef::Hadronisation::hadronize(), and lhef::Hadronisation::showeredEvent().
|
static |
Definition at line 518 of file LHEEvent.cc.
References lhef::fixSubTree().
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::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 392 of file LHEEvent.cc.
References configurableAnalysis::GenParticle, hepeup, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::PUP, and ntuplemaker::status.
Referenced by asHepMCEvent().
|
inline |
|
static |
Definition at line 161 of file LHEEvent.cc.
References i, lhef::HEPEUP::ICOLUP, lhef::HEPEUP::IDUP, getHLTprescales::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 201 of file LHEEvent.cc.
References funct::abs(), spr::find(), hepeup, i, lhef::HEPEUP::IDUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, and removeParticle().
|
inline |
|
inline |
|
private |
Definition at line 84 of file LHEEvent.h.
Referenced by getComments(), and LHEEvent().
|
private |
Definition at line 85 of file LHEEvent.h.
Referenced by count().
|
private |
Definition at line 81 of file LHEEvent.h.
Referenced by asHepMCEvent(), count(), fillEventInfo(), fillPdfInfo(), getHEPEUP(), LHEEvent(), makeHepMCParticle(), and removeResonances().
|
private |
Definition at line 87 of file LHEEvent.h.
Referenced by LHEEvent(), and originalXWGTUP().
|
private |
Definition at line 82 of file LHEEvent.h.
Referenced by fillPdfInfo(), LHEEvent(), and setPDF().
|
private |
Definition at line 86 of file LHEEvent.h.
Referenced by attempted(), and getReadAttempts().
|
private |
Definition at line 79 of file LHEEvent.h.
Referenced by count(), and getRunInfo().
|
private |
Definition at line 83 of file LHEEvent.h.
Referenced by addWeight(), and weights().