CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DIPLumiSummary Class Reference

#include <DIPLumiSummary.h>

Public Member Functions

int cmsalive () const
 
float deadtimefraction () const
 
 DIPLumiSummary ()
 default constructor More...
 
 DIPLumiSummary (float instlumi, float dellumi, float reclumi, unsigned short cmsalive)
 set default constructor More...
 
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 More...
 

Private Attributes

const unsigned short m_cmsalive
 
float m_deadfrac
 
const float m_dellumi
 
const float m_instlumi
 
unsigned int m_ls
 
const float m_reclumi
 
unsigned int m_runnum
 

Detailed Description

Definition at line 7 of file DIPLumiSummary.h.

Constructor & Destructor Documentation

DIPLumiSummary::DIPLumiSummary ( )
inline

default constructor

Definition at line 10 of file DIPLumiSummary.h.

10 :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){}
const float m_reclumi
const float m_instlumi
const unsigned short m_cmsalive
const float m_dellumi
unsigned int m_ls
unsigned int m_runnum
DIPLumiSummary::DIPLumiSummary ( float  instlumi,
float  dellumi,
float  reclumi,
unsigned short  cmsalive 
)
inline

set default constructor

Definition at line 13 of file DIPLumiSummary.h.

References m_deadfrac, m_dellumi, and m_reclumi.

14  {
15  if(m_reclumi>0.0){m_deadfrac=1.0-(m_reclumi/m_dellumi);}
16  }
const float m_reclumi
const float m_instlumi
const unsigned short m_cmsalive
const float m_dellumi
int cmsalive() const
DIPLumiSummary::~DIPLumiSummary ( )
inline

Member Function Documentation

int DIPLumiSummary::cmsalive ( ) const

if cms central daq alive

Definition at line 32 of file DIPLumiSummary.cc.

References m_cmsalive.

Referenced by operator<<(), and ~DIPLumiSummary().

32  {
33  return m_cmsalive;
34 }
const unsigned short 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.

Referenced by operator<<(), and ~DIPLumiSummary().

28  {
29  return m_deadfrac;
30 }
unsigned int DIPLumiSummary::fromLS ( ) const

from which ls data come from

Definition at line 43 of file DIPLumiSummary.cc.

References m_ls.

Referenced by ~DIPLumiSummary().

43  {
44  return m_ls;
45 }
unsigned int m_ls
unsigned int DIPLumiSummary::fromRun ( ) const

from which run data come from

Definition at line 36 of file DIPLumiSummary.cc.

References m_runnum.

Referenced by ~DIPLumiSummary().

36  {
37  return m_runnum;
38 }
unsigned int 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<<(), and ~DIPLumiSummary().

14  {
15  return m_instlumi;
16 }
const float 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<<(), and ~DIPLumiSummary().

18  {
19  if(m_dellumi<=0.0){return 0.0;}
20  return m_dellumi;
21 }
const float m_dellumi
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<<(), and ~DIPLumiSummary().

23  {
24  if(m_reclumi<=0.0){return 0.0;}
25  return m_reclumi;
26 }
const float m_reclumi
bool DIPLumiSummary::isNull ( ) const

Definition at line 7 of file DIPLumiSummary.cc.

References m_ls, and m_runnum.

Referenced by ~DIPLumiSummary().

7  {
8  if(m_runnum==0 && m_ls==0){
9  return true;
10  }
11  return false;
12 }
unsigned int m_ls
unsigned int m_runnum
void DIPLumiSummary::setOrigin ( unsigned int  runnumber,
unsigned int  ls 
)

Definition at line 47 of file DIPLumiSummary.cc.

References eostools::ls(), m_ls, m_runnum, and cond::runnumber.

Referenced by ~DIPLumiSummary().

47  {
49  m_ls=ls;
50 }
unsigned int m_ls
unsigned int m_runnum
def ls(path, rec=False)
Definition: eostools.py:348

Member Data Documentation

const unsigned short DIPLumiSummary::m_cmsalive
private

Definition at line 64 of file DIPLumiSummary.h.

Referenced by cmsalive().

float DIPLumiSummary::m_deadfrac
private

Definition at line 63 of file DIPLumiSummary.h.

Referenced by deadtimefraction(), and DIPLumiSummary().

const float DIPLumiSummary::m_dellumi
private

Definition at line 61 of file DIPLumiSummary.h.

Referenced by DIPLumiSummary(), and intgDelLumiByLS().

const float DIPLumiSummary::m_instlumi
private

Definition at line 60 of file DIPLumiSummary.h.

Referenced by instDelLumi().

unsigned int DIPLumiSummary::m_ls
private

Definition at line 59 of file DIPLumiSummary.h.

Referenced by fromLS(), isNull(), and setOrigin().

const float DIPLumiSummary::m_reclumi
private

Definition at line 62 of file DIPLumiSummary.h.

Referenced by DIPLumiSummary(), and intgRecLumiByLS().

unsigned int DIPLumiSummary::m_runnum
private

Definition at line 58 of file DIPLumiSummary.h.

Referenced by fromRun(), isNull(), and setOrigin().