#include <LHERunInfo.h>
Classes | |
struct | Counter |
class | Header |
struct | Process |
struct | XSec |
Public Types | |
enum | CountMode { kTried = 0, kSelected, kKilled, kAccepted } |
Public Member Functions | |
void | addComment (const std::string &line) |
void | addHeader (const Header &header) |
void | count (int process, CountMode count, double eventWeight=1.0, double brWeight=1.0, double matchWeight=1.0) |
std::vector< std::string > | findHeader (const std::string &tag) const |
const std::vector< std::string > & | getComments () const |
const std::vector< Header > & | getHeaders () const |
const int | getHEPIDWTUP () const |
const HEPRUP * | getHEPRUP () const |
const std::vector< Process > & | getLumiProcesses () const |
void | initLumi () |
LHERunInfo (std::istream &in) | |
LHERunInfo (const HEPRUP &heprup) | |
LHERunInfo (const HEPRUP &heprup, const std::vector< LHERunInfoProduct::Header > &headers, const std::vector< std::string > &comments) | |
LHERunInfo (const LHERunInfoProduct &product) | |
bool | operator!= (const LHERunInfo &other) const |
bool | operator== (const LHERunInfo &other) const |
std::pair< int, int > | pdfSetTranslation () const |
void | statistics () const |
XSec | xsec () const |
~LHERunInfo () | |
Private Member Functions | |
void | init () |
Private Attributes | |
std::vector< std::string > | comments |
std::vector< Header > | headers |
HEPRUP | heprup |
std::vector< Process > | processes |
std::vector< Process > | processesLumi |
Definition at line 25 of file LHERunInfo.h.
Enumerator | |
---|---|
kTried | |
kSelected | |
kKilled | |
kAccepted |
Definition at line 66 of file LHERunInfo.h.
lhef::LHERunInfo::LHERunInfo | ( | std::istream & | in | ) |
Definition at line 41 of file LHERunInfo.cc.
References comments, lhef::HEPRUP::EBMUP, heprup, mps_fire::i, lhef::HEPRUP::IDBMUP, lhef::HEPRUP::IDWTUP, init(), geometryCSVtoXML::line, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, lhef::HEPRUP::PDFGUP, lhef::HEPRUP::PDFSUP, lhef::HEPRUP::resize(), skipWhitespace(), AlCaHLTBitMon_QueryRunRegistry::string, lhef::HEPRUP::XERRUP, lhef::HEPRUP::XMAXUP, and lhef::HEPRUP::XSECUP.
lhef::LHERunInfo::LHERunInfo | ( | const HEPRUP & | heprup | ) |
lhef::LHERunInfo::LHERunInfo | ( | const HEPRUP & | heprup, |
const std::vector< LHERunInfoProduct::Header > & | headers, | ||
const std::vector< std::string > & | comments | ||
) |
lhef::LHERunInfo::LHERunInfo | ( | const LHERunInfoProduct & | product | ) |
Definition at line 98 of file LHERunInfo.cc.
References comments, LHERunInfoProduct::comments_begin(), LHERunInfoProduct::comments_end(), popcon2dropbox::copy(), headers, LHERunInfoProduct::headers_begin(), LHERunInfoProduct::headers_end(), and init().
lhef::LHERunInfo::~LHERunInfo | ( | ) |
Definition at line 109 of file LHERunInfo.cc.
|
inline |
Definition at line 64 of file LHERunInfo.h.
|
inline |
void lhef::LHERunInfo::count | ( | int | process, |
CountMode | count, | ||
double | eventWeight = 1.0 , |
||
double | brWeight = 1.0 , |
||
double | matchWeight = 1.0 |
||
) |
Definition at line 147 of file LHERunInfo.cc.
References kAccepted, kKilled, kSelected, kTried, proc, LaserDQM_cfg::process, processes, and processesLumi.
std::vector< std::string > lhef::LHERunInfo::findHeader | ( | const std::string & | tag | ) | const |
Definition at line 525 of file LHERunInfo.cc.
References LHERunInfoProduct::Header::begin(), data, lhef::domToLines(), MillePedeFileConverter_cfg::e, relativeConstraints::empty, LHERunInfoProduct::Header::end(), Exception, RecoTauValidation_cfi::header, headers, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, createfilelist::parser, matplotRender::reader, source, AlCaHLTBitMon_QueryRunRegistry::string, LHERunInfoProduct::Header::tag(), tmp, and lhef::LHERunInfo::Header::xmlDoc.
Referenced by gen::JetMatchingMadgraph::init(), gen::JetMatchingAlpgen::init(), gen::JetMatchingMGFastJet::init(), Herwig6Hadronizer::initialize(), gen::Pythia6Hadronizer::initializeForExternalPartons(), and Herwig6Hadronizer::readSettings().
|
inline |
Definition at line 59 of file LHERunInfo.h.
References indexGen::comments, AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by LHESource::fillRunInfoProduct().
|
inline |
Definition at line 58 of file LHERunInfo.h.
Referenced by LHESource::fillRunInfoProduct(), edm::LHEProvenanceHelper::lheAugment(), and Herwig6Hadronizer::upInit().
|
inline |
|
inline |
Definition at line 52 of file LHERunInfo.h.
References operator==(), and trackingPlots::other.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce(), gen::FortranCallback::fillHeader(), edm::LHEProvenanceHelper::lheAugment(), Herwig6Hadronizer::readSettings(), and JetMatchingHook::setLHERunInfo().
|
inline |
Definition at line 171 of file LHERunInfo.h.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce().
|
private |
Definition at line 113 of file LHERunInfo.cc.
References heprup, mps_fire::i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, proc, processes, lhef::LHERunInfo::Process::setHepRupIndex(), and lhef::LHERunInfo::Process::setProcess().
Referenced by LHERunInfo().
void lhef::LHERunInfo::initLumi | ( | ) |
Definition at line 125 of file LHERunInfo.cc.
References heprup, mps_fire::i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, proc, processesLumi, lhef::LHERunInfo::Process::setHepRupIndex(), lhef::LHERunInfo::Process::setLHEXSec(), lhef::LHERunInfo::Process::setProcess(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::beginLuminosityBlockProduce(), and edm::HadronizerFilter< HAD, DEC >::beginRun().
|
inline |
bool lhef::LHERunInfo::operator== | ( | const LHERunInfo & | other | ) | const |
std::pair< int, int > lhef::LHERunInfo::pdfSetTranslation | ( | ) | const |
Definition at line 637 of file LHERunInfo.cc.
References heprup, lhef::HEPRUP::PDFGUP, and lhef::HEPRUP::PDFSUP.
Referenced by Herwig6Hadronizer::initialize(), and Herwig6Hadronizer::readSettings().
void lhef::LHERunInfo::statistics | ( | ) | const |
Definition at line 297 of file LHERunInfo.cc.
References pfDeepCMVADiscriminatorsJetTags_cfi::denominator, alignBH_cfg::fixed, heprup, lhef::HEPRUP::IDWTUP, training_settings::idx, LogDebug, groupFilesInBlocks::ntotal, pfDeepCMVADiscriminatorsJetTags_cfi::numerator, funct::pow(), proc, processes, mathSSE::sqrt(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce().
LHERunInfo::XSec lhef::LHERunInfo::xsec | ( | ) | const |
Definition at line 199 of file LHERunInfo.cc.
References pfDeepCMVADiscriminatorsJetTags_cfi::denominator, heprup, lhef::HEPRUP::IDWTUP, training_settings::idx, groupFilesInBlocks::ntotal, pfDeepCMVADiscriminatorsJetTags_cfi::numerator, funct::pow(), proc, processes, mps_fire::result, mathSSE::sqrt(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce().
|
private |
Definition at line 168 of file LHERunInfo.h.
Referenced by LHERunInfo().
|
private |
Definition at line 167 of file LHERunInfo.h.
Referenced by findHeader(), LHERunInfo(), Formatter.SimpleHTMLFormatter::showLine(), Formatter.SimpleHTMLFormatter::write(), Formatter.SimpleHTMLFormatter::writeAnchor(), Formatter.SimpleHTMLFormatter::writeB(), Formatter.SimpleHTMLFormatter::writeBr(), Formatter.SimpleHTMLFormatter::writeH1(), Formatter.SimpleHTMLFormatter::writeH2(), and Formatter.SimpleHTMLFormatter::writeH3().
|
private |
Definition at line 165 of file LHERunInfo.h.
Referenced by init(), initLumi(), LHERunInfo(), operator==(), pdfSetTranslation(), statistics(), and xsec().
|
private |
Definition at line 166 of file LHERunInfo.h.
Referenced by count(), init(), statistics(), and xsec().
|
private |
Definition at line 175 of file LHERunInfo.h.
Referenced by count(), and initLumi().