#include <DIPLumiSummary.h>
Public Member Functions | |
int | cmsalive () const |
float | deadtimefraction () const |
DIPLumiSummary () | |
default constructor | |
DIPLumiSummary (float instlumi, float dellumi, float reclumi, unsigned short cmsalive) | |
set default constructor | |
unsigned int | fromLS () const |
unsigned int | fromRun () const |
float | instDelLumi () const |
float | intgDelLumiByLS () const |
float | intgRecLumiByLS () const |
bool | isNull () const |
void | setOrigin (unsigned int runnumber, unsigned int ls) |
~DIPLumiSummary () | |
destructor | |
Private Attributes | |
unsigned short | m_cmsalive |
float | m_deadfrac |
float | m_dellumi |
float | m_instlumi |
unsigned int | m_ls |
float | m_reclumi |
unsigned int | m_runnum |
Definition at line 7 of file DIPLumiSummary.h.
DIPLumiSummary::DIPLumiSummary | ( | ) | [inline] |
default constructor
Definition at line 10 of file DIPLumiSummary.h.
:m_runnum(0),m_ls(0),m_instlumi(0.0),m_dellumi(0.0),m_reclumi(0.0),m_deadfrac(1.0),m_cmsalive(false){}
DIPLumiSummary::DIPLumiSummary | ( | float | instlumi, |
float | dellumi, | ||
float | reclumi, | ||
unsigned short | cmsalive | ||
) | [inline] |
set default constructor
Definition at line 13 of file DIPLumiSummary.h.
:m_instlumi(instlumi),m_dellumi(dellumi),m_reclumi(reclumi),m_deadfrac(1.0),m_cmsalive(cmsalive){}
DIPLumiSummary::~DIPLumiSummary | ( | ) | [inline] |
int DIPLumiSummary::cmsalive | ( | ) | const |
if cms central daq alive
Definition at line 35 of file DIPLumiSummary.cc.
References m_cmsalive.
Referenced by operator<<().
{ return m_cmsalive; }
float DIPLumiSummary::deadtimefraction | ( | ) | const |
trigger Deadtime fraction, this is deduced 1.0-m_reclumi/m_dellumi
Definition at line 28 of file DIPLumiSummary.cc.
References m_deadfrac, m_dellumi, and m_reclumi.
Referenced by operator<<().
{ if(m_reclumi>0.0){ m_deadfrac=1.0-(m_reclumi/m_dellumi); } return m_deadfrac; }
unsigned int DIPLumiSummary::fromLS | ( | ) | const |
from which ls data come from
Definition at line 46 of file DIPLumiSummary.cc.
References m_ls.
{ return m_ls; }
unsigned int DIPLumiSummary::fromRun | ( | ) | const |
from which run data come from
Definition at line 39 of file DIPLumiSummary.cc.
References m_runnum.
{ return m_runnum; }
float DIPLumiSummary::instDelLumi | ( | ) | const |
average inst lumi,delivered HF, unit Hz/ub,
Definition at line 14 of file DIPLumiSummary.cc.
References m_instlumi.
Referenced by operator<<().
{ return m_instlumi; }
float DIPLumiSummary::intgDelLumiByLS | ( | ) | const |
delivered luminosity integrated over this LS , unit /ub,
Definition at line 18 of file DIPLumiSummary.cc.
References m_dellumi.
Referenced by operator<<().
float DIPLumiSummary::intgRecLumiByLS | ( | ) | const |
recorded luminosity integrated over this LS,this is deduced unit /ub,
Definition at line 23 of file DIPLumiSummary.cc.
References m_reclumi.
Referenced by operator<<().
bool DIPLumiSummary::isNull | ( | ) | const |
void DIPLumiSummary::setOrigin | ( | unsigned int | runnumber, |
unsigned int | ls | ||
) |
Definition at line 50 of file DIPLumiSummary.cc.
References python::rootplot::utilities::ls(), m_ls, m_runnum, and cond::runnumber.
unsigned short DIPLumiSummary::m_cmsalive [private] |
Definition at line 61 of file DIPLumiSummary.h.
Referenced by cmsalive().
float DIPLumiSummary::m_deadfrac [mutable, private] |
Definition at line 60 of file DIPLumiSummary.h.
Referenced by deadtimefraction().
float DIPLumiSummary::m_dellumi [private] |
Definition at line 58 of file DIPLumiSummary.h.
Referenced by deadtimefraction(), and intgDelLumiByLS().
float DIPLumiSummary::m_instlumi [private] |
Definition at line 57 of file DIPLumiSummary.h.
Referenced by instDelLumi().
unsigned int DIPLumiSummary::m_ls [private] |
Definition at line 56 of file DIPLumiSummary.h.
Referenced by fromLS(), isNull(), and setOrigin().
float DIPLumiSummary::m_reclumi [private] |
Definition at line 59 of file DIPLumiSummary.h.
Referenced by deadtimefraction(), and intgRecLumiByLS().
unsigned int DIPLumiSummary::m_runnum [private] |
Definition at line 55 of file DIPLumiSummary.h.
Referenced by fromRun(), isNull(), and setOrigin().