#include <LumiDetails.h>
Public Types | |
enum | Algos { kOCC1, kOCC2, kET, kPLT, kMaxNumAlgos } |
typedef unsigned int | AlgoType |
typedef std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > | ErrorRange |
typedef std::pair< std::vector< short >::const_iterator, std::vector< short >::const_iterator > | QualityRange |
typedef std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > | ValueRange |
Public Member Functions | |
void | fill (AlgoType algo, std::vector< float > const &values, std::vector< float > const &errors, std::vector< short > const &qualities) |
void | fillBeamIntensities (std::vector< float > const &beam1Intensities, std::vector< float > const &beam2Intensities) |
bool | isProductEqual (LumiDetails const &lumiDetails) const |
bool | isValid () const |
std::vector< float > const & | lumiBeam1Intensities () const |
float | lumiBeam1Intensity (unsigned int bx) const |
std::vector< float > const & | lumiBeam2Intensities () const |
float | lumiBeam2Intensity (unsigned int bx) const |
LumiDetails () | |
LumiDetails (std::string const &lumiVersion) | |
float | lumiError (AlgoType algo, unsigned int bx) const |
ErrorRange | lumiErrorsForAlgo (AlgoType algo) const |
QualityRange | lumiQualitiesForAlgo (AlgoType algo) const |
short | lumiQuality (AlgoType algo, unsigned int bx) const |
float | lumiValue (AlgoType algo, unsigned int bx) const |
ValueRange | lumiValuesForAlgo (AlgoType algo) const |
std::string const & | lumiVersion () const |
void | setLumiVersion (std::string const &lumiVersion) |
~LumiDetails () | |
Static Public Member Functions | |
static std::vector< std::string > const & | algoNames () |
static std::vector< std::string > const & | dipalgoNames () |
Private Member Functions | |
void | checkAlgo (AlgoType algo) const |
void | checkAlgoAndBX (AlgoType algo, unsigned int bx) const |
Private Attributes | |
std::vector< unsigned int > | m_algoToFirstIndex |
std::vector< float > | m_allErrors |
std::vector< short > | m_allQualities |
std::vector< float > | m_allValues |
std::vector< float > | m_beam1Intensities |
std::vector< float > | m_beam2Intensities |
std::string | m_lumiVersion |
Static Private Attributes | |
static const std::vector< std::string > | m_algoNames |
LumiDetails holds Details information: the lumi value, the error on this value, its quality, and 2 beam intensities for each bunch crossing (BX) in a given luminosity section (LS)
Definition at line 20 of file LumiDetails.h.
typedef unsigned int LumiDetails::AlgoType |
Definition at line 27 of file LumiDetails.h.
typedef std::pair<std::vector<float>::const_iterator, std::vector<float>::const_iterator> LumiDetails::ErrorRange |
Definition at line 29 of file LumiDetails.h.
typedef std::pair<std::vector<short>::const_iterator, std::vector<short>::const_iterator> LumiDetails::QualityRange |
Definition at line 30 of file LumiDetails.h.
typedef std::pair<std::vector<float>::const_iterator, std::vector<float>::const_iterator> LumiDetails::ValueRange |
Definition at line 28 of file LumiDetails.h.
enum LumiDetails::Algos |
LumiDetails::LumiDetails | ( | ) |
Definition at line 20 of file LumiDetails.cc.
|
explicit |
Definition at line 29 of file LumiDetails.cc.
LumiDetails::~LumiDetails | ( | ) |
Definition at line 38 of file LumiDetails.cc.
|
static |
Definition at line 113 of file LumiDetails.cc.
References cms::cuda::assert(), kMaxNumAlgos, and m_algoNames.
Referenced by operator<<().
|
private |
Definition at line 129 of file LumiDetails.cc.
References Exception, kMaxNumAlgos, and edm::errors::LogicError.
Referenced by checkAlgoAndBX(), fill(), lumiErrorsForAlgo(), lumiQualitiesForAlgo(), and lumiValuesForAlgo().
|
private |
Definition at line 136 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, checkAlgo(), Exception, edm::errors::LogicError, m_algoToFirstIndex, and mitigatedMETSequence_cff::U.
Referenced by lumiError(), lumiQuality(), and lumiValue().
|
static |
Definition at line 118 of file LumiDetails.cc.
References s_dipalgoNames.
Referenced by operator<<().
void LumiDetails::fill | ( | AlgoType | algo, |
std::vector< float > const & | values, | ||
std::vector< float > const & | errors, | ||
std::vector< short > const & | qualities | ||
) |
Definition at line 46 of file LumiDetails.cc.
References checkAlgo(), Exception, mps_fire::i, kMaxNumAlgos, edm::errors::LogicError, m_algoToFirstIndex, m_allErrors, m_allQualities, m_allValues, mitigatedMETSequence_cff::U, and contentValuesCheck::values.
void LumiDetails::fillBeamIntensities | ( | std::vector< float > const & | beam1Intensities, |
std::vector< float > const & | beam2Intensities | ||
) |
Definition at line 66 of file LumiDetails.cc.
References m_beam1Intensities, and m_beam2Intensities.
bool LumiDetails::isProductEqual | ( | LumiDetails const & | lumiDetails | ) | const |
Definition at line 119 of file LumiDetails.cc.
References m_algoToFirstIndex, m_allErrors, m_allQualities, m_allValues, m_beam1Intensities, m_beam2Intensities, and m_lumiVersion.
bool LumiDetails::isValid | ( | void | ) | const |
Definition at line 44 of file LumiDetails.cc.
References m_allValues.
Referenced by ntupleDataFormat._Object::_checkIsValid(), TrackCount::analyze(), DigiLumiCorrHistogramMaker::fill(), VertexHistogramMaker::fill(), and core.AutoHandle.AutoHandle::ReallyLoad().
std::vector< float > const & LumiDetails::lumiBeam1Intensities | ( | ) | const |
Definition at line 109 of file LumiDetails.cc.
References m_beam1Intensities.
Referenced by operator<<().
float LumiDetails::lumiBeam1Intensity | ( | unsigned int | bx | ) | const |
Definition at line 87 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, and m_beam1Intensities.
std::vector< float > const & LumiDetails::lumiBeam2Intensities | ( | ) | const |
Definition at line 111 of file LumiDetails.cc.
References m_beam2Intensities.
Referenced by operator<<().
float LumiDetails::lumiBeam2Intensity | ( | unsigned int | bx | ) | const |
Definition at line 89 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, and m_beam2Intensities.
float LumiDetails::lumiError | ( | AlgoType | algo, |
unsigned int | bx | ||
) | const |
Definition at line 77 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, checkAlgoAndBX(), m_algoToFirstIndex, and m_allErrors.
LumiDetails::ErrorRange LumiDetails::lumiErrorsForAlgo | ( | AlgoType | algo | ) | const |
Definition at line 97 of file LumiDetails.cc.
References checkAlgo(), m_algoToFirstIndex, m_allErrors, and mitigatedMETSequence_cff::U.
Referenced by operator<<().
LumiDetails::QualityRange LumiDetails::lumiQualitiesForAlgo | ( | AlgoType | algo | ) | const |
Definition at line 103 of file LumiDetails.cc.
References checkAlgo(), m_algoToFirstIndex, m_allQualities, and mitigatedMETSequence_cff::U.
Referenced by operator<<().
short LumiDetails::lumiQuality | ( | AlgoType | algo, |
unsigned int | bx | ||
) | const |
Definition at line 82 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, checkAlgoAndBX(), m_algoToFirstIndex, and m_allQualities.
float LumiDetails::lumiValue | ( | AlgoType | algo, |
unsigned int | bx | ||
) | const |
Definition at line 72 of file LumiDetails.cc.
References l1GtPatternGenerator_cfi::bx, checkAlgoAndBX(), m_algoToFirstIndex, and m_allValues.
Referenced by TrackCount::analyze(), IsoTrig::analyze(), DigiLumiCorrHistogramMaker::fill(), and VertexHistogramMaker::fill().
LumiDetails::ValueRange LumiDetails::lumiValuesForAlgo | ( | AlgoType | algo | ) | const |
Definition at line 91 of file LumiDetails.cc.
References checkAlgo(), m_algoToFirstIndex, m_allValues, and mitigatedMETSequence_cff::U.
Referenced by operator<<().
std::string const & LumiDetails::lumiVersion | ( | ) | const |
Definition at line 42 of file LumiDetails.cc.
References m_lumiVersion.
Referenced by operator<<(), and setLumiVersion().
void LumiDetails::setLumiVersion | ( | std::string const & | lumiVersion | ) |
|
staticprivate |
Definition at line 72 of file LumiDetails.h.
Referenced by algoNames().
|
private |
Definition at line 83 of file LumiDetails.h.
Referenced by checkAlgoAndBX(), fill(), isProductEqual(), lumiError(), lumiErrorsForAlgo(), lumiQualitiesForAlgo(), lumiQuality(), lumiValue(), and lumiValuesForAlgo().
|
private |
Definition at line 85 of file LumiDetails.h.
Referenced by fill(), isProductEqual(), lumiError(), and lumiErrorsForAlgo().
|
private |
Definition at line 86 of file LumiDetails.h.
Referenced by fill(), isProductEqual(), lumiQualitiesForAlgo(), and lumiQuality().
|
private |
Definition at line 84 of file LumiDetails.h.
Referenced by fill(), isProductEqual(), isValid(), lumiValue(), and lumiValuesForAlgo().
|
private |
Definition at line 87 of file LumiDetails.h.
Referenced by fillBeamIntensities(), isProductEqual(), lumiBeam1Intensities(), and lumiBeam1Intensity().
|
private |
Definition at line 88 of file LumiDetails.h.
Referenced by fillBeamIntensities(), isProductEqual(), lumiBeam2Intensities(), and lumiBeam2Intensity().
|
private |
Definition at line 74 of file LumiDetails.h.
Referenced by isProductEqual(), lumiVersion(), and setLumiVersion().