CMS 3D CMS Logo

Public Member Functions | Private Attributes

lumi::LumiSectionData Class Reference

#include <LumiSectionData.h>

List of all members.

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< BunchCrossingInfom_bx
float m_deadfrac
std::vector< HLTInfom_hlt
float m_lumiavg
float m_lumierror
short m_quality
int m_sectionid
unsigned long long m_startorbit
std::vector< TriggerInfom_trigger
std::string m_versionid

Detailed Description

Definition at line 60 of file LumiSectionData.h.


Constructor & Destructor Documentation

lumi::LumiSectionData::LumiSectionData ( )

Definition at line 3 of file LumiSectionData.cc.

References lumi::BXMAX, lumi::LUMIALGOMAX, and m_bx.

lumi::LumiSectionData::~LumiSectionData ( ) [inline]

Definition at line 63 of file LumiSectionData.h.

{}

Member Function Documentation

lumi::BunchCrossingIterator lumi::LumiSectionData::bunchCrossingBegin ( const LumiAlgoType  lumialgotype) const

Definition at line 52 of file LumiSectionData.cc.

References lumi::BXMAX.

                                                                             {
  return m_bx.begin()+lumialgotype*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

getter methods

Definition at line 7 of file LumiSectionData.cc.

                                     {
  return m_versionid; 
}
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.

                                                                  {
  std::copy(hltdetail.begin(),hltdetail.end(),std::back_inserter(m_hlt));
}
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 ( )

setter methods.

Definition at line 92 of file LumiSectionData.cc.

                                {
  m_versionid=-99;
}
void lumi::LumiSectionData::setLumiQuality ( int  lumiquality)

Definition at line 108 of file LumiSectionData.cc.

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.

                                                                            {
  std::copy(triggerinfo.begin(),triggerinfo.end(),std::back_inserter(m_trigger));
}
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;
}

Member Data Documentation

Definition at line 115 of file LumiSectionData.h.

Referenced by LumiSectionData().

Definition at line 121 of file LumiSectionData.h.

std::vector< HLTInfo > lumi::LumiSectionData::m_hlt [private]

Definition at line 123 of file LumiSectionData.h.

Definition at line 118 of file LumiSectionData.h.

Definition at line 119 of file LumiSectionData.h.

Definition at line 120 of file LumiSectionData.h.

Definition at line 116 of file LumiSectionData.h.

unsigned long long lumi::LumiSectionData::m_startorbit [private]

Definition at line 122 of file LumiSectionData.h.

Definition at line 124 of file LumiSectionData.h.

std::string lumi::LumiSectionData::m_versionid [private]

Definition at line 117 of file LumiSectionData.h.