#include <LumiSectionData.h>
Public Member Functions | |
BunchCrossingIterator | bunchCrossingBegin (const LumiAlgoType lumialgotype) const |
BunchCrossingIterator | bunchCrossingEnd (const LumiAlgoType lumialgotype) const |
const BunchCrossingInfo | bunchCrossingInfo (const int BXIndex, const LumiAlgoType lumialgotype) const |
void | bunchCrossingInfo (const LumiAlgoType lumialgotype, std::vector< BunchCrossingInfo > &result) const |
float | deadFraction () const |
HLTIterator | hltBegin () const |
HLTIterator | hltEnd () const |
bool | HLThasData () const |
float | lumiAverage () const |
float | lumiError () const |
int | lumiquality () const |
LumiSectionData () | |
int | lumisectionID () const |
std::string | lumiVersion () const |
size_t | nBunchCrossing () const |
size_t | nHLTPath () const |
void | print (std::ostream &s) const |
short | qualityFlag () const |
void | setBunchCrossingData (const std::vector< BunchCrossingInfo > &BXs, const LumiAlgoType algotype) |
void | setDeadFraction (float deadfrac) |
void | setHLTData (const std::vector< HLTInfo > &hltdetail) |
void | setLumiAverage (float lumiavg) |
void | setLumiError (float lumierr) |
void | setLumiNull () |
void | setLumiQuality (int lumiquality) |
void | setLumiSectionId (int sectionid) |
void | setLumiVersion (const std::string &versionid) |
void | setQualityFlag (short qualityflag) |
void | setStartOrbit (unsigned long long orbtnumber) |
void | setTriggerData (const std::vector< TriggerInfo > &triggerinfo) |
unsigned long long | startorbit () const |
TriggerIterator | trgBegin () const |
TriggerIterator | trgEnd () const |
bool | TriggerhasData () const |
~LumiSectionData () | |
Private Attributes | |
std::vector< BunchCrossingInfo > | m_bx |
float | m_deadfrac |
std::vector< HLTInfo > | m_hlt |
float | m_lumiavg |
float | m_lumierror |
short | m_quality |
int | m_sectionid |
unsigned long long | m_startorbit |
std::vector< TriggerInfo > | m_trigger |
std::string | m_versionid |
Definition at line 60 of file LumiSectionData.h.
lumi::LumiSectionData::LumiSectionData | ( | ) |
Definition at line 3 of file LumiSectionData.cc.
References lumi::BXMAX, lumi::LUMIALGOMAX, and m_bx.
: m_sectionid(0),m_versionid("-1"){ m_bx.reserve(lumi::BXMAX*LUMIALGOMAX); }
lumi::LumiSectionData::~LumiSectionData | ( | ) | [inline] |
Definition at line 63 of file LumiSectionData.h.
{}
lumi::BunchCrossingIterator lumi::LumiSectionData::bunchCrossingBegin | ( | const LumiAlgoType | lumialgotype | ) | const |
Definition at line 52 of file LumiSectionData.cc.
References lumi::BXMAX.
lumi::BunchCrossingIterator lumi::LumiSectionData::bunchCrossingEnd | ( | const LumiAlgoType | lumialgotype | ) | const |
Definition at line 56 of file LumiSectionData.cc.
References lumi::BXMAX.
{ return m_bx.end()-(lumi::BXMAX)*lumialgotype; }
void lumi::LumiSectionData::bunchCrossingInfo | ( | const LumiAlgoType | lumialgotype, |
std::vector< BunchCrossingInfo > & | result | ||
) | const |
const lumi::BunchCrossingInfo lumi::LumiSectionData::bunchCrossingInfo | ( | const int | BXIndex, |
const LumiAlgoType | lumialgotype | ||
) | const |
Definition at line 46 of file LumiSectionData.cc.
References lumi::BXMAX, and lumi::BXMIN.
{ int realIdx=BXIndex-lumi::BXMIN+lumialgotype*lumi::BXMAX; return m_bx.at(realIdx); }
float lumi::LumiSectionData::deadFraction | ( | ) | const |
Definition at line 27 of file LumiSectionData.cc.
{ return m_deadfrac; }
lumi::HLTIterator lumi::LumiSectionData::hltBegin | ( | ) | const |
Definition at line 68 of file LumiSectionData.cc.
{ return m_hlt.begin(); }
lumi::HLTIterator lumi::LumiSectionData::hltEnd | ( | ) | const |
Definition at line 72 of file LumiSectionData.cc.
{ return m_hlt.end(); }
bool lumi::LumiSectionData::HLThasData | ( | ) | const |
Definition at line 64 of file LumiSectionData.cc.
{ return m_hlt.size()>0; }
float lumi::LumiSectionData::lumiAverage | ( | ) | const |
Definition at line 19 of file LumiSectionData.cc.
{ return m_lumiavg; }
float lumi::LumiSectionData::lumiError | ( | ) | const |
Definition at line 23 of file LumiSectionData.cc.
{ return m_lumierror; }
int lumi::LumiSectionData::lumiquality | ( | ) | const |
Definition at line 35 of file LumiSectionData.cc.
{ return m_quality; }
int lumi::LumiSectionData::lumisectionID | ( | ) | const |
Definition at line 11 of file LumiSectionData.cc.
{ return m_sectionid; }
std::string lumi::LumiSectionData::lumiVersion | ( | ) | const |
size_t lumi::LumiSectionData::nBunchCrossing | ( | ) | const |
Definition at line 15 of file LumiSectionData.cc.
References lumi::LUMIALGOMAX.
{ return m_bx.size()/lumi::LUMIALGOMAX; }
size_t lumi::LumiSectionData::nHLTPath | ( | ) | const |
Definition at line 60 of file LumiSectionData.cc.
{ return m_hlt.size(); }
void lumi::LumiSectionData::print | ( | std::ostream & | s | ) | const |
Definition at line 140 of file LumiSectionData.cc.
References gather_cfg::cout, and i.
{ s<<"lumi section id :"<<m_sectionid <<", "; s<<"lumi data version : "<<m_versionid<<", "; s<<"lumi average : "<<m_lumiavg<<", "; s<<"lumi error : "<<m_lumierror<<", "; s<<"lumi quality : "<<m_quality<<", "; s<<"lumi deadfrac : "<<m_deadfrac<<std::endl; std::vector<lumi::TriggerInfo>::const_iterator trgit; std::vector<lumi::TriggerInfo>::const_iterator trgitBeg=m_trigger.begin(); std::vector<lumi::TriggerInfo>::const_iterator trgitEnd=m_trigger.end(); unsigned int i=0; for(trgit=trgitBeg;trgit!=trgitEnd;++trgit){ std::cout<<" trg "<<i<<" : name : "<<trgit->name<<" : count : "<<trgit->triggercount<<" : deadtime : "<< trgit->deadtimecount<<" : prescale : "<<trgit->prescale<<std::endl; ++i; } }
short lumi::LumiSectionData::qualityFlag | ( | ) | const |
Definition at line 88 of file LumiSectionData.cc.
{ return m_quality; }
void lumi::LumiSectionData::setBunchCrossingData | ( | const std::vector< BunchCrossingInfo > & | BXs, |
const LumiAlgoType | algotype | ||
) |
Definition at line 124 of file LumiSectionData.cc.
References lumi::BXMAX, and filterCSVwithJSON::copy.
{ std::copy(BXs.begin(),BXs.begin()+lumi::BXMAX,std::back_inserter(m_bx)); }
void lumi::LumiSectionData::setDeadFraction | ( | float | deadfrac | ) |
Definition at line 112 of file LumiSectionData.cc.
{ m_deadfrac=deadfrac; }
void lumi::LumiSectionData::setHLTData | ( | const std::vector< HLTInfo > & | hltdetail | ) |
Definition at line 128 of file LumiSectionData.cc.
References filterCSVwithJSON::copy.
void lumi::LumiSectionData::setLumiAverage | ( | float | lumiavg | ) |
Definition at line 104 of file LumiSectionData.cc.
{ m_lumiavg=avg; }
void lumi::LumiSectionData::setLumiError | ( | float | lumierr | ) |
Definition at line 116 of file LumiSectionData.cc.
{ m_lumierror=lumierr; }
void lumi::LumiSectionData::setLumiNull | ( | ) |
void lumi::LumiSectionData::setLumiQuality | ( | int | lumiquality | ) |
Definition at line 108 of file LumiSectionData.cc.
{ m_quality=lumiquality; }
void lumi::LumiSectionData::setLumiSectionId | ( | int | sectionid | ) |
Definition at line 100 of file LumiSectionData.cc.
{ m_sectionid=sectionid; }
void lumi::LumiSectionData::setLumiVersion | ( | const std::string & | versionid | ) |
Definition at line 96 of file LumiSectionData.cc.
{ m_versionid=versionid; }
void lumi::LumiSectionData::setQualityFlag | ( | short | qualityflag | ) |
Definition at line 136 of file LumiSectionData.cc.
{ m_quality=qualityflag; }
void lumi::LumiSectionData::setStartOrbit | ( | unsigned long long | orbtnumber | ) |
Definition at line 120 of file LumiSectionData.cc.
{ m_startorbit=orbtnumber; }
void lumi::LumiSectionData::setTriggerData | ( | const std::vector< TriggerInfo > & | triggerinfo | ) |
Definition at line 132 of file LumiSectionData.cc.
References filterCSVwithJSON::copy.
unsigned long long lumi::LumiSectionData::startorbit | ( | ) | const |
Definition at line 31 of file LumiSectionData.cc.
{ return m_startorbit; }
lumi::TriggerIterator lumi::LumiSectionData::trgBegin | ( | ) | const |
Definition at line 80 of file LumiSectionData.cc.
{ return m_trigger.begin(); }
lumi::TriggerIterator lumi::LumiSectionData::trgEnd | ( | ) | const |
Definition at line 84 of file LumiSectionData.cc.
{ return m_trigger.end(); }
bool lumi::LumiSectionData::TriggerhasData | ( | ) | const |
Definition at line 76 of file LumiSectionData.cc.
{ return m_trigger.size()>0; }
std::vector<BunchCrossingInfo> lumi::LumiSectionData::m_bx [private] |
Definition at line 115 of file LumiSectionData.h.
Referenced by LumiSectionData().
float lumi::LumiSectionData::m_deadfrac [private] |
Definition at line 121 of file LumiSectionData.h.
std::vector< HLTInfo > lumi::LumiSectionData::m_hlt [private] |
Definition at line 123 of file LumiSectionData.h.
float lumi::LumiSectionData::m_lumiavg [private] |
Definition at line 118 of file LumiSectionData.h.
float lumi::LumiSectionData::m_lumierror [private] |
Definition at line 119 of file LumiSectionData.h.
short lumi::LumiSectionData::m_quality [private] |
Definition at line 120 of file LumiSectionData.h.
int lumi::LumiSectionData::m_sectionid [private] |
Definition at line 116 of file LumiSectionData.h.
unsigned long long lumi::LumiSectionData::m_startorbit [private] |
Definition at line 122 of file LumiSectionData.h.
std::vector< TriggerInfo > lumi::LumiSectionData::m_trigger [private] |
Definition at line 124 of file LumiSectionData.h.
std::string lumi::LumiSectionData::m_versionid [private] |
Definition at line 117 of file LumiSectionData.h.