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() [1/2]

DIPLumiSummary::DIPLumiSummary ( )
inline

default constructor

Definition at line 10 of file DIPLumiSummary.h.

11  : 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() [2/2]

DIPLumiSummary::DIPLumiSummary ( float  instlumi,
float  dellumi,
float  reclumi,
unsigned short  cmsalive 
)
inline

set default constructor

Definition at line 14 of file DIPLumiSummary.h.

References m_deadfrac, m_dellumi, and m_reclumi.

15  : m_instlumi(instlumi), m_dellumi(dellumi), m_reclumi(reclumi), m_deadfrac(1.0), m_cmsalive(cmsalive) {
16  if (m_reclumi > 0.0) {
17  m_deadfrac = 1.0 - (m_reclumi / m_dellumi);
18  }
19  }
const float m_reclumi
const float m_instlumi
int cmsalive() const
const unsigned short m_cmsalive
const float m_dellumi

◆ ~DIPLumiSummary()

DIPLumiSummary::~DIPLumiSummary ( )
inline

destructor

Definition at line 22 of file DIPLumiSummary.h.

22 {}

Member Function Documentation

◆ cmsalive()

int DIPLumiSummary::cmsalive ( ) const

if cms central daq alive

Definition at line 26 of file DIPLumiSummary.cc.

References m_cmsalive.

Referenced by operator<<().

26 { return m_cmsalive; }
const unsigned short m_cmsalive

◆ deadtimefraction()

float DIPLumiSummary::deadtimefraction ( ) const

trigger Deadtime fraction, this is deduced 1.0-m_reclumi/m_dellumi

Definition at line 25 of file DIPLumiSummary.cc.

References m_deadfrac.

Referenced by operator<<().

25 { return m_deadfrac; }

◆ fromLS()

unsigned int DIPLumiSummary::fromLS ( ) const

from which ls data come from

Definition at line 31 of file DIPLumiSummary.cc.

References m_ls.

31 { return m_ls; }
unsigned int m_ls

◆ fromRun()

unsigned int DIPLumiSummary::fromRun ( ) const

from which run data come from

Definition at line 27 of file DIPLumiSummary.cc.

References m_runnum.

27 { return m_runnum; }
unsigned int m_runnum

◆ instDelLumi()

float DIPLumiSummary::instDelLumi ( ) const

average inst lumi,delivered HF, unit Hz/ub,

Definition at line 12 of file DIPLumiSummary.cc.

References m_instlumi.

Referenced by operator<<().

12 { return m_instlumi; }
const float m_instlumi

◆ intgDelLumiByLS()

float DIPLumiSummary::intgDelLumiByLS ( ) const

delivered luminosity integrated over this LS , unit /ub,

Definition at line 13 of file DIPLumiSummary.cc.

References m_dellumi.

Referenced by operator<<().

13  {
14  if (m_dellumi <= 0.0) {
15  return 0.0;
16  }
17  return m_dellumi;
18 }
const float m_dellumi

◆ intgRecLumiByLS()

float DIPLumiSummary::intgRecLumiByLS ( ) const

recorded luminosity integrated over this LS,this is deduced unit /ub,

Definition at line 19 of file DIPLumiSummary.cc.

References m_reclumi.

Referenced by operator<<().

19  {
20  if (m_reclumi <= 0.0) {
21  return 0.0;
22  }
23  return m_reclumi;
24 }
const float m_reclumi

◆ isNull()

bool DIPLumiSummary::isNull ( ) const

Definition at line 6 of file DIPLumiSummary.cc.

References m_ls, and m_runnum.

6  {
7  if (m_runnum == 0 && m_ls == 0) {
8  return true;
9  }
10  return false;
11 }
unsigned int m_ls
unsigned int m_runnum

◆ setOrigin()

void DIPLumiSummary::setOrigin ( unsigned int  runnumber,
unsigned int  ls 
)

Definition at line 32 of file DIPLumiSummary.cc.

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

32  {
34  m_ls = ls;
35 }
unsigned int m_ls
unsigned int m_runnum
def ls(path, rec=False)
Definition: eostools.py:349

Member Data Documentation

◆ m_cmsalive

const unsigned short DIPLumiSummary::m_cmsalive
private

Definition at line 68 of file DIPLumiSummary.h.

Referenced by cmsalive().

◆ m_deadfrac

float DIPLumiSummary::m_deadfrac
private

Definition at line 67 of file DIPLumiSummary.h.

Referenced by deadtimefraction(), and DIPLumiSummary().

◆ m_dellumi

const float DIPLumiSummary::m_dellumi
private

Definition at line 65 of file DIPLumiSummary.h.

Referenced by DIPLumiSummary(), and intgDelLumiByLS().

◆ m_instlumi

const float DIPLumiSummary::m_instlumi
private

Definition at line 64 of file DIPLumiSummary.h.

Referenced by instDelLumi().

◆ m_ls

unsigned int DIPLumiSummary::m_ls
private

Definition at line 63 of file DIPLumiSummary.h.

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

◆ m_reclumi

const float DIPLumiSummary::m_reclumi
private

Definition at line 66 of file DIPLumiSummary.h.

Referenced by DIPLumiSummary(), and intgRecLumiByLS().

◆ m_runnum

unsigned int DIPLumiSummary::m_runnum
private

Definition at line 62 of file DIPLumiSummary.h.

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