#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 HEPRUP * | getHEPRUP () const |
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 |
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 132 of file LHERunInfo.cc.
References kAccepted, kKilled, kSelected, kTried, proc, LaserDQM_cfg::process, and processes.
std::vector< std::string > lhef::LHERunInfo::findHeader | ( | const std::string & | tag | ) | const |
Definition at line 390 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 |
Definition at line 52 of file LHERunInfo.h.
References heprup.
Referenced by gen::FortranCallback::fillHeader(), edm::LHEProvenanceHelper::lheAugment(), ThePEG::LesHouchesInterface::open(), Herwig6Hadronizer::readSettings(), and JetMatchingHook::setLHERunInfo().
|
private |
Definition at line 113 of file LHERunInfo.cc.
References heprup, lhef::LHERunInfo::Process::heprupIndex, i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, proc, lhef::LHERunInfo::Process::process, processes, and python.multivaluedict::sort().
Referenced by LHERunInfo().
|
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 502 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 228 of file LHERunInfo.cc.
References funct::abs(), gather_cfg::cout, heprup, lhef::HEPRUP::IDWTUP, customizeTrackingMonitorSeedNumber::idx, proc, processes, mathSSE::sqrt(), lhef::HEPRUP::XERRUP, xsec(), and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce().
LHERunInfo::XSec lhef::LHERunInfo::xsec | ( | ) | const |
Definition at line 153 of file LHERunInfo.cc.
References funct::abs(), lhef::LHERunInfo::XSec::error, heprup, lhef::HEPRUP::IDWTUP, customizeTrackingMonitorSeedNumber::idx, proc, processes, query::result, mathSSE::sqrt(), lhef::LHERunInfo::XSec::value, lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce(), and statistics().
|
private |
Definition at line 125 of file LHERunInfo.h.
Referenced by getComments(), and LHERunInfo().
|
private |
Definition at line 124 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 122 of file LHERunInfo.h.
Referenced by getHEPRUP(), init(), LHERunInfo(), operator==(), pdfSetTranslation(), statistics(), and xsec().
|
private |
Definition at line 123 of file LHERunInfo.h.
Referenced by count(), init(), statistics(), and xsec().