CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

unsigned short m_cmsalive
 
float m_deadfrac
 
float m_dellumi
 
float m_instlumi
 
unsigned int m_ls
 
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){}
unsigned short m_cmsalive
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.

DIPLumiSummary::~DIPLumiSummary ( )
inline

destructor

Definition at line 16 of file DIPLumiSummary.h.

16 {}

Member Function Documentation

int DIPLumiSummary::cmsalive ( ) const

if cms central daq alive

Definition at line 35 of file DIPLumiSummary.cc.

References m_cmsalive.

Referenced by operator<<().

35  {
36  return m_cmsalive;
37 }
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, m_dellumi, and m_reclumi.

Referenced by operator<<().

28  {
29  if(m_reclumi>0.0){
31  }
32  return m_deadfrac;
33 }
unsigned int DIPLumiSummary::fromLS ( ) const

from which ls data come from

Definition at line 46 of file DIPLumiSummary.cc.

References m_ls.

46  {
47  return m_ls;
48 }
unsigned int m_ls
unsigned int DIPLumiSummary::fromRun ( ) const

from which run data come from

Definition at line 39 of file DIPLumiSummary.cc.

References m_runnum.

39  {
40  return m_runnum;
41 }
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<<().

14  {
15  return m_instlumi;
16 }
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<<().

18  {
19  if(m_dellumi<=0.0){return 0.0;}
20  return m_dellumi;
21 }
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<<().

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

Definition at line 7 of file DIPLumiSummary.cc.

References m_ls, and m_runnum.

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 50 of file DIPLumiSummary.cc.

References python.rootplot.utilities::ls(), m_ls, m_runnum, and cond::runnumber.

50  {
52  m_ls=ls;
53 }
unsigned int m_ls
unsigned int m_runnum

Member Data Documentation

unsigned short DIPLumiSummary::m_cmsalive
private

Definition at line 61 of file DIPLumiSummary.h.

Referenced by cmsalive().

float DIPLumiSummary::m_deadfrac
mutableprivate

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