CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
LHCInfo Class Reference

#include <LHCInfo.h>

Public Types

enum  FillType {
  UNKNOWN = 0, PROTONS = 1, IONS = 2, COSMICS = 3,
  GAP = 4
}
 
typedef FillType FillTypeId
 
enum  FloatParamIndex {
  CROSSING_ANGLE = 0, BETA_STAR = 1, INTENSITY_1 = 2, INTENSITY_2 = 3,
  ENERGY = 4, DELIV_LUMI = 5, REC_LUMI = 7, LUMI_PER_B = 8,
  BEAM1_VC = 9, BEAM2_VC = 10, BEAM1_RF = 11, BEAM2_RF = 12,
  INST_LUMI = 13, INST_LUMI_ERR = 14, FSIZE = 15
}
 
enum  IntParamIndex {
  LHC_FILL = 0, BUNCHES_1 = 1, BUNCHES_2 = 2, COLLIDING_BUNCHES = 3,
  TARGET_BUNCHES = 4, FILL_TYPE = 5, PARTICLES_1 = 6, PARTICLES_2 = 7,
  LUMI_SECTION = 8, ISIZE = 9
}
 
enum  ParticleType {
  NONE = 0, PROTON = 1, PB82 = 2, AR18 = 3,
  D = 4, XE54 = 5
}
 
typedef ParticleType ParticleTypeId
 
enum  StringParamIndex {
  INJECTION_SCHEME = 0, LHC_STATE = 1, LHC_COMMENT = 2, CTPPS_STATUS = 3,
  SSIZE = 4
}
 
enum  TimeParamIndex { CREATE_TIME = 0, BEGIN_TIME = 1, END_TIME = 2, TSIZE = 3 }
 

Public Member Functions

std::vector< float > const & beam1RF () const
 
std::vector< float > & beam1RF ()
 
std::vector< float > const & beam1VC () const
 
std::vector< float > & beam1VC ()
 
std::vector< float > const & beam2RF () const
 
std::vector< float > & beam2RF ()
 
std::vector< float > const & beam2VC () const
 
std::vector< float > & beam2VC ()
 
cond::Time_t const beginTime () const
 
float const betaStar () const
 
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam1 () const
 
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam2 () const
 
std::vector< unsigned short > bunchConfigurationForBeam1 () const
 
std::vector< unsigned short > bunchConfigurationForBeam2 () const
 
unsigned short const bunchesInBeam1 () const
 
unsigned short const bunchesInBeam2 () const
 
LHCInfocloneFill () const
 
unsigned short const collidingBunches () const
 
cond::Time_t const createTime () const
 
float const crossingAngle () const
 
std::string const & ctppsStatus () const
 
float const delivLumi () const
 
bool empty () const
 
cond::Time_t const endTime () const
 
float const energy () const
 
bool equals (const LHCInfo &rhs) const
 
unsigned short const fillNumber () const
 
FillTypeId const fillType () const
 
std::string const & injectionScheme () const
 
float const instLumi () const
 
float const instLumiError () const
 
float const intensityForBeam1 () const
 
float const intensityForBeam2 () const
 
bool is25nsBunchSpacing () const
 
bool isBunchInBeam1 (size_t const &bunch) const
 
bool isBunchInBeam2 (size_t const &bunch) const
 
std::string const & lhcComment () const
 
 LHCInfo ()
 
 LHCInfo (const LHCInfo &rhs)
 
std::string const & lhcState () const
 
std::vector< float > const & lumiPerBX () const
 
unsigned int const & lumiSection () const
 
ParticleTypeId const particleTypeForBeam1 () const
 
ParticleTypeId const particleTypeForBeam2 () const
 
void print (std::stringstream &ss) const
 
float const recLumi () const
 
void setBeam1RF (std::vector< float > const &beam1RF)
 
void setBeam1VC (std::vector< float > const &beam1VC)
 
void setBeam2RF (std::vector< float > const &beam2RF)
 
void setBeam2VC (std::vector< float > const &beam2VC)
 
void setBeginTime (cond::Time_t const &beginTime)
 
void setBetaStar (float const &betaStar)
 
void setBunchBitsetForBeam1 (std::bitset< bunchSlots+1 > const &bunchConfiguration)
 
void setBunchBitsetForBeam2 (std::bitset< bunchSlots+1 > const &bunchConfiguration)
 
void setBunchesInBeam1 (unsigned short const &bunches)
 
void setBunchesInBeam2 (unsigned short const &bunches)
 
void setCollidingBunches (unsigned short const &collidingBunches)
 
void setCreationTime (cond::Time_t const &createTime)
 
void setCrossingAngle (float const &angle)
 
void setCtppsStatus (std::string const &ctppsStatus)
 
void setDelivLumi (float const &delivLumi)
 
void setEndTime (cond::Time_t const &endTime)
 
void setEnergy (float const &energy)
 
void setFillNumber (unsigned short lhcFill)
 
void setFillType (FillTypeId const &fillType)
 
void setInfo (unsigned short const &bunches1, unsigned short const &bunches2, unsigned short const &collidingBunches, unsigned short const &targetBunches, FillTypeId const &fillType, ParticleTypeId const &particleType1, ParticleTypeId const &particleType2, float const &angle, float const &beta, float const &intensity1, float const &intensity2, float const &energy, float const &delivLumi, float const &recLumi, float const &instLumi, float const &instLumiError, cond::Time_t const &createTime, cond::Time_t const &beginTime, cond::Time_t const &endTime, std::string const &scheme, std::vector< float > const &lumiPerBX, std::string const &lhcState, std::string const &lhcComment, std::string const &ctppsStatus, unsigned int const &lumiSection, std::vector< float > const &beam1VC, std::vector< float > const &beam2VC, std::vector< float > const &beam1RF, std::vector< float > const &beam2RF, std::bitset< bunchSlots+1 > const &bunchConf1, std::bitset< bunchSlots+1 > const &bunchConf2)
 
void setInjectionScheme (std::string const &injectionScheme)
 
void setInstLumi (float const &instLumi)
 
void setInstLumiError (float const &instLumiError)
 
void setIntensityForBeam1 (float const &intensity)
 
void setIntensityForBeam2 (float const &intensity)
 
void setLhcComment (std::string const &lhcComment)
 
void setLhcState (std::string const &lhcState)
 
void setLumiPerBX (std::vector< float > const &lumiPerBX)
 
void setLumiSection (unsigned int const &lumiSection)
 
void setParticleTypeForBeam1 (ParticleTypeId const &particleType)
 
void setParticleTypeForBeam2 (ParticleTypeId const &particleType)
 
void setRecLumi (float const &recLumi)
 
void setTargetBunches (unsigned short const &targetBunches)
 
unsigned short const targetBunches () const
 
 ~LHCInfo ()
 

Static Public Attributes

static size_t const availableBunchSlots = 2808
 
static size_t const bunchSlots = 3564
 

Private Member Functions

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

Private Attributes

std::bitset< bunchSlots+1 > m_bunchConfiguration1
 
std::bitset< bunchSlots+1 > m_bunchConfiguration2
 
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
 

Friends

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

Detailed Description

Definition at line 12 of file LHCInfo.h.

Member Typedef Documentation

◆ FillTypeId

Definition at line 49 of file LHCInfo.h.

◆ ParticleTypeId

Definition at line 50 of file LHCInfo.h.

Member Enumeration Documentation

◆ FillType

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 14 of file LHCInfo.h.

◆ FloatParamIndex

Enumerator
CROSSING_ANGLE 
BETA_STAR 
INTENSITY_1 
INTENSITY_2 
ENERGY 
DELIV_LUMI 
REC_LUMI 
LUMI_PER_B 
BEAM1_VC 
BEAM2_VC 
BEAM1_RF 
BEAM2_RF 
INST_LUMI 
INST_LUMI_ERR 
FSIZE 

Definition at line 29 of file LHCInfo.h.

◆ IntParamIndex

Enumerator
LHC_FILL 
BUNCHES_1 
BUNCHES_2 
COLLIDING_BUNCHES 
TARGET_BUNCHES 
FILL_TYPE 
PARTICLES_1 
PARTICLES_2 
LUMI_SECTION 
ISIZE 

Definition at line 17 of file LHCInfo.h.

◆ ParticleType

Enumerator
NONE 
PROTON 
PB82 
AR18 
XE54 

Definition at line 15 of file LHCInfo.h.

15 { NONE = 0, PROTON = 1, PB82 = 2, AR18 = 3, D = 4, XE54 = 5 };

◆ StringParamIndex

Enumerator
INJECTION_SCHEME 
LHC_STATE 
LHC_COMMENT 
CTPPS_STATUS 
SSIZE 

Definition at line 47 of file LHCInfo.h.

◆ TimeParamIndex

Enumerator
CREATE_TIME 
BEGIN_TIME 
END_TIME 
TSIZE 

Definition at line 46 of file LHCInfo.h.

Constructor & Destructor Documentation

◆ LHCInfo() [1/2]

LHCInfo::LHCInfo ( )

Definition at line 73 of file LHCInfo.cc.

References BEAM1_RF, BEAM1_VC, BEAM2_RF, BEAM2_VC, FSIZE, INJECTION_SCHEME, ISIZE, LUMI_PER_B, m_floatParams, m_intParams, m_stringParams, m_timeParams, SSIZE, AlCaHLTBitMon_QueryRunRegistry::string, and TSIZE.

Referenced by cloneFill().

73  {
74  m_intParams.resize(ISIZE, std::vector<unsigned int>(1, 0));
75  m_floatParams.resize(FSIZE, std::vector<float>(1, 0.));
76  m_floatParams[LUMI_PER_B] = std::vector<float>();
77  m_floatParams[BEAM1_VC] = std::vector<float>();
78  m_floatParams[BEAM2_VC] = std::vector<float>();
79  m_floatParams[BEAM1_RF] = std::vector<float>();
80  m_floatParams[BEAM2_RF] = std::vector<float>();
81  m_timeParams.resize(TSIZE, std::vector<unsigned long long>(1, 0ULL));
82  m_stringParams.resize(SSIZE, std::vector<std::string>(1, ""));
83  m_stringParams[INJECTION_SCHEME].push_back(std::string("None"));
84 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ LHCInfo() [2/2]

LHCInfo::LHCInfo ( const LHCInfo rhs)

Definition at line 86 of file LHCInfo.cc.

87  : m_intParams(rhs.m_intParams),
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ ~LHCInfo()

LHCInfo::~LHCInfo ( )

Definition at line 94 of file LHCInfo.cc.

94 {}

Member Function Documentation

◆ beam1RF() [1/2]

std::vector< float > const & LHCInfo::beam1RF ( ) const

Definition at line 224 of file LHCInfo.cc.

References BEAM1_RF, LHCInfoImpl::getParams(), and m_floatParams.

Referenced by print(), and setBeam1RF().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:117

◆ beam1RF() [2/2]

std::vector< float > & LHCInfo::beam1RF ( )

Definition at line 232 of file LHCInfo.cc.

References LHCInfoImpl::accessParams(), BEAM1_RF, and m_floatParams.

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:124

◆ beam1VC() [1/2]

std::vector< float > const & LHCInfo::beam1VC ( ) const

Definition at line 220 of file LHCInfo.cc.

References BEAM1_VC, LHCInfoImpl::getParams(), and m_floatParams.

Referenced by print(), and setBeam1VC().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:117

◆ beam1VC() [2/2]

std::vector< float > & LHCInfo::beam1VC ( )

Definition at line 228 of file LHCInfo.cc.

References LHCInfoImpl::accessParams(), BEAM1_VC, and m_floatParams.

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:124

◆ beam2RF() [1/2]

std::vector< float > const & LHCInfo::beam2RF ( ) const

Definition at line 226 of file LHCInfo.cc.

References BEAM2_RF, LHCInfoImpl::getParams(), and m_floatParams.

Referenced by print(), and setBeam2RF().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:117

◆ beam2RF() [2/2]

std::vector< float > & LHCInfo::beam2RF ( )

Definition at line 234 of file LHCInfo.cc.

References LHCInfoImpl::accessParams(), BEAM2_RF, and m_floatParams.

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:124

◆ beam2VC() [1/2]

std::vector< float > const & LHCInfo::beam2VC ( ) const

Definition at line 222 of file LHCInfo.cc.

References BEAM2_VC, LHCInfoImpl::getParams(), and m_floatParams.

Referenced by print(), and setBeam2VC().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:117

◆ beam2VC() [2/2]

std::vector< float > & LHCInfo::beam2VC ( )

Definition at line 230 of file LHCInfo.cc.

References LHCInfoImpl::accessParams(), BEAM2_VC, and m_floatParams.

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:124

◆ beginTime()

cond::Time_t const LHCInfo::beginTime ( ) const

Definition at line 202 of file LHCInfo.cc.

References BEGIN_TIME, LHCInfoImpl::getOneParam(), and m_timeParams.

Referenced by print(), and setBeginTime().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259

◆ betaStar()

float const LHCInfo::betaStar ( ) const

Definition at line 184 of file LHCInfo.cc.

References BETA_STAR, LHCInfoImpl::getOneParam(), and m_floatParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), CTPPSBeamParametersFromLHCInfoESSource::produce(), and setBetaStar().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ bunchBitsetForBeam1()

std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam1 ( ) const

Definition at line 500 of file LHCInfo.cc.

References m_bunchConfiguration1.

500 { return m_bunchConfiguration1; }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261

◆ bunchBitsetForBeam2()

std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam2 ( ) const

Definition at line 502 of file LHCInfo.cc.

References m_bunchConfiguration2.

502 { return m_bunchConfiguration2; }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261

◆ bunchConfigurationForBeam1()

std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 257 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

257  {
259 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfo::bunchSlots+1 > const &bs)
Definition: LHCInfo.cc:9

◆ bunchConfigurationForBeam2()

std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam2 ( ) const

Definition at line 261 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

261  {
263 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfo::bunchSlots+1 > const &bs)
Definition: LHCInfo.cc:9

◆ bunchesInBeam1()

unsigned short const LHCInfo::bunchesInBeam1 ( ) const

Definition at line 160 of file LHCInfo.cc.

References BUNCHES_1, LHCInfoImpl::getOneParam(), and m_intParams.

Referenced by print().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ bunchesInBeam2()

unsigned short const LHCInfo::bunchesInBeam2 ( ) const

Definition at line 162 of file LHCInfo.cc.

References BUNCHES_2, LHCInfoImpl::getOneParam(), and m_intParams.

Referenced by print().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ cloneFill()

LHCInfo * LHCInfo::cloneFill ( ) const

Definition at line 96 of file LHCInfo.cc.

References DELIV_LUMI, empty(), cms::cuda::for(), mps_fire::i, LHC_STATE, LHCInfo(), LUMI_PER_B, LUMI_SECTION, m_bunchConfiguration1, m_bunchConfiguration2, m_floatParams, m_intParams, m_isData, m_stringParams, m_timeParams, runTheMatrix::ret, and TSIZE.

96  {
97  LHCInfo* ret = new LHCInfo();
98  ret->m_isData = m_isData;
99  if (!m_intParams[0].empty()) {
100  for (size_t i = 0; i < LUMI_SECTION; i++)
101  ret->m_intParams[i] = m_intParams[i];
102  for (size_t i = 0; i < DELIV_LUMI; i++)
103  ret->m_floatParams[i] = m_floatParams[i];
104  ret->m_floatParams[LUMI_PER_B] = m_floatParams[LUMI_PER_B];
105  for (size_t i = 0; i < TSIZE; i++)
106  ret->m_timeParams[i] = m_timeParams[i];
107  for (size_t i = 0; i < LHC_STATE; i++)
108  ret->m_stringParams[i] = m_stringParams[i];
109  ret->m_bunchConfiguration1 = m_bunchConfiguration1;
110  ret->m_bunchConfiguration2 = m_bunchConfiguration2;
111  }
112  return ret;
113 }
bool m_isData
Definition: LHCInfo.h:256
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
ret
prodAgent to be discontinued
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261
LHCInfo()
Definition: LHCInfo.cc:73
bool empty() const
Definition: LHCInfo.cc:538
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ collidingBunches()

unsigned short const LHCInfo::collidingBunches ( ) const

Definition at line 164 of file LHCInfo.cc.

References COLLIDING_BUNCHES, LHCInfoImpl::getOneParam(), and m_intParams.

Referenced by print(), and setCollidingBunches().

164  {
166 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ createTime()

cond::Time_t const LHCInfo::createTime ( ) const

Definition at line 200 of file LHCInfo.cc.

References CREATE_TIME, LHCInfoImpl::getOneParam(), and m_timeParams.

Referenced by print(), and setCreationTime().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259

◆ crossingAngle()

float const LHCInfo::crossingAngle ( ) const

◆ ctppsStatus()

std::string const & LHCInfo::ctppsStatus ( ) const

Definition at line 216 of file LHCInfo.cc.

References CTPPS_STATUS, LHCInfoImpl::getOneParam(), and m_stringParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setCtppsStatus().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ delivLumi()

float const LHCInfo::delivLumi ( ) const

Definition at line 192 of file LHCInfo.cc.

References DELIV_LUMI, LHCInfoImpl::getOneParam(), and m_floatParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setDelivLumi().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ empty()

bool LHCInfo::empty ( ) const

Definition at line 538 of file LHCInfo.cc.

References m_intParams.

Referenced by cloneFill().

538 { return m_intParams[0].empty(); }
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ endTime()

cond::Time_t const LHCInfo::endTime ( ) const

Definition at line 204 of file LHCInfo.cc.

References END_TIME, LHCInfoImpl::getOneParam(), and m_timeParams.

Referenced by print(), and setEndTime().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259

◆ energy()

float const LHCInfo::energy ( ) const

◆ equals()

bool LHCInfo::equals ( const LHCInfo rhs) const

Definition at line 520 of file LHCInfo.cc.

References m_bunchConfiguration1, m_bunchConfiguration2, m_floatParams, m_intParams, m_isData, m_stringParams, and m_timeParams.

520  {
521  if (m_isData != rhs.m_isData)
522  return false;
523  if (m_intParams != rhs.m_intParams)
524  return false;
525  if (m_floatParams != rhs.m_floatParams)
526  return false;
527  if (m_timeParams != rhs.m_timeParams)
528  return false;
529  if (m_stringParams != rhs.m_stringParams)
530  return false;
532  return false;
534  return false;
535  return true;
536 }
bool m_isData
Definition: LHCInfo.h:256
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ fillNumber()

unsigned short const LHCInfo::fillNumber ( ) const

Definition at line 158 of file LHCInfo.cc.

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

Referenced by LHCInfoImpl::comparePayloads(), and print().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ fillType()

LHCInfo::FillTypeId const LHCInfo::fillType ( ) const

Definition at line 170 of file LHCInfo.cc.

References FILL_TYPE, LHCInfoImpl::getOneParam(), and m_intParams.

Referenced by print(), and setFillType().

170  {
172 }
FillType FillTypeId
Definition: LHCInfo.h:49
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ injectionScheme()

std::string const & LHCInfo::injectionScheme ( ) const

Definition at line 206 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), INJECTION_SCHEME, and m_stringParams.

Referenced by is25nsBunchSpacing(), print(), and setInjectionScheme().

206  {
208 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ instLumi()

float const LHCInfo::instLumi ( ) const

Definition at line 196 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), INST_LUMI, and m_floatParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setInstLumi().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ instLumiError()

float const LHCInfo::instLumiError ( ) const

Definition at line 198 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), INST_LUMI_ERR, and m_floatParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setInstLumiError().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ intensityForBeam1()

float const LHCInfo::intensityForBeam1 ( ) const

Definition at line 186 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), INTENSITY_1, and m_floatParams.

Referenced by print().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ intensityForBeam2()

float const LHCInfo::intensityForBeam2 ( ) const

Definition at line 188 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), INTENSITY_2, and m_floatParams.

Referenced by print().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ is25nsBunchSpacing()

bool LHCInfo::is25nsBunchSpacing ( ) const

Definition at line 238 of file LHCInfo.cc.

References cond::serialization::equal(), injectionScheme(), hcallasereventfilter2012_cfi::prefix, and AlCaHLTBitMon_QueryRunRegistry::string.

238  {
239  const std::string prefix("25ns");
240  return std::equal(prefix.begin(), prefix.end(), injectionScheme().begin());
241 }
bool equal(const T &first, const T &second)
Definition: Equal.h:32
std::string const & injectionScheme() const
Definition: LHCInfo.cc:206

◆ isBunchInBeam1()

bool LHCInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 244 of file LHCInfo.cc.

References m_bunchConfiguration1.

244  {
245  if (bunch == 0)
246  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
247  return m_bunchConfiguration1.test(bunch);
248 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261

◆ isBunchInBeam2()

bool LHCInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 250 of file LHCInfo.cc.

References m_bunchConfiguration2.

250  {
251  if (bunch == 0)
252  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
253  return m_bunchConfiguration2.test(bunch);
254 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261

◆ lhcComment()

std::string const & LHCInfo::lhcComment ( ) const

Definition at line 214 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), LHC_COMMENT, and m_stringParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setLhcComment().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ lhcState()

std::string const & LHCInfo::lhcState ( ) const

Definition at line 212 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), LHC_STATE, and m_stringParams.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setLhcState().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ lumiPerBX()

std::vector< float > const & LHCInfo::lumiPerBX ( ) const

Definition at line 210 of file LHCInfo.cc.

References LHCInfoImpl::getParams(), LUMI_PER_B, and m_floatParams.

Referenced by print(), and setLumiPerBX().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:117

◆ lumiSection()

unsigned int const & LHCInfo::lumiSection ( ) const

Definition at line 218 of file LHCInfo.cc.

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

Referenced by print(), and setLumiSection().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ particleTypeForBeam1()

LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam1 ( ) const

Definition at line 174 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), m_intParams, and PARTICLES_1.

Referenced by print().

174  {
176 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
ParticleType ParticleTypeId
Definition: LHCInfo.h:50

◆ particleTypeForBeam2()

LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam2 ( ) const

Definition at line 178 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), m_intParams, and PARTICLES_2.

Referenced by print().

178  {
180 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
ParticleType ParticleTypeId
Definition: LHCInfo.h:50

◆ print()

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

Definition at line 437 of file LHCInfo.cc.

References beam1RF(), beam1VC(), beam2RF(), beam2VC(), beginTime(), betaStar(), bunchConfigurationForBeam1(), bunchConfigurationForBeam2(), bunchesInBeam1(), bunchesInBeam2(), collidingBunches(), filterCSVwithJSON::copy, createTime(), crossingAngle(), ctppsStatus(), delivLumi(), mps_fire::end, endTime(), energy(), fillNumber(), fillType(), fillTypeToString(), injectionScheme(), instLumi(), instLumiError(), intensityForBeam1(), intensityForBeam2(), lhcComment(), lhcState(), lumiPerBX(), lumiSection(), particleTypeForBeam1(), particleTypeForBeam2(), particleTypeToString(), recLumi(), contentValuesCheck::ss, targetBunches(), and cond::time::to_boost().

Referenced by operator<<().

437  {
438  ss << "LHC fill: " << this->fillNumber() << std::endl
439  << "Bunches in Beam 1: " << this->bunchesInBeam1() << std::endl
440  << "Bunches in Beam 2: " << this->bunchesInBeam2() << std::endl
441  << "Colliding bunches at IP5: " << this->collidingBunches() << std::endl
442  << "Target bunches at IP5: " << this->targetBunches() << std::endl
443  << "Fill type: " << fillTypeToString(static_cast<FillTypeId>(this->fillType())) << std::endl
444  << "Particle type for Beam 1: " << particleTypeToString(static_cast<ParticleTypeId>(this->particleTypeForBeam1()))
445  << std::endl
446  << "Particle type for Beam 2: " << particleTypeToString(static_cast<ParticleTypeId>(this->particleTypeForBeam2()))
447  << std::endl
448  << "Crossing angle (urad): " << this->crossingAngle() << std::endl
449  << "Beta star (cm): " << this->betaStar() << std::endl
450  << "Average Intensity for Beam 1 (number of charges): " << this->intensityForBeam1() << std::endl
451  << "Average Intensity for Beam 2 (number of charges): " << this->intensityForBeam2() << std::endl
452  << "Energy (GeV): " << this->energy() << std::endl
453  << "Delivered Luminosity (max): " << this->delivLumi() << std::endl
454  << "Recorded Luminosity (max): " << this->recLumi() << std::endl
455  << "Instantaneous Luminosity: " << this->instLumi() << std::endl
456  << "Instantaneous Luminosity Error: " << this->instLumiError() << std::endl
457  << "Creation time of the fill: "
458  << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->createTime())) << std::endl
459  << "Begin time of Stable Beam flag: "
460  << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->beginTime())) << std::endl
461  << "End time of the fill: " << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->endTime()))
462  << std::endl
463  << "Injection scheme as given by LPC: " << this->injectionScheme() << std::endl
464  << "LHC State: " << this->lhcState() << std::endl
465  << "LHC Comments: " << this->lhcComment() << std::endl
466  << "CTPPS Status: " << this->ctppsStatus() << std::endl
467  << "Lumi section: " << this->lumiSection() << std::endl;
468 
469  ss << "Luminosity per bunch (total " << this->lumiPerBX().size() << "): ";
470  std::copy(this->lumiPerBX().begin(), this->lumiPerBX().end(), std::ostream_iterator<float>(ss, ", "));
471  ss << std::endl;
472 
473  ss << "Beam 1 VC (total " << this->beam1VC().size() << "): ";
474  std::copy(this->beam1VC().begin(), this->beam1VC().end(), std::ostream_iterator<float>(ss, "\t"));
475  ss << std::endl;
476 
477  ss << "Beam 2 VC (total " << beam2VC().size() << "): ";
478  std::copy(beam2VC().begin(), beam2VC().end(), std::ostream_iterator<float>(ss, "\t"));
479  ss << std::endl;
480 
481  ss << "Beam 1 RF (total " << beam1RF().size() << "): ";
482  std::copy(beam1RF().begin(), beam1RF().end(), std::ostream_iterator<float>(ss, "\t"));
483  ss << std::endl;
484 
485  ss << "Beam 2 RF (total " << beam2RF().size() << "): ";
486  std::copy(beam2RF().begin(), beam2RF().end(), std::ostream_iterator<float>(ss, "\t"));
487  ss << std::endl;
488 
489  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
490  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
491  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
492  std::copy(bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>(ss, ", "));
493  ss << std::endl;
494  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
495  std::copy(bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>(ss, ", "));
496  ss << std::endl;
497 }
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:216
float const instLumiError() const
Definition: LHCInfo.cc:198
ParticleTypeId const particleTypeForBeam2() const
Definition: LHCInfo.cc:178
unsigned short const bunchesInBeam1() const
Definition: LHCInfo.cc:160
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:202
std::string const & lhcComment() const
Definition: LHCInfo.cc:214
FillTypeId const fillType() const
Definition: LHCInfo.cc:170
static std::string particleTypeToString(LHCInfo::ParticleTypeId const &particleType)
Definition: LHCInfo.cc:46
float const energy() const
Definition: LHCInfo.cc:190
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:220
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:210
unsigned short const fillNumber() const
Definition: LHCInfo.cc:158
float const recLumi() const
Definition: LHCInfo.cc:194
cond::Time_t const createTime() const
Definition: LHCInfo.cc:200
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:226
ParticleTypeId const particleTypeForBeam1() const
Definition: LHCInfo.cc:174
float const betaStar() const
Definition: LHCInfo.cc:184
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:164
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:224
float const instLumi() const
Definition: LHCInfo.cc:196
std::vector< unsigned short > bunchConfigurationForBeam1() const
Definition: LHCInfo.cc:257
std::string const & injectionScheme() const
Definition: LHCInfo.cc:206
float const crossingAngle() const
Definition: LHCInfo.cc:182
unsigned short const targetBunches() const
Definition: LHCInfo.cc:168
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: LHCInfo.cc:261
std::string const & lhcState() const
Definition: LHCInfo.cc:212
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:222
static std::string fillTypeToString(LHCInfo::FillTypeId const &fillType)
Definition: LHCInfo.cc:21
cond::Time_t const endTime() const
Definition: LHCInfo.cc:204
float const intensityForBeam1() const
Definition: LHCInfo.cc:186
float const intensityForBeam2() const
Definition: LHCInfo.cc:188
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:218
float const delivLumi() const
Definition: LHCInfo.cc:192
unsigned short const bunchesInBeam2() const
Definition: LHCInfo.cc:162
boost::posix_time::ptime to_boost(Time_t iValue)

◆ recLumi()

float const LHCInfo::recLumi ( ) const

Definition at line 194 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), m_floatParams, and REC_LUMI.

Referenced by LHCInfoImpl::comparePayloads(), print(), and setRecLumi().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ serialize()

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

◆ setBeam1RF()

void LHCInfo::setBeam1RF ( std::vector< float > const &  beam1RF)

Definition at line 364 of file LHCInfo.cc.

References BEAM1_RF, beam1RF(), m_floatParams, and LHCInfoImpl::setParams().

Referenced by setInfo().

364  {
366 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:149
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:224

◆ setBeam1VC()

void LHCInfo::setBeam1VC ( std::vector< float > const &  beam1VC)

Definition at line 356 of file LHCInfo.cc.

References BEAM1_VC, beam1VC(), m_floatParams, and LHCInfoImpl::setParams().

Referenced by setInfo().

356  {
358 }
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:220
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:149
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ setBeam2RF()

void LHCInfo::setBeam2RF ( std::vector< float > const &  beam2RF)

Definition at line 368 of file LHCInfo.cc.

References BEAM2_RF, beam2RF(), m_floatParams, and LHCInfoImpl::setParams().

Referenced by setInfo().

368  {
370 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:149
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:226

◆ setBeam2VC()

void LHCInfo::setBeam2VC ( std::vector< float > const &  beam2VC)

Definition at line 360 of file LHCInfo.cc.

References BEAM2_VC, beam2VC(), m_floatParams, and LHCInfoImpl::setParams().

Referenced by setInfo().

360  {
362 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:149
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:222

◆ setBeginTime()

void LHCInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 326 of file LHCInfo.cc.

References BEGIN_TIME, beginTime(), m_timeParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

326  {
328 }
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:202
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259

◆ setBetaStar()

void LHCInfo::setBetaStar ( float const &  betaStar)

Definition at line 300 of file LHCInfo.cc.

References BETA_STAR, betaStar(), m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
float const betaStar() const
Definition: LHCInfo.cc:184

◆ setBunchBitsetForBeam1()

void LHCInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 505 of file LHCInfo.cc.

References m_bunchConfiguration1.

Referenced by setInfo().

505  {
506  m_bunchConfiguration1 = bunchConfiguration;
507 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:261

◆ setBunchBitsetForBeam2()

void LHCInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 509 of file LHCInfo.cc.

References m_bunchConfiguration2.

Referenced by setInfo().

509  {
510  m_bunchConfiguration2 = bunchConfiguration;
511 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:261

◆ setBunchesInBeam1()

void LHCInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 270 of file LHCInfo.cc.

References BUNCHES_1, m_intParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

270  {
271  LHCInfoImpl::setOneParam(m_intParams, BUNCHES_1, static_cast<unsigned int>(bunches));
272 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setBunchesInBeam2()

void LHCInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 274 of file LHCInfo.cc.

References BUNCHES_2, m_intParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

274  {
275  LHCInfoImpl::setOneParam(m_intParams, BUNCHES_2, static_cast<unsigned int>(bunches));
276 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setCollidingBunches()

void LHCInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 278 of file LHCInfo.cc.

References COLLIDING_BUNCHES, collidingBunches(), m_intParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

278  {
280 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:164
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setCreationTime()

void LHCInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 322 of file LHCInfo.cc.

References CREATE_TIME, createTime(), m_timeParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

322  {
324 }
cond::Time_t const createTime() const
Definition: LHCInfo.cc:200
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259

◆ setCrossingAngle()

void LHCInfo::setCrossingAngle ( float const &  angle)

Definition at line 298 of file LHCInfo.cc.

References angle(), CROSSING_ANGLE, m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setCtppsStatus()

void LHCInfo::setCtppsStatus ( std::string const &  ctppsStatus)

Definition at line 348 of file LHCInfo.cc.

References CTPPS_STATUS, ctppsStatus(), m_stringParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

348  {
350 }
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:216
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ setDelivLumi()

void LHCInfo::setDelivLumi ( float const &  delivLumi)

Definition at line 312 of file LHCInfo.cc.

References DELIV_LUMI, delivLumi(), m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
float const delivLumi() const
Definition: LHCInfo.cc:192

◆ setEndTime()

void LHCInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 330 of file LHCInfo.cc.

References END_TIME, endTime(), m_timeParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:259
cond::Time_t const endTime() const
Definition: LHCInfo.cc:204

◆ setEnergy()

void LHCInfo::setEnergy ( float const &  energy)

Definition at line 310 of file LHCInfo.cc.

References ENERGY, energy(), m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

float const energy() const
Definition: LHCInfo.cc:190
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142

◆ setFillNumber()

void LHCInfo::setFillNumber ( unsigned short  lhcFill)

Definition at line 265 of file LHCInfo.cc.

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

265  {
266  LHCInfoImpl::setOneParam(m_intParams, LHC_FILL, static_cast<unsigned int>(lhcFill));
267 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setFillType()

void LHCInfo::setFillType ( LHCInfo::FillTypeId const &  fillType)

Definition at line 286 of file LHCInfo.cc.

References FILL_TYPE, fillType(), m_intParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

286  {
287  LHCInfoImpl::setOneParam(m_intParams, FILL_TYPE, static_cast<unsigned int>(fillType));
288 }
FillTypeId const fillType() const
Definition: LHCInfo.cc:170
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setInfo()

void LHCInfo::setInfo ( unsigned short const &  bunches1,
unsigned short const &  bunches2,
unsigned short const &  collidingBunches,
unsigned short const &  targetBunches,
FillTypeId const &  fillType,
ParticleTypeId const &  particleType1,
ParticleTypeId const &  particleType2,
float const &  angle,
float const &  beta,
float const &  intensity1,
float const &  intensity2,
float const &  energy,
float const &  delivLumi,
float const &  recLumi,
float const &  instLumi,
float const &  instLumiError,
cond::Time_t const &  createTime,
cond::Time_t const &  beginTime,
cond::Time_t const &  endTime,
std::string const &  scheme,
std::vector< float > const &  lumiPerBX,
std::string const &  lhcState,
std::string const &  lhcComment,
std::string const &  ctppsStatus,
unsigned int const &  lumiSection,
std::vector< float > const &  beam1VC,
std::vector< float > const &  beam2VC,
std::vector< float > const &  beam1RF,
std::vector< float > const &  beam2RF,
std::bitset< bunchSlots+1 > const &  bunchConf1,
std::bitset< bunchSlots+1 > const &  bunchConf2 
)

Definition at line 373 of file LHCInfo.cc.

References setBeam1RF(), setBeam1VC(), setBeam2RF(), setBeam2VC(), setBeginTime(), setBetaStar(), setBunchBitsetForBeam1(), setBunchBitsetForBeam2(), setBunchesInBeam1(), setBunchesInBeam2(), setCollidingBunches(), setCreationTime(), setCrossingAngle(), setCtppsStatus(), setDelivLumi(), setEndTime(), setEnergy(), setFillType(), setInjectionScheme(), setInstLumi(), setInstLumiError(), setIntensityForBeam1(), setIntensityForBeam2(), setLhcComment(), setLhcState(), setLumiPerBX(), setLumiSection(), setParticleTypeForBeam1(), setParticleTypeForBeam2(), setRecLumi(), and setTargetBunches().

403  {
404  this->setBunchesInBeam1(bunches1);
405  this->setBunchesInBeam2(bunches2);
408  this->setFillType(fillType);
409  this->setParticleTypeForBeam1(particleType1);
410  this->setParticleTypeForBeam2(particleType2);
411  this->setCrossingAngle(angle);
412  this->setBetaStar(beta);
413  this->setIntensityForBeam1(intensity1);
414  this->setIntensityForBeam2(intensity2);
415  this->setEnergy(energy);
416  this->setDelivLumi(delivLumi);
417  this->setRecLumi(recLumi);
418  this->setInstLumi(instLumi);
421  this->setBeginTime(beginTime);
422  this->setEndTime(endTime);
423  this->setInjectionScheme(scheme);
424  this->setLumiPerBX(lumiPerBX);
425  this->setLhcState(lhcState);
426  this->setLhcComment(lhcComment);
429  this->setBeam1VC(beam1VC);
430  this->setBeam2VC(beam2VC);
431  this->setBeam1RF(beam1RF);
432  this->setBeam2RF(beam2RF);
433  this->setBunchBitsetForBeam1(bunchConf1);
434  this->setBunchBitsetForBeam2(bunchConf2);
435 }
void setBeam1RF(std::vector< float > const &beam1RF)
Definition: LHCInfo.cc:364
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfo.cc:352
void setBeginTime(cond::Time_t const &beginTime)
Definition: LHCInfo.cc:326
void setInstLumi(float const &instLumi)
Definition: LHCInfo.cc:316
void setEnergy(float const &energy)
Definition: LHCInfo.cc:310
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:216
float const instLumiError() const
Definition: LHCInfo.cc:198
void setInstLumiError(float const &instLumiError)
Definition: LHCInfo.cc:318
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:294
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:202
std::string const & lhcComment() const
Definition: LHCInfo.cc:214
FillTypeId const fillType() const
Definition: LHCInfo.cc:170
void setDelivLumi(float const &delivLumi)
Definition: LHCInfo.cc:312
float const energy() const
Definition: LHCInfo.cc:190
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:220
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:210
float const recLumi() const
Definition: LHCInfo.cc:194
void setBeam1VC(std::vector< float > const &beam1VC)
Definition: LHCInfo.cc:356
cond::Time_t const createTime() const
Definition: LHCInfo.cc:200
void setBunchesInBeam1(unsigned short const &bunches)
Definition: LHCInfo.cc:270
void setLhcComment(std::string const &lhcComment)
Definition: LHCInfo.cc:344
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:226
void setBetaStar(float const &betaStar)
Definition: LHCInfo.cc:300
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:164
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:224
float const instLumi() const
Definition: LHCInfo.cc:196
void setLumiPerBX(std::vector< float > const &lumiPerBX)
Definition: LHCInfo.cc:336
void setBunchesInBeam2(unsigned short const &bunches)
Definition: LHCInfo.cc:274
void setBeam2RF(std::vector< float > const &beam2RF)
Definition: LHCInfo.cc:368
void setLhcState(std::string const &lhcState)
Definition: LHCInfo.cc:340
void setBeam2VC(std::vector< float > const &beam2VC)
Definition: LHCInfo.cc:360
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: LHCInfo.cc:278
unsigned short const targetBunches() const
Definition: LHCInfo.cc:168
void setRecLumi(float const &recLumi)
Definition: LHCInfo.cc:314
std::string const & lhcState() const
Definition: LHCInfo.cc:212
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:222
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:290
void setInjectionScheme(std::string const &injectionScheme)
Definition: LHCInfo.cc:332
void setCreationTime(cond::Time_t const &createTime)
Definition: LHCInfo.cc:322
void setTargetBunches(unsigned short const &targetBunches)
Definition: LHCInfo.cc:282
cond::Time_t const endTime() const
Definition: LHCInfo.cc:204
void setCtppsStatus(std::string const &ctppsStatus)
Definition: LHCInfo.cc:348
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:505
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:509
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:218
float const delivLumi() const
Definition: LHCInfo.cc:192
void setIntensityForBeam1(float const &intensity)
Definition: LHCInfo.cc:302
void setEndTime(cond::Time_t const &endTime)
Definition: LHCInfo.cc:330
void setIntensityForBeam2(float const &intensity)
Definition: LHCInfo.cc:306
void setFillType(FillTypeId const &fillType)
Definition: LHCInfo.cc:286
void setCrossingAngle(float const &angle)
Definition: LHCInfo.cc:298
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setInjectionScheme()

void LHCInfo::setInjectionScheme ( std::string const &  injectionScheme)

Definition at line 332 of file LHCInfo.cc.

References INJECTION_SCHEME, injectionScheme(), m_stringParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

332  {
334 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::string const & injectionScheme() const
Definition: LHCInfo.cc:206
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ setInstLumi()

void LHCInfo::setInstLumi ( float const &  instLumi)

Definition at line 316 of file LHCInfo.cc.

References INST_LUMI, instLumi(), m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
float const instLumi() const
Definition: LHCInfo.cc:196

◆ setInstLumiError()

void LHCInfo::setInstLumiError ( float const &  instLumiError)

Definition at line 318 of file LHCInfo.cc.

References INST_LUMI_ERR, instLumiError(), m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

318  {
320 }
float const instLumiError() const
Definition: LHCInfo.cc:198
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142

◆ setIntensityForBeam1()

void LHCInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 302 of file LHCInfo.cc.

References INTENSITY_1, m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

302  {
304 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142

◆ setIntensityForBeam2()

void LHCInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 306 of file LHCInfo.cc.

References INTENSITY_2, m_floatParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

306  {
308 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142

◆ setLhcComment()

void LHCInfo::setLhcComment ( std::string const &  lhcComment)

Definition at line 344 of file LHCInfo.cc.

References LHC_COMMENT, lhcComment(), m_stringParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

344  {
346 }
std::string const & lhcComment() const
Definition: LHCInfo.cc:214
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ setLhcState()

void LHCInfo::setLhcState ( std::string const &  lhcState)

Definition at line 340 of file LHCInfo.cc.

References LHC_STATE, lhcState(), m_stringParams, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

340  {
342 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::string const & lhcState() const
Definition: LHCInfo.cc:212
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:260

◆ setLumiPerBX()

void LHCInfo::setLumiPerBX ( std::vector< float > const &  lumiPerBX)

Definition at line 336 of file LHCInfo.cc.

References LUMI_PER_B, lumiPerBX(), m_floatParams, and LHCInfoImpl::setParams().

Referenced by setInfo().

336  {
338 }
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:210
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:149
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258

◆ setLumiSection()

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

Definition at line 352 of file LHCInfo.cc.

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

Referenced by setInfo().

352  {
354 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:218

◆ setParticleTypeForBeam1()

void LHCInfo::setParticleTypeForBeam1 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 290 of file LHCInfo.cc.

References m_intParams, PARTICLES_1, PbPb_ZMuSkimMuonDPG_cff::particleType, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

290  {
291  LHCInfoImpl::setOneParam(m_intParams, PARTICLES_1, static_cast<unsigned int>(particleType));
292 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setParticleTypeForBeam2()

void LHCInfo::setParticleTypeForBeam2 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 294 of file LHCInfo.cc.

References m_intParams, PARTICLES_2, PbPb_ZMuSkimMuonDPG_cff::particleType, and LHCInfoImpl::setOneParam().

Referenced by setInfo().

294  {
295  LHCInfoImpl::setOneParam(m_intParams, PARTICLES_2, static_cast<unsigned int>(particleType));
296 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

◆ setRecLumi()

void LHCInfo::setRecLumi ( float const &  recLumi)

Definition at line 314 of file LHCInfo.cc.

References m_floatParams, REC_LUMI, recLumi(), and LHCInfoImpl::setOneParam().

Referenced by setInfo().

float const recLumi() const
Definition: LHCInfo.cc:194
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:258
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142

◆ setTargetBunches()

void LHCInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 282 of file LHCInfo.cc.

References m_intParams, LHCInfoImpl::setOneParam(), TARGET_BUNCHES, and targetBunches().

Referenced by setInfo().

282  {
284 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:142
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257
unsigned short const targetBunches() const
Definition: LHCInfo.cc:168

◆ targetBunches()

unsigned short const LHCInfo::targetBunches ( ) const

Definition at line 168 of file LHCInfo.cc.

References LHCInfoImpl::getOneParam(), m_intParams, and TARGET_BUNCHES.

Referenced by print(), and setTargetBunches().

const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:257

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 263 of file LHCInfo.h.

◆ cond::serialization::access

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

Definition at line 263 of file LHCInfo.h.

Member Data Documentation

◆ availableBunchSlots

size_t const LHCInfo::availableBunchSlots = 2808
static

Definition at line 61 of file LHCInfo.h.

◆ bunchSlots

size_t const LHCInfo::bunchSlots = 3564
static

Definition at line 58 of file LHCInfo.h.

Referenced by LHCInfoImpl::setElementData().

◆ m_bunchConfiguration1

std::bitset<bunchSlots + 1> LHCInfo::m_bunchConfiguration1
private

◆ m_bunchConfiguration2

std::bitset<bunchSlots + 1> LHCInfo::m_bunchConfiguration2
private

◆ m_floatParams

std::vector<std::vector<float> > LHCInfo::m_floatParams
private

◆ m_intParams

std::vector<std::vector<unsigned int> > LHCInfo::m_intParams
private

◆ m_isData

bool LHCInfo::m_isData = false
private

Definition at line 256 of file LHCInfo.h.

Referenced by cloneFill(), and equals().

◆ m_stringParams

std::vector<std::vector<std::string> > LHCInfo::m_stringParams
private

◆ m_timeParams

std::vector<std::vector<unsigned long long> > LHCInfo::m_timeParams
private