#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 64 of file LHERunInfo.h.
lhef::LHERunInfo::LHERunInfo | ( | std::istream & | in | ) |
Definition at line 38 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 84 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 91 of file LHERunInfo.cc.
|
inline |
Definition at line 62 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 119 of file LHERunInfo.cc.
References kAccepted, kKilled, kSelected, kTried, cuda_std::lower_bound(), ValidateTausOnZEEFastSim_cff::proc, LaserDQM_cfg::process, processes, and processesLumi.
std::vector< std::string > lhef::LHERunInfo::findHeader | ( | const std::string & | tag | ) | const |
Definition at line 434 of file LHERunInfo.cc.
References lhef::domToLines(), headers, 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 |
Definition at line 57 of file LHERunInfo.h.
References comments.
Referenced by LH5Source::fillRunInfoProduct(), and LHESource::fillRunInfoProduct().
|
inline |
Definition at line 56 of file LHERunInfo.h.
References headers.
Referenced by LH5Source::fillRunInfoProduct(), LHESource::fillRunInfoProduct(), edm::LHEProvenanceHelper::lheAugment(), and Herwig6Hadronizer::upInit().
|
inline |
|
inline |
Definition at line 51 of file LHERunInfo.h.
References heprup.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce(), gen::FortranCallback::fillHeader(), edm::LHEProvenanceHelper::lheAugment(), Herwig6Hadronizer::readSettings(), JetMatchingHook::setLHERunInfo(), and edm::ConcurrentHadronizerFilter< HAD, DEC >::streamEndLuminosityBlockSummary().
|
inline |
Definition at line 163 of file LHERunInfo.h.
References processesLumi.
Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce(), and edm::ConcurrentHadronizerFilter< HAD, DEC >::streamEndLuminosityBlockSummary().
|
private |
Definition at line 93 of file LHERunInfo.cc.
References heprup, mps_fire::i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, ValidateTausOnZEEFastSim_cff::proc, processes, lhef::LHERunInfo::Process::setHepRupIndex(), and lhef::LHERunInfo::Process::setProcess().
Referenced by LHERunInfo().
void lhef::LHERunInfo::initLumi | ( | ) |
Definition at line 104 of file LHERunInfo.cc.
References heprup, mps_fire::i, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, ValidateTausOnZEEFastSim_cff::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(), edm::HadronizerFilter< HAD, DEC >::beginRun(), edm::ConcurrentHadronizerFilter< HAD, DEC >::initLumi(), and edm::ConcurrentHadronizerFilter< HAD, DEC >::streamBeginRun().
|
inline |
Definition at line 54 of file LHERunInfo.h.
bool lhef::LHERunInfo::operator== | ( | const LHERunInfo & | other | ) | const |
std::pair< int, int > lhef::LHERunInfo::pdfSetTranslation | ( | ) | const |
Definition at line 527 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 252 of file LHERunInfo.cc.
References cuy::denominator, heprup, lhef::HEPRUP::IDWTUP, LogDebug, groupFilesInBlocks::ntotal, cuy::numerator, funct::pow(), ValidateTausOnZEEFastSim_cff::proc, processes, mathSSE::sqrt(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce(), and edm::ConcurrentHadronizerFilter< HAD, DEC >::streamEndRun().
LHERunInfo::XSec lhef::LHERunInfo::xsec | ( | ) | const |
Definition at line 163 of file LHERunInfo.cc.
References cuy::denominator, heprup, lhef::HEPRUP::IDWTUP, groupFilesInBlocks::ntotal, cuy::numerator, funct::pow(), ValidateTausOnZEEFastSim_cff::proc, processes, mps_fire::result, mathSSE::sqrt(), lhef::HEPRUP::XERRUP, and lhef::HEPRUP::XSECUP.
Referenced by edm::HadronizerFilter< HAD, DEC >::endRunProduce(), and edm::ConcurrentHadronizerFilter< HAD, DEC >::streamEndRun().
|
private |
Definition at line 160 of file LHERunInfo.h.
Referenced by getComments(), and LHERunInfo().
|
private |
Definition at line 159 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 157 of file LHERunInfo.h.
Referenced by getHEPRUP(), init(), initLumi(), LHERunInfo(), operator==(), pdfSetTranslation(), statistics(), and xsec().
|
private |
Definition at line 158 of file LHERunInfo.h.
Referenced by count(), init(), statistics(), and xsec().
|
private |
Definition at line 168 of file LHERunInfo.h.
Referenced by count(), getLumiProcesses(), and initLumi().