CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Friends
LHCInfoPerLS Class Reference

#include <LHCInfoPerLS.h>

Inheritance diagram for LHCInfoPerLS:
LHCInfoVectorizedFields

Public Types

enum  FloatParamIndex {
  CROSSING_ANGLE_X = 0, CROSSING_ANGLE_Y, BETA_STAR_X, BETA_STAR_Y,
  FSIZE
}
 
enum  IntParamIndex { LHC_FILL = 0, LUMI_SECTION, ISIZE }
 
enum  TimeParamIndex { RUN_NUMBER = 0, TSIZE }
 
- Public Types inherited from LHCInfoVectorizedFields
enum  FloatParamIndex { FSIZE = 0 }
 
enum  IntParamIndex { ISIZE = 0 }
 
enum  StringParamIndex { SSIZE = 0 }
 
enum  TimeParamIndex { TSIZE = 0 }
 

Public Member Functions

float const betaStarX () const
 
float const betaStarY () const
 
float const crossingAngleX () const
 
float const crossingAngleY () const
 
bool empty () const
 
bool equals (const LHCInfoPerLS &rhs) const
 
unsigned short const fillNumber () const
 
 LHCInfoPerLS ()
 
unsigned int const & lumiSection () const
 
void print (std::stringstream &ss) const
 
cond::Time_t runNumber () const
 
void setBetaStarX (float const &betaStar)
 
void setBetaStarY (float const &betaStar)
 
void setCrossingAngleX (float const &angle)
 
void setCrossingAngleY (float const &angle)
 
void setFillNumber (unsigned short const &lhcFill)
 
void setInfo (unsigned short const &lhcFill, unsigned int const &lumiSection, float const &angleX, float const &angleY, float const &betaX, float const &betaY, cond::Time_t const &runNumber)
 
void setLumiSection (unsigned int const &lumiSection)
 
void setRunNumber (cond::Time_t const &runNumber)
 
- Public Member Functions inherited from LHCInfoVectorizedFields
template<typename T >
const TgetOneParam (const std::vector< std::vector< T >> &params, size_t index)
 
 LHCInfoVectorizedFields ()
 
template<typename T >
void setOneParam (std::vector< std::vector< T >> &params, size_t index, const T &value)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Additional Inherited Members

- Static Public Member Functions inherited from LHCInfoVectorizedFields
template<typename T >
static TaccessParams (std::vector< T > &params, size_t index)
 
template<typename T >
static const TgetOneParam (const std::vector< std::vector< T > > &params, size_t index)
 
template<typename T >
static const TgetParams (const std::vector< T > &params, size_t index)
 
template<typename T >
static void setOneParam (std::vector< std::vector< T > > &params, size_t index, const T &value)
 
template<typename T >
static void setParams (std::vector< T > &params, size_t index, const T &value)
 
- Protected Member Functions inherited from LHCInfoVectorizedFields
 LHCInfoVectorizedFields (size_t iSize, size_t fSize, size_t tSize, size_t sSize)
 
- Protected Attributes inherited from LHCInfoVectorizedFields
std::vector< std::vector< float > > m_floatParams
 
std::vector< std::vector< unsigned int > > m_intParams
 
bool m_isData = false
 
std::vector< std::vector< std::string > > m_stringParams
 
std::vector< std::vector< unsigned long long > > m_timeParams
 

Detailed Description

Definition at line 15 of file LHCInfoPerLS.h.

Member Enumeration Documentation

◆ FloatParamIndex

Enumerator
CROSSING_ANGLE_X 
CROSSING_ANGLE_Y 
BETA_STAR_X 
BETA_STAR_Y 
FSIZE 

Definition at line 18 of file LHCInfoPerLS.h.

◆ IntParamIndex

Enumerator
LHC_FILL 
LUMI_SECTION 
ISIZE 

Definition at line 17 of file LHCInfoPerLS.h.

◆ TimeParamIndex

Enumerator
RUN_NUMBER 
TSIZE 

Definition at line 19 of file LHCInfoPerLS.h.

Constructor & Destructor Documentation

◆ LHCInfoPerLS()

LHCInfoPerLS::LHCInfoPerLS ( )

Member Function Documentation

◆ betaStarX()

float const LHCInfoPerLS::betaStarX ( ) const

Definition at line 19 of file LHCInfoPerLS.cc.

References BETA_STAR_X, LHCInfoVectorizedFields::getOneParam(), and LHCInfoVectorizedFields::m_floatParams.

Referenced by print().

static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
std::vector< std::vector< float > > m_floatParams

◆ betaStarY()

float const LHCInfoPerLS::betaStarY ( ) const

Definition at line 21 of file LHCInfoPerLS.cc.

References BETA_STAR_Y, LHCInfoVectorizedFields::getOneParam(), and LHCInfoVectorizedFields::m_floatParams.

Referenced by print().

static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
std::vector< std::vector< float > > m_floatParams

◆ crossingAngleX()

float const LHCInfoPerLS::crossingAngleX ( ) const

Definition at line 15 of file LHCInfoPerLS.cc.

References CROSSING_ANGLE_X, LHCInfoVectorizedFields::getOneParam(), and LHCInfoVectorizedFields::m_floatParams.

Referenced by print().

static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
std::vector< std::vector< float > > m_floatParams

◆ crossingAngleY()

float const LHCInfoPerLS::crossingAngleY ( ) const

Definition at line 17 of file LHCInfoPerLS.cc.

References CROSSING_ANGLE_Y, LHCInfoVectorizedFields::getOneParam(), and LHCInfoVectorizedFields::m_floatParams.

Referenced by print().

static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
std::vector< std::vector< float > > m_floatParams

◆ empty()

bool LHCInfoPerLS::empty ( ) const

Definition at line 100 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::m_intParams.

100 { return m_intParams[0].empty(); }
std::vector< std::vector< unsigned int > > m_intParams

◆ equals()

bool LHCInfoPerLS::equals ( const LHCInfoPerLS rhs) const

Definition at line 88 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::m_floatParams, LHCInfoVectorizedFields::m_intParams, LHCInfoVectorizedFields::m_isData, and LHCInfoVectorizedFields::m_timeParams.

88  {
89  if (m_isData != rhs.m_isData)
90  return false;
91  if (m_intParams != rhs.m_intParams)
92  return false;
93  if (m_floatParams != rhs.m_floatParams)
94  return false;
95  if (m_timeParams != rhs.m_timeParams)
96  return false;
97  return true;
98 }
std::vector< std::vector< unsigned int > > m_intParams
std::vector< std::vector< unsigned long long > > m_timeParams
std::vector< std::vector< float > > m_floatParams

◆ fillNumber()

unsigned short const LHCInfoPerLS::fillNumber ( ) const

Definition at line 11 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::getOneParam(), LHC_FILL, and LHCInfoVectorizedFields::m_intParams.

Referenced by print().

std::vector< std::vector< unsigned int > > m_intParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)

◆ lumiSection()

unsigned int const & LHCInfoPerLS::lumiSection ( ) const

Definition at line 13 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::getOneParam(), LUMI_SECTION, and LHCInfoVectorizedFields::m_intParams.

Referenced by print(), and setLumiSection().

std::vector< std::vector< unsigned int > > m_intParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)

◆ print()

void LHCInfoPerLS::print ( std::stringstream &  ss) const

Definition at line 71 of file LHCInfoPerLS.cc.

References betaStarX(), betaStarY(), crossingAngleX(), crossingAngleY(), fillNumber(), lumiSection(), runNumber(), and contentValuesCheck::ss.

Referenced by operator<<().

71  {
72  ss << "LHC fill: " << this->fillNumber() << std::endl
73  << "Lumi section: " << this->lumiSection() << std::endl
74  << "Run number: " << this->runNumber() << std::endl
75  << "Crossing angle x (urad): " << this->crossingAngleX() << std::endl
76  << "Crossing angle y (urad): " << this->crossingAngleY() << std::endl
77  << "Beta star x (m): " << this->betaStarX() << std::endl
78  << "Beta star y (m): " << this->betaStarY() << std::endl;
79 }
cond::Time_t runNumber() const
Definition: LHCInfoPerLS.cc:23
float const betaStarY() const
Definition: LHCInfoPerLS.cc:21
float const crossingAngleX() const
Definition: LHCInfoPerLS.cc:15
float const crossingAngleY() const
Definition: LHCInfoPerLS.cc:17
unsigned int const & lumiSection() const
Definition: LHCInfoPerLS.cc:13
unsigned short const fillNumber() const
Definition: LHCInfoPerLS.cc:11
float const betaStarX() const
Definition: LHCInfoPerLS.cc:19

◆ runNumber()

cond::Time_t LHCInfoPerLS::runNumber ( ) const

Definition at line 23 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::getOneParam(), LHCInfoVectorizedFields::m_timeParams, and RUN_NUMBER.

Referenced by print(), and setRunNumber().

static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
std::vector< std::vector< unsigned long long > > m_timeParams

◆ serialize()

template<class Archive >
void LHCInfoPerLS::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setBetaStarX()

void LHCInfoPerLS::setBetaStarX ( float const &  betaStar)

◆ setBetaStarY()

void LHCInfoPerLS::setBetaStarY ( float const &  betaStar)

◆ setCrossingAngleX()

void LHCInfoPerLS::setCrossingAngleX ( float const &  angle)

Definition at line 34 of file LHCInfoPerLS.cc.

References angle(), CROSSING_ANGLE_X, LHCInfoVectorizedFields::m_floatParams, and LHCInfoVectorizedFields::setOneParam().

Referenced by LHCInfoPerLSWriter::analyze(), and setInfo().

34  {
36 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setCrossingAngleY()

void LHCInfoPerLS::setCrossingAngleY ( float const &  angle)

Definition at line 38 of file LHCInfoPerLS.cc.

References angle(), CROSSING_ANGLE_Y, LHCInfoVectorizedFields::m_floatParams, and LHCInfoVectorizedFields::setOneParam().

Referenced by LHCInfoPerLSWriter::analyze(), and setInfo().

38  {
40 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setFillNumber()

void LHCInfoPerLS::setFillNumber ( unsigned short const &  lhcFill)

Definition at line 26 of file LHCInfoPerLS.cc.

References LHC_FILL, LHCInfoVectorizedFields::m_intParams, and LHCInfoVectorizedFields::setOneParam().

Referenced by LHCInfoPerLSWriter::analyze(), and setInfo().

26  {
27  LHCInfoPerLS::setOneParam(m_intParams, LHC_FILL, static_cast<unsigned int>(lhcFill));
28 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setInfo()

void LHCInfoPerLS::setInfo ( unsigned short const &  lhcFill,
unsigned int const &  lumiSection,
float const &  angleX,
float const &  angleY,
float const &  betaX,
float const &  betaY,
cond::Time_t const &  runNumber 
)

Definition at line 55 of file LHCInfoPerLS.cc.

References setBetaStarX(), setBetaStarY(), setCrossingAngleX(), setCrossingAngleY(), setFillNumber(), setLumiSection(), and setRunNumber().

61  {
62  this->setFillNumber(lhcFill);
64  this->setCrossingAngleX(angleX);
65  this->setCrossingAngleY(angleY);
66  this->setBetaStarX(betaX);
67  this->setBetaStarY(betaY);
68  this->setRunNumber(runNumber);
69 }
void setFillNumber(unsigned short const &lhcFill)
Definition: LHCInfoPerLS.cc:26
cond::Time_t runNumber() const
Definition: LHCInfoPerLS.cc:23
void setCrossingAngleY(float const &angle)
Definition: LHCInfoPerLS.cc:38
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfoPerLS.cc:30
void setBetaStarX(float const &betaStar)
Definition: LHCInfoPerLS.cc:42
void setBetaStarY(float const &betaStar)
Definition: LHCInfoPerLS.cc:46
unsigned int const & lumiSection() const
Definition: LHCInfoPerLS.cc:13
void setCrossingAngleX(float const &angle)
Definition: LHCInfoPerLS.cc:34
void setRunNumber(cond::Time_t const &runNumber)
Definition: LHCInfoPerLS.cc:50

◆ setLumiSection()

void LHCInfoPerLS::setLumiSection ( unsigned int const &  lumiSection)

Definition at line 30 of file LHCInfoPerLS.cc.

References LUMI_SECTION, lumiSection(), LHCInfoVectorizedFields::m_intParams, and LHCInfoVectorizedFields::setOneParam().

Referenced by LHCInfoPerLSWriter::analyze(), and setInfo().

30  {
32 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams
unsigned int const & lumiSection() const
Definition: LHCInfoPerLS.cc:13

◆ setRunNumber()

void LHCInfoPerLS::setRunNumber ( cond::Time_t const &  runNumber)

Definition at line 50 of file LHCInfoPerLS.cc.

References LHCInfoVectorizedFields::m_timeParams, RUN_NUMBER, runNumber(), and LHCInfoVectorizedFields::setOneParam().

Referenced by LHCInfoPerLSWriter::analyze(), and setInfo().

50  {
52 };
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
cond::Time_t runNumber() const
Definition: LHCInfoPerLS.cc:23
std::vector< std::vector< unsigned long long > > m_timeParams

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 69 of file LHCInfoPerLS.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 69 of file LHCInfoPerLS.h.