CMS 3D CMS Logo

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

#include <DIPLumiDetail.h>

Public Types

typedef std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > ValueRange
 

Public Member Functions

 DIPLumiDetail ()
 default constructor More...
 
void fillbxdata (unsigned int bxidx, float bxlumi)
 
void filldata (std::vector< float > &lumivalues)
 
unsigned int fromLS () const
 
unsigned int fromRun () const
 
bool isNull () const
 
float lumiValue (unsigned int bx) const
 
ValueRange lumiValues () const
 
void setOrigin (unsigned int runnumber, unsigned int ls)
 
virtual ~DIPLumiDetail ()
 set default constructor More...
 

Private Attributes

unsigned int m_ls
 
std::vector< float > m_lumiValues
 
unsigned int m_runnum
 

Detailed Description

Definition at line 7 of file DIPLumiDetail.h.

Member Typedef Documentation

◆ ValueRange

typedef std::pair<std::vector<float>::const_iterator, std::vector<float>::const_iterator> DIPLumiDetail::ValueRange

Definition at line 11 of file DIPLumiDetail.h.

Constructor & Destructor Documentation

◆ DIPLumiDetail()

DIPLumiDetail::DIPLumiDetail ( )

default constructor

Definition at line 7 of file DIPLumiDetail.cc.

7 : m_runnum(0), m_ls(0), m_lumiValues(3564) {}
unsigned int m_ls
Definition: DIPLumiDetail.h:25
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26
unsigned int m_runnum
Definition: DIPLumiDetail.h:24

◆ ~DIPLumiDetail()

virtual DIPLumiDetail::~DIPLumiDetail ( )
inlinevirtual

set default constructor

Definition at line 13 of file DIPLumiDetail.h.

13 {}

Member Function Documentation

◆ fillbxdata()

void DIPLumiDetail::fillbxdata ( unsigned int  bxidx,
float  bxlumi 
)

Definition at line 19 of file DIPLumiDetail.cc.

References m_lumiValues.

19 { m_lumiValues[bxidx] = bxvalue; }
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26

◆ filldata()

void DIPLumiDetail::filldata ( std::vector< float > &  lumivalues)

Definition at line 18 of file DIPLumiDetail.cc.

References m_lumiValues.

18 { lumivalues.swap(m_lumiValues); }
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26

◆ fromLS()

unsigned int DIPLumiDetail::fromLS ( ) const

Definition at line 21 of file DIPLumiDetail.cc.

References m_ls.

21 { return m_ls; }
unsigned int m_ls
Definition: DIPLumiDetail.h:25

◆ fromRun()

unsigned int DIPLumiDetail::fromRun ( ) const

Definition at line 20 of file DIPLumiDetail.cc.

References m_runnum.

20 { return m_runnum; }
unsigned int m_runnum
Definition: DIPLumiDetail.h:24

◆ isNull()

bool DIPLumiDetail::isNull ( ) const

Definition at line 8 of file DIPLumiDetail.cc.

References m_ls, and m_runnum.

8  {
9  if (m_runnum == 0 && m_ls == 0) {
10  return true;
11  }
12  return false;
13 }
unsigned int m_ls
Definition: DIPLumiDetail.h:25
unsigned int m_runnum
Definition: DIPLumiDetail.h:24

◆ lumiValue()

float DIPLumiDetail::lumiValue ( unsigned int  bx) const

Definition at line 14 of file DIPLumiDetail.cc.

References l1GtPatternGenerator_cfi::bx, and m_lumiValues.

14 { return m_lumiValues[bx]; }
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26

◆ lumiValues()

DIPLumiDetail::ValueRange DIPLumiDetail::lumiValues ( ) const

Definition at line 15 of file DIPLumiDetail.cc.

References m_lumiValues.

Referenced by operator<<().

15  {
16  return ValueRange(m_lumiValues.begin(), m_lumiValues.end());
17 }
std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > ValueRange
Definition: DIPLumiDetail.h:11
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26

◆ setOrigin()

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

Definition at line 22 of file DIPLumiDetail.cc.

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

22  {
24  m_ls = ls;
25 }
unsigned int m_ls
Definition: DIPLumiDetail.h:25
def ls(path, rec=False)
Definition: eostools.py:349
unsigned int m_runnum
Definition: DIPLumiDetail.h:24

Member Data Documentation

◆ m_ls

unsigned int DIPLumiDetail::m_ls
private

Definition at line 25 of file DIPLumiDetail.h.

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

◆ m_lumiValues

std::vector<float> DIPLumiDetail::m_lumiValues
private

Definition at line 26 of file DIPLumiDetail.h.

Referenced by fillbxdata(), filldata(), lumiValue(), and lumiValues().

◆ m_runnum

unsigned int DIPLumiDetail::m_runnum
private

Definition at line 24 of file DIPLumiDetail.h.

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