#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, 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(), filterCSVwithJSON::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 527 of file LHERunInfo.cc.
References lhef::domToLines(), headers, dbtoconf::root, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by gen::JetMatchingMadgraph::init(), gen::JetMatchingAlpgen::init(), gen::JetMatchingMGFastJet::init(), Herwig6Hadronizer::initialize(), gen::Pythia6Hadronizer::initializeForExternalPartons(), and Herwig6Hadronizer::readSettings().
|
inline |
|
inline |
Definition at line 58 of file LHERunInfo.h.
References headers.
Referenced by edm::LHEProvenanceHelper::lheAugment(), and Herwig6Hadronizer::upInit().
|
inline |
|
inline |
Definition at line 52 of file LHERunInfo.h.
References heprup.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce(), gen::FortranCallback::fillHeader(), edm::LHEProvenanceHelper::lheAugment(), ThePEG::LesHouchesInterface::open(), Herwig6Hadronizer::readSettings(), and JetMatchingHook::setLHERunInfo().
|
inline |
Definition at line 171 of file LHERunInfo.h.
References processesLumi.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce().
|
private |
Definition at line 113 of file LHERunInfo.cc.
References heprup, i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, proc, processes, lhef::LHERunInfo::Process::setHepRupIndex(), lhef::LHERunInfo::Process::setProcess(), and python.multivaluedict::sort().
Referenced by LHERunInfo().
void lhef::LHERunInfo::initLumi | ( | ) |
Definition at line 125 of file LHERunInfo.cc.
References heprup, i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, proc, processesLumi, lhef::LHERunInfo::Process::setHepRupIndex(), lhef::LHERunInfo::Process::setLHEXSec(), lhef::LHERunInfo::Process::setProcess(), python.multivaluedict::sort(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::beginLuminosityBlock(), and edm::HadronizerFilter< HAD, DEC >::beginRun().
|
inline |
Definition at line 55 of file LHERunInfo.h.
bool lhef::LHERunInfo::operator== | ( | const LHERunInfo & | other | ) | const |
std::pair< int, int > lhef::LHERunInfo::pdfSetTranslation | ( | ) | const |
Definition at line 639 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 gather_cfg::cout, cuy::denominator, heprup, lhef::HEPRUP::IDWTUP, customizeTrackingMonitorSeedNumber::idx, groupFilesInBlocks::ntotal, cuy::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 cuy::denominator, heprup, lhef::HEPRUP::IDWTUP, customizeTrackingMonitorSeedNumber::idx, groupFilesInBlocks::ntotal, cuy::numerator, funct::pow(), proc, processes, query::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 getComments(), and LHERunInfo().
|
private |
Definition at line 167 of file LHERunInfo.h.
Referenced by findHeader(), getHeaders(), 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 getHEPRUP(), 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(), getLumiProcesses(), and initLumi().