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) {}

◆ 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.

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  }

References m_deadfrac, m_dellumi, and m_reclumi.

◆ ~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.

26 { return m_cmsalive; }

References m_cmsalive.

Referenced by operator<<().

◆ 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.

25 { return m_deadfrac; }

References m_deadfrac.

Referenced by operator<<().

◆ fromLS()

unsigned int DIPLumiSummary::fromLS ( ) const

from which ls data come from

Definition at line 31 of file DIPLumiSummary.cc.

31 { return m_ls; }

References m_ls.

◆ fromRun()

unsigned int DIPLumiSummary::fromRun ( ) const

from which run data come from

Definition at line 27 of file DIPLumiSummary.cc.

27 { return m_runnum; }

References m_runnum.

◆ instDelLumi()

float DIPLumiSummary::instDelLumi ( ) const

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

Definition at line 12 of file DIPLumiSummary.cc.

12 { return m_instlumi; }

References m_instlumi.

Referenced by operator<<().

◆ intgDelLumiByLS()

float DIPLumiSummary::intgDelLumiByLS ( ) const

delivered luminosity integrated over this LS , unit /ub,

Definition at line 13 of file DIPLumiSummary.cc.

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

References m_dellumi.

Referenced by operator<<().

◆ intgRecLumiByLS()

float DIPLumiSummary::intgRecLumiByLS ( ) const

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

Definition at line 19 of file DIPLumiSummary.cc.

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

References m_reclumi.

Referenced by operator<<().

◆ isNull()

bool DIPLumiSummary::isNull ( ) const

Definition at line 6 of file DIPLumiSummary.cc.

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

References m_ls, and m_runnum.

◆ setOrigin()

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

Definition at line 32 of file DIPLumiSummary.cc.

32  {
34  m_ls = ls;
35 }

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

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().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
DIPLumiSummary::m_runnum
unsigned int m_runnum
Definition: DIPLumiSummary.h:62
DIPLumiSummary::m_cmsalive
const unsigned short m_cmsalive
Definition: DIPLumiSummary.h:68
DIPLumiSummary::m_deadfrac
float m_deadfrac
Definition: DIPLumiSummary.h:67
cond::runnumber
Definition: Time.h:19
DIPLumiSummary::cmsalive
int cmsalive() const
Definition: DIPLumiSummary.cc:26
DIPLumiSummary::m_reclumi
const float m_reclumi
Definition: DIPLumiSummary.h:66
DIPLumiSummary::m_dellumi
const float m_dellumi
Definition: DIPLumiSummary.h:65
DIPLumiSummary::m_ls
unsigned int m_ls
Definition: DIPLumiSummary.h:63
DIPLumiSummary::m_instlumi
const float m_instlumi
Definition: DIPLumiSummary.h:64