#include <DIPLumiDetail.h>
Public Types | |
typedef std::pair< std::vector < float >::const_iterator, std::vector< float > ::const_iterator > | ValueRange |
Public Member Functions | |
DIPLumiDetail () | |
default constructor | |
void | fillbxdata (unsigned int bxidx, float bxlumi) |
void | filldata (std::vector< float > &lumivalues) |
unsigned int | fromLS () const |
unsigned int | fromRun () const |
bool | isNull () const |
float | lumiValue (unsigned int bx) const |
ValueRange | lumiValues () const |
void | setOrigin (unsigned int runnumber, unsigned int ls) |
virtual | ~DIPLumiDetail () |
set default constructor | |
Private Attributes | |
unsigned int | m_ls |
std::vector< float > | m_lumiValues |
unsigned int | m_runnum |
Definition at line 7 of file DIPLumiDetail.h.
typedef std::pair<std::vector<float>::const_iterator, std::vector<float>::const_iterator> DIPLumiDetail::ValueRange |
Definition at line 11 of file DIPLumiDetail.h.
DIPLumiDetail::DIPLumiDetail | ( | ) |
default constructor
Definition at line 7 of file DIPLumiDetail.cc.
:m_runnum(0),m_ls(0),m_lumiValues(3564){ }
virtual DIPLumiDetail::~DIPLumiDetail | ( | ) | [inline, virtual] |
void DIPLumiDetail::fillbxdata | ( | unsigned int | bxidx, |
float | bxlumi | ||
) |
Definition at line 29 of file DIPLumiDetail.cc.
References m_lumiValues.
{ m_lumiValues[bxidx]=bxvalue; }
void DIPLumiDetail::filldata | ( | std::vector< float > & | lumivalues | ) |
Definition at line 25 of file DIPLumiDetail.cc.
References m_lumiValues.
{ lumivalues.swap(m_lumiValues); }
unsigned int DIPLumiDetail::fromLS | ( | ) | const |
unsigned int DIPLumiDetail::fromRun | ( | ) | const |
bool DIPLumiDetail::isNull | ( | ) | const |
float DIPLumiDetail::lumiValue | ( | unsigned int | bx | ) | const |
Definition at line 17 of file DIPLumiDetail.cc.
References m_lumiValues.
{ return m_lumiValues[bx]; }
DIPLumiDetail::ValueRange DIPLumiDetail::lumiValues | ( | ) | const |
Definition at line 21 of file DIPLumiDetail.cc.
References m_lumiValues.
Referenced by operator<<().
{ return ValueRange(m_lumiValues.begin(),m_lumiValues.end()); }
void DIPLumiDetail::setOrigin | ( | unsigned int | runnumber, |
unsigned int | ls | ||
) |
Definition at line 41 of file DIPLumiDetail.cc.
References python::rootplot::utilities::ls(), m_ls, m_runnum, and cond::runnumber.
unsigned int DIPLumiDetail::m_ls [private] |
Definition at line 24 of file DIPLumiDetail.h.
Referenced by fromLS(), isNull(), and setOrigin().
std::vector<float> DIPLumiDetail::m_lumiValues [private] |
Definition at line 25 of file DIPLumiDetail.h.
Referenced by fillbxdata(), filldata(), lumiValue(), and lumiValues().
unsigned int DIPLumiDetail::m_runnum [private] |
Definition at line 23 of file DIPLumiDetail.h.
Referenced by fromRun(), isNull(), and setOrigin().