CMS 3D CMS Logo

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

#include <LHCInfoPerFill.h>

Inheritance diagram for LHCInfoPerFill:
LHCInfoVectorizedFields

Public Types

enum  FillType {
  UNKNOWN = 0, PROTONS, IONS, COSMICS,
  GAP
}
 
typedef FillType FillTypeId
 
enum  FloatParamIndex {
  INTENSITY_1 = 0, INTENSITY_2, ENERGY, DELIV_LUMI,
  REC_LUMI, LUMI_PER_B, BEAM1_VC, BEAM2_VC,
  BEAM1_RF, BEAM2_RF, INST_LUMI, INST_LUMI_ERR,
  FSIZE
}
 
enum  IntParamIndex {
  LHC_FILL = 0, BUNCHES_1, BUNCHES_2, COLLIDING_BUNCHES,
  TARGET_BUNCHES, FILL_TYPE, PARTICLES_1, PARTICLES_2,
  ISIZE
}
 
enum  ParticleType {
  NONE = 0, PROTON, PB82, AR18,
  D, XE54
}
 
typedef ParticleType ParticleTypeId
 
enum  StringParamIndex {
  INJECTION_SCHEME = 0, LHC_STATE, LHC_COMMENT, CTPPS_STATUS,
  SSIZE
}
 
enum  TimeParamIndex { CREATE_TIME = 0, BEGIN_TIME, END_TIME, 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

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
 
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
 
LHCInfoPerFillcloneFill () const
 
unsigned short const collidingBunches () const
 
cond::Time_t const createTime () 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 LHCInfoPerFill &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
 
 LHCInfoPerFill ()
 
std::string const & lhcState () const
 
std::vector< float > const & lumiPerBX () 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 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 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 &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, 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 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
 
- 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)
 

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
 

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 13 of file LHCInfoPerFill.h.

Member Typedef Documentation

◆ FillTypeId

Definition at line 47 of file LHCInfoPerFill.h.

◆ ParticleTypeId

Definition at line 48 of file LHCInfoPerFill.h.

Member Enumeration Documentation

◆ FillType

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 15 of file LHCInfoPerFill.h.

◆ FloatParamIndex

Enumerator
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 LHCInfoPerFill.h.

◆ IntParamIndex

Enumerator
LHC_FILL 
BUNCHES_1 
BUNCHES_2 
COLLIDING_BUNCHES 
TARGET_BUNCHES 
FILL_TYPE 
PARTICLES_1 
PARTICLES_2 
ISIZE 

Definition at line 18 of file LHCInfoPerFill.h.

◆ ParticleType

Enumerator
NONE 
PROTON 
PB82 
AR18 
XE54 

Definition at line 16 of file LHCInfoPerFill.h.

◆ StringParamIndex

◆ TimeParamIndex

Enumerator
CREATE_TIME 
BEGIN_TIME 
END_TIME 
TSIZE 

Definition at line 44 of file LHCInfoPerFill.h.

Constructor & Destructor Documentation

◆ LHCInfoPerFill()

LHCInfoPerFill::LHCInfoPerFill ( )

Definition at line 73 of file LHCInfoPerFill.cc.

References BEAM1_RF, BEAM1_VC, BEAM2_RF, BEAM2_VC, INJECTION_SCHEME, LUMI_PER_B, LHCInfoVectorizedFields::m_floatParams, LHCInfoVectorizedFields::m_stringParams, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cloneFill().

Member Function Documentation

◆ beam1RF() [1/2]

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

Definition at line 178 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setBeam1RF().

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

◆ beam1RF() [2/2]

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

Definition at line 186 of file LHCInfoPerFill.cc.

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

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

◆ beam1VC() [1/2]

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

Definition at line 174 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setBeam1VC().

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

◆ beam1VC() [2/2]

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

Definition at line 182 of file LHCInfoPerFill.cc.

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

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

◆ beam2RF() [1/2]

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

Definition at line 180 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setBeam2RF().

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

◆ beam2RF() [2/2]

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

Definition at line 188 of file LHCInfoPerFill.cc.

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

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

◆ beam2VC() [1/2]

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

Definition at line 176 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setBeam2VC().

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

◆ beam2VC() [2/2]

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

Definition at line 184 of file LHCInfoPerFill.cc.

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

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

◆ beginTime()

cond::Time_t const LHCInfoPerFill::beginTime ( ) const

Definition at line 152 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setBeginTime().

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

◆ bunchBitsetForBeam1()

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

Definition at line 443 of file LHCInfoPerFill.cc.

References m_bunchConfiguration1.

443  {
444  return m_bunchConfiguration1;
445 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1

◆ bunchBitsetForBeam2()

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

Definition at line 447 of file LHCInfoPerFill.cc.

References m_bunchConfiguration2.

447  {
448  return m_bunchConfiguration2;
449 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2

◆ bunchConfigurationForBeam1()

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

Definition at line 211 of file LHCInfoPerFill.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

211  {
213 }
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfoPerFill::bunchSlots+1 > const &bs)
std::bitset< bunchSlots+1 > m_bunchConfiguration1

◆ bunchConfigurationForBeam2()

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

Definition at line 215 of file LHCInfoPerFill.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

215  {
217 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfoPerFill::bunchSlots+1 > const &bs)

◆ bunchesInBeam1()

unsigned short const LHCInfoPerFill::bunchesInBeam1 ( ) const

Definition at line 104 of file LHCInfoPerFill.cc.

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

Referenced by print().

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

◆ bunchesInBeam2()

unsigned short const LHCInfoPerFill::bunchesInBeam2 ( ) const

Definition at line 108 of file LHCInfoPerFill.cc.

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

Referenced by print().

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

◆ cloneFill()

LHCInfoPerFill * LHCInfoPerFill::cloneFill ( ) const

Definition at line 82 of file LHCInfoPerFill.cc.

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

82  {
84  ret->m_isData = m_isData;
85  if (!m_intParams[0].empty()) {
86  for (size_t i = 0; i < ISIZE; i++)
87  ret->m_intParams[i] = m_intParams[i];
88  for (size_t i = 0; i < DELIV_LUMI; i++)
89  ret->m_floatParams[i] = m_floatParams[i];
90  ret->m_floatParams[LUMI_PER_B] = m_floatParams[LUMI_PER_B];
91  for (size_t i = 0; i < TSIZE; i++)
92  ret->m_timeParams[i] = m_timeParams[i];
93  for (size_t i = 0; i < LHC_STATE; i++)
94  ret->m_stringParams[i] = m_stringParams[i];
95  ret->m_bunchConfiguration1 = m_bunchConfiguration1;
96  ret->m_bunchConfiguration2 = m_bunchConfiguration2;
97  }
98  return ret;
99 }
std::vector< std::vector< unsigned int > > m_intParams
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
ret
prodAgent to be discontinued
std::vector< std::vector< std::string > > m_stringParams
std::vector< std::vector< unsigned long long > > m_timeParams
std::bitset< bunchSlots+1 > m_bunchConfiguration2
std::vector< std::vector< float > > m_floatParams
std::bitset< bunchSlots+1 > m_bunchConfiguration1
bool empty() const

◆ collidingBunches()

unsigned short const LHCInfoPerFill::collidingBunches ( ) const

Definition at line 112 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setCollidingBunches().

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

◆ createTime()

cond::Time_t const LHCInfoPerFill::createTime ( ) const

Definition at line 150 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setCreationTime().

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

◆ ctppsStatus()

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

Definition at line 170 of file LHCInfoPerFill.cc.

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

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

170  {
172 }
std::vector< std::vector< std::string > > m_stringParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)

◆ delivLumi()

float const LHCInfoPerFill::delivLumi ( ) const

Definition at line 142 of file LHCInfoPerFill.cc.

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

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

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

◆ empty()

bool LHCInfoPerFill::empty ( ) const

Definition at line 485 of file LHCInfoPerFill.cc.

References LHCInfoVectorizedFields::m_intParams.

Referenced by cloneFill().

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

◆ endTime()

cond::Time_t const LHCInfoPerFill::endTime ( ) const

Definition at line 154 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setEndTime().

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

◆ energy()

float const LHCInfoPerFill::energy ( ) const

Definition at line 140 of file LHCInfoPerFill.cc.

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

Referenced by print(), Jet.Jet::rawEnergy(), setEnergy(), and LHCInfoCombined::setFromPerFill().

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

◆ equals()

bool LHCInfoPerFill::equals ( const LHCInfoPerFill rhs) const

Definition at line 467 of file LHCInfoPerFill.cc.

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

467  {
468  if (m_isData != rhs.m_isData)
469  return false;
470  if (m_intParams != rhs.m_intParams)
471  return false;
472  if (m_floatParams != rhs.m_floatParams)
473  return false;
474  if (m_timeParams != rhs.m_timeParams)
475  return false;
476  if (m_stringParams != rhs.m_stringParams)
477  return false;
479  return false;
481  return false;
482  return true;
483 }
std::vector< std::vector< unsigned int > > m_intParams
std::vector< std::vector< std::string > > m_stringParams
std::vector< std::vector< unsigned long long > > m_timeParams
std::bitset< bunchSlots+1 > m_bunchConfiguration2
std::vector< std::vector< float > > m_floatParams
std::bitset< bunchSlots+1 > m_bunchConfiguration1

◆ fillNumber()

unsigned short const LHCInfoPerFill::fillNumber ( ) const

Definition at line 102 of file LHCInfoPerFill.cc.

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

Referenced by theLHCInfoPerFillImpl::comparePayloads(), print(), and LHCInfoCombined::setFromPerFill().

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

◆ fillType()

LHCInfoPerFill::FillTypeId const LHCInfoPerFill::fillType ( ) const

Definition at line 120 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setFillType().

120  {
122 }
std::vector< std::vector< unsigned int > > m_intParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
FillType FillTypeId

◆ injectionScheme()

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

Definition at line 156 of file LHCInfoPerFill.cc.

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

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

156  {
158 }
std::vector< std::vector< std::string > > m_stringParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)

◆ instLumi()

float const LHCInfoPerFill::instLumi ( ) const

Definition at line 146 of file LHCInfoPerFill.cc.

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

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

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

◆ instLumiError()

float const LHCInfoPerFill::instLumiError ( ) const

Definition at line 148 of file LHCInfoPerFill.cc.

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

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

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

◆ intensityForBeam1()

float const LHCInfoPerFill::intensityForBeam1 ( ) const

Definition at line 132 of file LHCInfoPerFill.cc.

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

Referenced by print().

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

◆ intensityForBeam2()

float const LHCInfoPerFill::intensityForBeam2 ( ) const

Definition at line 136 of file LHCInfoPerFill.cc.

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

Referenced by print().

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

◆ is25nsBunchSpacing()

bool LHCInfoPerFill::is25nsBunchSpacing ( ) const

Definition at line 192 of file LHCInfoPerFill.cc.

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

192  {
193  const std::string prefix("25ns");
194  return std::equal(prefix.begin(), prefix.end(), injectionScheme().begin());
195 }
std::string const & injectionScheme() const
bool equal(const T &first, const T &second)
Definition: Equal.h:32

◆ isBunchInBeam1()

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

Definition at line 198 of file LHCInfoPerFill.cc.

References m_bunchConfiguration1.

198  {
199  if (bunch == 0)
200  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
201  return m_bunchConfiguration1.test(bunch);
202 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1

◆ isBunchInBeam2()

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

Definition at line 204 of file LHCInfoPerFill.cc.

References m_bunchConfiguration2.

204  {
205  if (bunch == 0)
206  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
207  return m_bunchConfiguration2.test(bunch);
208 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2

◆ lhcComment()

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

Definition at line 166 of file LHCInfoPerFill.cc.

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

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

166  {
168 }
std::vector< std::vector< std::string > > m_stringParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)

◆ lhcState()

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

Definition at line 164 of file LHCInfoPerFill.cc.

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

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

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

◆ lumiPerBX()

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

Definition at line 160 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setLumiPerBX().

160  {
162 }
std::vector< std::vector< float > > m_floatParams
static const T & getParams(const std::vector< T > &params, size_t index)

◆ particleTypeForBeam1()

LHCInfoPerFill::ParticleTypeId const LHCInfoPerFill::particleTypeForBeam1 ( ) const

Definition at line 124 of file LHCInfoPerFill.cc.

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

Referenced by print().

124  {
126 }
std::vector< std::vector< unsigned int > > m_intParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
ParticleType ParticleTypeId

◆ particleTypeForBeam2()

LHCInfoPerFill::ParticleTypeId const LHCInfoPerFill::particleTypeForBeam2 ( ) const

Definition at line 128 of file LHCInfoPerFill.cc.

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

Referenced by print().

128  {
130 }
std::vector< std::vector< unsigned int > > m_intParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
ParticleType ParticleTypeId

◆ print()

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

Definition at line 383 of file LHCInfoPerFill.cc.

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

Referenced by operator<<().

383  {
384  ss << "LHC fill: " << this->fillNumber() << std::endl
385  << "Bunches in Beam 1: " << this->bunchesInBeam1() << std::endl
386  << "Bunches in Beam 2: " << this->bunchesInBeam2() << std::endl
387  << "Colliding bunches at IP5: " << this->collidingBunches() << std::endl
388  << "Target bunches at IP5: " << this->targetBunches() << std::endl
389  << "Fill type: " << fillTypeToString(static_cast<FillTypeId>(this->fillType())) << std::endl
390  << "Particle type for Beam 1: " << particleTypeToString(static_cast<ParticleTypeId>(this->particleTypeForBeam1()))
391  << std::endl
392  << "Particle type for Beam 2: " << particleTypeToString(static_cast<ParticleTypeId>(this->particleTypeForBeam2()))
393  << std::endl
394  << "Average Intensity for Beam 1 (number of charges): " << this->intensityForBeam1() << std::endl
395  << "Average Intensity for Beam 2 (number of charges): " << this->intensityForBeam2() << std::endl
396  << "Energy (GeV): " << this->energy() << std::endl
397  << "Delivered Luminosity (max): " << this->delivLumi() << std::endl
398  << "Recorded Luminosity (max): " << this->recLumi() << std::endl
399  << "Instantaneous Luminosity: " << this->instLumi() << std::endl
400  << "Instantaneous Luminosity Error: " << this->instLumiError() << std::endl
401  << "Creation time of the fill: "
402  << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->createTime())) << std::endl
403  << "Begin time of Stable Beam flag: "
404  << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->beginTime())) << std::endl
405  << "End time of the fill: " << boost::posix_time::to_iso_extended_string(cond::time::to_boost(this->endTime()))
406  << std::endl
407  << "Injection scheme as given by LPC: " << this->injectionScheme() << std::endl
408  << "LHC State: " << this->lhcState() << std::endl
409  << "LHC Comments: " << this->lhcComment() << std::endl
410  << "CTPPS Status: " << this->ctppsStatus() << std::endl;
411 
412  ss << "Luminosity per bunch (total " << this->lumiPerBX().size() << "): ";
413  std::copy(this->lumiPerBX().begin(), this->lumiPerBX().end(), std::ostream_iterator<float>(ss, ", "));
414  ss << std::endl;
415 
416  ss << "Beam 1 VC (total " << this->beam1VC().size() << "): ";
417  std::copy(this->beam1VC().begin(), this->beam1VC().end(), std::ostream_iterator<float>(ss, "\t"));
418  ss << std::endl;
419 
420  ss << "Beam 2 VC (total " << beam2VC().size() << "): ";
421  std::copy(beam2VC().begin(), beam2VC().end(), std::ostream_iterator<float>(ss, "\t"));
422  ss << std::endl;
423 
424  ss << "Beam 1 RF (total " << beam1RF().size() << "): ";
425  std::copy(beam1RF().begin(), beam1RF().end(), std::ostream_iterator<float>(ss, "\t"));
426  ss << std::endl;
427 
428  ss << "Beam 2 RF (total " << beam2RF().size() << "): ";
429  std::copy(beam2RF().begin(), beam2RF().end(), std::ostream_iterator<float>(ss, "\t"));
430  ss << std::endl;
431 
432  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
433  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
434  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
435  std::copy(bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>(ss, ", "));
436  ss << std::endl;
437  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
438  std::copy(bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>(ss, ", "));
439  ss << std::endl;
440 }
float const intensityForBeam1() const
std::string const & injectionScheme() const
ParticleTypeId const particleTypeForBeam2() const
std::vector< float > const & beam2VC() const
unsigned short const collidingBunches() const
cond::Time_t const beginTime() const
float const delivLumi() const
float const recLumi() const
unsigned short const bunchesInBeam1() const
unsigned short const targetBunches() const
std::string const & lhcState() const
ParticleTypeId const particleTypeForBeam1() const
static std::string fillTypeToString(LHCInfoPerFill::FillTypeId const &fillType)
std::string const & ctppsStatus() const
std::vector< float > const & lumiPerBX() const
float const energy() const
float const intensityForBeam2() const
cond::Time_t const createTime() const
unsigned short const bunchesInBeam2() const
std::vector< float > const & beam1RF() const
std::string const & lhcComment() const
unsigned short const fillNumber() const
std::vector< unsigned short > bunchConfigurationForBeam2() const
float const instLumi() const
std::vector< unsigned short > bunchConfigurationForBeam1() const
FillTypeId const fillType() const
static std::string particleTypeToString(LHCInfoPerFill::ParticleTypeId const &particleType)
std::vector< float > const & beam2RF() const
std::vector< float > const & beam1VC() const
float const instLumiError() const
cond::Time_t const endTime() const
boost::posix_time::ptime to_boost(Time_t iValue)

◆ recLumi()

float const LHCInfoPerFill::recLumi ( ) const

Definition at line 144 of file LHCInfoPerFill.cc.

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

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

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

◆ serialize()

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

◆ setBeam1RF()

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

Definition at line 316 of file LHCInfoPerFill.cc.

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

Referenced by setInfo().

316  {
318 }
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
std::vector< float > const & beam1RF() const

◆ setBeam1VC()

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

Definition at line 308 of file LHCInfoPerFill.cc.

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

Referenced by setInfo().

308  {
310 }
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
std::vector< float > const & beam1VC() const

◆ setBeam2RF()

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

Definition at line 320 of file LHCInfoPerFill.cc.

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

Referenced by setInfo().

320  {
322 }
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
std::vector< float > const & beam2RF() const

◆ setBeam2VC()

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

Definition at line 312 of file LHCInfoPerFill.cc.

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

Referenced by setInfo().

312  {
314 }
std::vector< float > const & beam2VC() const
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams

◆ setBeginTime()

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

Definition at line 280 of file LHCInfoPerFill.cc.

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

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

280  {
282 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
cond::Time_t const beginTime() const
std::vector< std::vector< unsigned long long > > m_timeParams

◆ setBunchBitsetForBeam1()

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

Definition at line 452 of file LHCInfoPerFill.cc.

References m_bunchConfiguration1.

Referenced by setInfo().

452  {
453  m_bunchConfiguration1 = bunchConfiguration;
454 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1

◆ setBunchBitsetForBeam2()

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

Definition at line 456 of file LHCInfoPerFill.cc.

References m_bunchConfiguration2.

Referenced by setInfo().

456  {
457  m_bunchConfiguration2 = bunchConfiguration;
458 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2

◆ setBunchesInBeam1()

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

Definition at line 224 of file LHCInfoPerFill.cc.

References HLT_FULL_cff::bunches, BUNCHES_1, LHCInfoVectorizedFields::m_intParams, and LHCInfoVectorizedFields::setOneParam().

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

224  {
225  LHCInfoPerFill::setOneParam(m_intParams, BUNCHES_1, static_cast<unsigned int>(bunches));
226 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setBunchesInBeam2()

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

Definition at line 228 of file LHCInfoPerFill.cc.

References HLT_FULL_cff::bunches, BUNCHES_2, LHCInfoVectorizedFields::m_intParams, and LHCInfoVectorizedFields::setOneParam().

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

228  {
229  LHCInfoPerFill::setOneParam(m_intParams, BUNCHES_2, static_cast<unsigned int>(bunches));
230 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setCollidingBunches()

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

Definition at line 232 of file LHCInfoPerFill.cc.

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

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

232  {
234 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
unsigned short const collidingBunches() const
std::vector< std::vector< unsigned int > > m_intParams

◆ setCreationTime()

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

Definition at line 276 of file LHCInfoPerFill.cc.

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

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

276  {
278 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned long long > > m_timeParams
cond::Time_t const createTime() const

◆ setCtppsStatus()

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

Definition at line 304 of file LHCInfoPerFill.cc.

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

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

304  {
306 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< std::string > > m_stringParams
std::string const & ctppsStatus() const

◆ setDelivLumi()

void LHCInfoPerFill::setDelivLumi ( float const &  delivLumi)

Definition at line 262 of file LHCInfoPerFill.cc.

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

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

262  {
264 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
float const delivLumi() const
std::vector< std::vector< float > > m_floatParams

◆ setEndTime()

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

Definition at line 284 of file LHCInfoPerFill.cc.

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

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

284  {
286 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned long long > > m_timeParams
cond::Time_t const endTime() const

◆ setEnergy()

void LHCInfoPerFill::setEnergy ( float const &  energy)

Definition at line 260 of file LHCInfoPerFill.cc.

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

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

static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
float const energy() const
std::vector< std::vector< float > > m_floatParams

◆ setFillNumber()

void LHCInfoPerFill::setFillNumber ( unsigned short  lhcFill)

Definition at line 219 of file LHCInfoPerFill.cc.

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

Referenced by LHCInfoPerFillWriter::analyze().

219  {
220  LHCInfoPerFill::setOneParam(m_intParams, LHC_FILL, static_cast<unsigned int>(lhcFill));
221 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setFillType()

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

Definition at line 240 of file LHCInfoPerFill.cc.

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

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

240  {
241  LHCInfoPerFill::setOneParam(m_intParams, FILL_TYPE, static_cast<unsigned int>(fillType));
242 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams
FillTypeId const fillType() const

◆ setInfo()

void LHCInfoPerFill::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 &  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,
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 325 of file LHCInfoPerFill.cc.

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

352  {
353  this->setBunchesInBeam1(bunches1);
354  this->setBunchesInBeam2(bunches2);
357  this->setFillType(fillType);
358  this->setParticleTypeForBeam1(particleType1);
359  this->setParticleTypeForBeam2(particleType2);
360  this->setIntensityForBeam1(intensity1);
361  this->setIntensityForBeam2(intensity2);
362  this->setEnergy(energy);
363  this->setDelivLumi(delivLumi);
364  this->setRecLumi(recLumi);
365  this->setInstLumi(instLumi);
368  this->setBeginTime(beginTime);
369  this->setEndTime(endTime);
370  this->setInjectionScheme(scheme);
371  this->setLumiPerBX(lumiPerBX);
372  this->setLhcState(lhcState);
373  this->setLhcComment(lhcComment);
375  this->setBeam1VC(beam1VC);
376  this->setBeam2VC(beam2VC);
377  this->setBeam1RF(beam1RF);
378  this->setBeam2RF(beam2RF);
379  this->setBunchBitsetForBeam1(bunchConf1);
380  this->setBunchBitsetForBeam2(bunchConf2);
381 }
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
void setInjectionScheme(std::string const &injectionScheme)
void setBeginTime(cond::Time_t const &beginTime)
void setInstLumiError(float const &instLumiError)
std::vector< float > const & beam2VC() const
unsigned short const collidingBunches() const
void setLhcComment(std::string const &lhcComment)
void setDelivLumi(float const &delivLumi)
cond::Time_t const beginTime() const
float const delivLumi() const
float const recLumi() const
unsigned short const targetBunches() const
std::string const & lhcState() const
void setBunchesInBeam1(unsigned short const &bunches)
void setEndTime(cond::Time_t const &endTime)
void setBunchesInBeam2(unsigned short const &bunches)
void setBeam1VC(std::vector< float > const &beam1VC)
void setIntensityForBeam2(float const &intensity)
std::string const & ctppsStatus() const
void setTargetBunches(unsigned short const &targetBunches)
std::vector< float > const & lumiPerBX() const
void setRecLumi(float const &recLumi)
float const energy() const
void setLhcState(std::string const &lhcState)
cond::Time_t const createTime() const
void setIntensityForBeam1(float const &intensity)
void setCtppsStatus(std::string const &ctppsStatus)
std::vector< float > const & beam1RF() const
std::string const & lhcComment() const
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
void setBeam2VC(std::vector< float > const &beam2VC)
void setBeam1RF(std::vector< float > const &beam1RF)
float const instLumi() const
void setCollidingBunches(unsigned short const &collidingBunches)
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
FillTypeId const fillType() const
std::vector< float > const & beam2RF() const
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
void setCreationTime(cond::Time_t const &createTime)
void setLumiPerBX(std::vector< float > const &lumiPerBX)
void setInstLumi(float const &instLumi)
std::vector< float > const & beam1VC() const
void setBeam2RF(std::vector< float > const &beam2RF)
float const instLumiError() const
void setEnergy(float const &energy)
void setFillType(FillTypeId const &fillType)
cond::Time_t const endTime() const

◆ setInjectionScheme()

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

Definition at line 288 of file LHCInfoPerFill.cc.

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

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

288  {
290 }
std::string const & injectionScheme() const
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< std::string > > m_stringParams

◆ setInstLumi()

void LHCInfoPerFill::setInstLumi ( float const &  instLumi)

Definition at line 268 of file LHCInfoPerFill.cc.

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

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

268  {
270 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
float const instLumi() const

◆ setInstLumiError()

void LHCInfoPerFill::setInstLumiError ( float const &  instLumiError)

Definition at line 272 of file LHCInfoPerFill.cc.

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

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

272  {
274 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams
float const instLumiError() const

◆ setIntensityForBeam1()

void LHCInfoPerFill::setIntensityForBeam1 ( float const &  intensity)

Definition at line 252 of file LHCInfoPerFill.cc.

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

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

252  {
254 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams

◆ setIntensityForBeam2()

void LHCInfoPerFill::setIntensityForBeam2 ( float const &  intensity)

Definition at line 256 of file LHCInfoPerFill.cc.

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

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

256  {
258 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< float > > m_floatParams

◆ setLhcComment()

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

Definition at line 300 of file LHCInfoPerFill.cc.

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

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

300  {
302 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< std::string > > m_stringParams
std::string const & lhcComment() const

◆ setLhcState()

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

Definition at line 296 of file LHCInfoPerFill.cc.

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

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

296  {
298 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< std::string > > m_stringParams
std::string const & lhcState() const

◆ setLumiPerBX()

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

Definition at line 292 of file LHCInfoPerFill.cc.

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

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

292  {
294 }
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< float > const & lumiPerBX() const
std::vector< std::vector< float > > m_floatParams

◆ setParticleTypeForBeam1()

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

Definition at line 244 of file LHCInfoPerFill.cc.

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

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

244  {
245  LHCInfoPerFill::setOneParam(m_intParams, PARTICLES_1, static_cast<unsigned int>(particleType));
246 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setParticleTypeForBeam2()

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

Definition at line 248 of file LHCInfoPerFill.cc.

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

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

248  {
249  LHCInfoPerFill::setOneParam(m_intParams, PARTICLES_2, static_cast<unsigned int>(particleType));
250 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams

◆ setRecLumi()

void LHCInfoPerFill::setRecLumi ( float const &  recLumi)

Definition at line 266 of file LHCInfoPerFill.cc.

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

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

static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
float const recLumi() const
std::vector< std::vector< float > > m_floatParams

◆ setTargetBunches()

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

Definition at line 236 of file LHCInfoPerFill.cc.

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

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

236  {
238 }
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams
unsigned short const targetBunches() const

◆ targetBunches()

unsigned short const LHCInfoPerFill::targetBunches ( ) const

Definition at line 116 of file LHCInfoPerFill.cc.

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

Referenced by print(), and setTargetBunches().

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 239 of file LHCInfoPerFill.h.

◆ cond::serialization::access

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

Definition at line 239 of file LHCInfoPerFill.h.

Member Data Documentation

◆ availableBunchSlots

size_t const LHCInfoPerFill::availableBunchSlots = 2808
static

Definition at line 57 of file LHCInfoPerFill.h.

◆ bunchSlots

size_t const LHCInfoPerFill::bunchSlots = 3564
static

Definition at line 54 of file LHCInfoPerFill.h.

Referenced by theLHCInfoPerFillImpl::setElementData().

◆ m_bunchConfiguration1

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

◆ m_bunchConfiguration2

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