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

Definition at line 22 of file LHCInfo.h.

Definition at line 23 of file LHCInfo.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 14 of file LHCInfo.h.

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 18 of file LHCInfo.h.

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.

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 };
Enumerator
INJECTION_SCHEME 
LHC_STATE 
LHC_COMMENT 
CTPPS_STATUS 
SSIZE 

Definition at line 20 of file LHCInfo.h.

Enumerator
CREATE_TIME 
BEGIN_TIME 
END_TIME 
TSIZE 

Definition at line 19 of file LHCInfo.h.

Constructor & Destructor Documentation

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:231
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
LHCInfo::LHCInfo ( const LHCInfo rhs)

Definition at line 86 of file LHCInfo.cc.

86  :
87  m_intParams( rhs.m_intParams ),
93 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
LHCInfo::~LHCInfo ( )

Definition at line 95 of file LHCInfo.cc.

95  {
96 }

Member Function Documentation

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

Definition at line 256 of file LHCInfo.cc.

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

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

256  {
258 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:114
std::vector< float > & LHCInfo::beam1RF ( )

Definition at line 272 of file LHCInfo.cc.

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

272  {
274 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:119
std::vector< float > const & LHCInfo::beam1VC ( ) const

Definition at line 248 of file LHCInfo.cc.

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

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

248  {
250 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:114
std::vector< float > & LHCInfo::beam1VC ( )

Definition at line 264 of file LHCInfo.cc.

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

264  {
266 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:119
std::vector< float > const & LHCInfo::beam2RF ( ) const

Definition at line 260 of file LHCInfo.cc.

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

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

260  {
262 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:114
std::vector< float > & LHCInfo::beam2RF ( )

Definition at line 276 of file LHCInfo.cc.

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

276  {
278 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:119
std::vector< float > const & LHCInfo::beam2VC ( ) const

Definition at line 252 of file LHCInfo.cc.

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

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

252  {
254 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:114
std::vector< float > & LHCInfo::beam2VC ( )

Definition at line 268 of file LHCInfo.cc.

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

268  {
270 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
T & accessParams(std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:119
cond::Time_t const LHCInfo::beginTime ( ) const

Definition at line 216 of file LHCInfo.cc.

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

Referenced by print().

216  {
218 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
float const LHCInfo::betaStar ( ) const

Definition at line 180 of file LHCInfo.cc.

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

Referenced by CTPPSLHCInfoPlotter::analyze(), LHCInfoImpl::comparePayloads(), LHCInfoProducer::globalBeginLuminosityBlockProduce(), print(), and CTPPSBeamParametersFromLHCInfoESSource::produce().

180  {
182 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam1 ( ) const

Definition at line 553 of file LHCInfo.cc.

References m_bunchConfiguration1.

553  {
554  return m_bunchConfiguration1;
555 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam2 ( ) const

Definition at line 557 of file LHCInfo.cc.

References m_bunchConfiguration2.

557  {
558  return m_bunchConfiguration2;
559 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 301 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

301  {
303 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfo::bunchSlots+1 > const &bs)
Definition: LHCInfo.cc:9
std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam2 ( ) const

Definition at line 305 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

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

Definition at line 148 of file LHCInfo.cc.

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

Referenced by print().

148  {
150 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
unsigned short const LHCInfo::bunchesInBeam2 ( ) const

Definition at line 152 of file LHCInfo.cc.

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

Referenced by print().

152  {
154 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
LHCInfo * LHCInfo::cloneFill ( ) const

Definition at line 98 of file LHCInfo.cc.

References DELIV_LUMI, empty(), 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, and TSIZE.

98  {
99  LHCInfo* ret = new LHCInfo();
100  ret->m_isData = m_isData;
101  if( !m_intParams[0].empty()){
102  for(size_t i=0;i<LUMI_SECTION; i++) ret->m_intParams[i]=m_intParams[i];
103  for(size_t i=0;i<DELIV_LUMI; i++) ret->m_floatParams[i]=m_floatParams[i];
105  for(size_t i=0;i<TSIZE; i++) ret->m_timeParams[i]=m_timeParams[i];
106  for(size_t i=0;i<LHC_STATE; i++) ret->m_stringParams[i]=m_stringParams[i];
109  }
110  return ret;
111 }
bool m_isData
Definition: LHCInfo.h:229
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
bool empty() const
Definition: LHCInfo.cc:588
LHCInfo()
Definition: LHCInfo.cc:73
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
unsigned short const LHCInfo::collidingBunches ( ) const

Definition at line 156 of file LHCInfo.cc.

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

Referenced by print().

156  {
158 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
cond::Time_t const LHCInfo::createTime ( ) const

Definition at line 212 of file LHCInfo.cc.

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

Referenced by print().

212  {
214 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
float const LHCInfo::crossingAngle ( ) const
std::string const & LHCInfo::ctppsStatus ( ) const

Definition at line 240 of file LHCInfo.cc.

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

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

240  {
242 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
float const LHCInfo::delivLumi ( ) const

Definition at line 196 of file LHCInfo.cc.

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

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

196  {
198 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
bool LHCInfo::empty ( ) const

Definition at line 588 of file LHCInfo.cc.

References m_intParams.

Referenced by cloneFill(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

588  {
589  return m_intParams[0].empty();
590 }
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
cond::Time_t const LHCInfo::endTime ( ) const

Definition at line 220 of file LHCInfo.cc.

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

Referenced by print().

220  {
222 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
float const LHCInfo::energy ( ) const
bool LHCInfo::equals ( const LHCInfo rhs) const

Definition at line 577 of file LHCInfo.cc.

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

577  {
578  if( m_isData != rhs.m_isData ) return false;
579  if( m_intParams != rhs.m_intParams ) return false;
580  if( m_floatParams != rhs.m_floatParams ) return false;
581  if( m_timeParams != rhs.m_timeParams ) return false;
582  if( m_stringParams != rhs.m_stringParams ) return false;
583  if( m_bunchConfiguration1 != rhs.m_bunchConfiguration1 ) return false;
584  if( m_bunchConfiguration2 != rhs.m_bunchConfiguration2 ) return false;
585  return true;
586 }
bool m_isData
Definition: LHCInfo.h:229
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
unsigned short const LHCInfo::fillNumber ( ) const

Definition at line 144 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::addEmptyPayload(), CTPPSLHCInfoPlotter::analyze(), LHCInfoImpl::comparePayloads(), and print().

144  {
146 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
LHCInfo::FillTypeId const LHCInfo::fillType ( ) const

Definition at line 164 of file LHCInfo.cc.

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

Referenced by print().

164  {
165  return static_cast<FillTypeId>(LHCInfoImpl::getOneParam( m_intParams, FILL_TYPE ));
166 }
FillType FillTypeId
Definition: LHCInfo.h:22
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
std::string const & LHCInfo::injectionScheme ( ) const

Definition at line 224 of file LHCInfo.cc.

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

Referenced by is25nsBunchSpacing(), and print().

224  {
226 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
float const LHCInfo::instLumi ( ) const

Definition at line 204 of file LHCInfo.cc.

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

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

204  {
206 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
float const LHCInfo::instLumiError ( ) const

Definition at line 208 of file LHCInfo.cc.

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

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

208  {
210 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
float const LHCInfo::intensityForBeam1 ( ) const

Definition at line 184 of file LHCInfo.cc.

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

Referenced by print().

184  {
186 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
float const LHCInfo::intensityForBeam2 ( ) const

Definition at line 188 of file LHCInfo.cc.

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

Referenced by print().

188  {
190 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
bool LHCInfo::is25nsBunchSpacing ( ) const

Definition at line 282 of file LHCInfo.cc.

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

282  {
283  const std::string prefix( "25ns" );
284  return std::equal( prefix.begin(), prefix.end(), injectionScheme().begin() );
285 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:224
bool equal(const T &first, const T &second)
Definition: Equal.h:34
bool LHCInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 288 of file LHCInfo.cc.

References m_bunchConfiguration1.

288  {
289  if( bunch == 0 )
290  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
291  return m_bunchConfiguration1.test( bunch );
292 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
bool LHCInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 294 of file LHCInfo.cc.

References m_bunchConfiguration2.

294  {
295  if( bunch == 0 )
296  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
297  return m_bunchConfiguration2.test( bunch );
298 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
std::string const & LHCInfo::lhcComment ( ) const

Definition at line 236 of file LHCInfo.cc.

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

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

236  {
238 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
std::string const & LHCInfo::lhcState ( ) const

Definition at line 232 of file LHCInfo.cc.

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

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

232  {
234 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
std::vector< float > const & LHCInfo::lumiPerBX ( ) const

Definition at line 228 of file LHCInfo.cc.

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

Referenced by print().

228  {
230 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:114
unsigned int const & LHCInfo::lumiSection ( ) const

Definition at line 244 of file LHCInfo.cc.

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

Referenced by print().

244  {
246 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam1 ( ) const

Definition at line 168 of file LHCInfo.cc.

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

Referenced by print().

168  {
170 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
ParticleType ParticleTypeId
Definition: LHCInfo.h:23
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam2 ( ) const

Definition at line 172 of file LHCInfo.cc.

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

Referenced by print().

172  {
174 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
ParticleType ParticleTypeId
Definition: LHCInfo.h:23
void LHCInfo::print ( std::stringstream &  ss) const

Definition at line 495 of file LHCInfo.cc.

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

Referenced by operator<<().

495  {
496  ss << "LHC fill: " << this->fillNumber() << std::endl
497  << "Bunches in Beam 1: " << this->bunchesInBeam1() << std::endl
498  << "Bunches in Beam 2: " << this->bunchesInBeam2() << std::endl
499  << "Colliding bunches at IP5: " << this->collidingBunches() << std::endl
500  << "Target bunches at IP5: " <<this->targetBunches() << std::endl
501  << "Fill type: " << fillTypeToString( static_cast<FillTypeId> (this->fillType() ) ) << std::endl
502  << "Particle type for Beam 1: " << particleTypeToString( static_cast<ParticleTypeId>( this->particleTypeForBeam1() ) ) << std::endl
503  << "Particle type for Beam 2: " << particleTypeToString( static_cast<ParticleTypeId>( this->particleTypeForBeam2() ) ) << std::endl
504  << "Crossing angle (urad): " << this->crossingAngle() << std::endl
505  << "Beta star (cm): " << this->betaStar() << std::endl
506  << "Average Intensity for Beam 1 (number of charges): " << this->intensityForBeam1() << std::endl
507  << "Average Intensity for Beam 2 (number of charges): " << this->intensityForBeam2() << std::endl
508  << "Energy (GeV): " << this->energy() << std::endl
509  << "Delivered Luminosity (max): " << this->delivLumi() << std::endl
510  << "Recorded Luminosity (max): " << this->recLumi() << std::endl
511  << "Instantaneous Luminosity: " << this->instLumi() << std::endl
512  << "Instantaneous Luminosity Error: " << this->instLumiError() << std::endl
513  << "Creation time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->createTime() ) ) << std::endl
514  << "Begin time of Stable Beam flag: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->beginTime() ) ) << std::endl
515  << "End time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->endTime() ) ) << std::endl
516  << "Injection scheme as given by LPC: " << this->injectionScheme() << std::endl
517  << "LHC State: " << this->lhcState() << std::endl
518  << "LHC Comments: " << this->lhcComment() << std::endl
519  << "CTPPS Status: " << this->ctppsStatus() << std::endl
520  << "Lumi section: " << this->lumiSection() << std::endl;
521 
522  ss << "Luminosity per bunch (total " << this->lumiPerBX().size() << "): ";
523  std::copy( this->lumiPerBX().begin(), this->lumiPerBX().end(), std::ostream_iterator<float>( ss, ", " ) );
524  ss << std::endl;
525 
526  ss << "Beam 1 VC (total " << this->beam1VC().size() << "): ";
527  std::copy( this->beam1VC().begin(), this->beam1VC().end(), std::ostream_iterator<float>( ss, "\t" ) );
528  ss << std::endl;
529 
530  ss << "Beam 2 VC (total " << beam2VC().size() << "): ";
531  std::copy( beam2VC().begin(), beam2VC().end(), std::ostream_iterator<float>( ss, "\t" ) );
532  ss << std::endl;
533 
534  ss << "Beam 1 RF (total " << beam1RF().size() << "): ";
535  std::copy( beam1RF().begin(), beam1RF().end(), std::ostream_iterator<float>( ss, "\t" ) );
536  ss << std::endl;
537 
538  ss << "Beam 2 RF (total " << beam2RF().size() << "): ";
539  std::copy( beam2RF().begin(), beam2RF().end(), std::ostream_iterator<float>( ss, "\t" ) );
540  ss << std::endl;
541 
542  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
543  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
544  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
545  std::copy( bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
546  ss << std::endl;
547  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
548  std::copy( bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
549  ss << std::endl;
550 }
std::string const & lhcState() const
Definition: LHCInfo.cc:232
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:216
unsigned short const bunchesInBeam1() const
Definition: LHCInfo.cc:148
FillTypeId const fillType() const
Definition: LHCInfo.cc:164
def copy(args, dbName)
unsigned short const targetBunches() const
Definition: LHCInfo.cc:160
std::string const & injectionScheme() const
Definition: LHCInfo.cc:224
static std::string particleTypeToString(LHCInfo::ParticleTypeId const &particleType)
Definition: LHCInfo.cc:46
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:240
float const delivLumi() const
Definition: LHCInfo.cc:196
float const crossingAngle() const
Definition: LHCInfo.cc:176
float const instLumiError() const
Definition: LHCInfo.cc:208
std::string const & lhcComment() const
Definition: LHCInfo.cc:236
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:248
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:260
unsigned short const bunchesInBeam2() const
Definition: LHCInfo.cc:152
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:256
float const intensityForBeam2() const
Definition: LHCInfo.cc:188
#define end
Definition: vmac.h:39
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:244
float const instLumi() const
Definition: LHCInfo.cc:204
cond::Time_t const endTime() const
Definition: LHCInfo.cc:220
static std::string fillTypeToString(LHCInfo::FillTypeId const &fillType)
Definition: LHCInfo.cc:21
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:252
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:228
ParticleTypeId const particleTypeForBeam1() const
Definition: LHCInfo.cc:168
float const recLumi() const
Definition: LHCInfo.cc:200
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:156
#define begin
Definition: vmac.h:32
float const betaStar() const
Definition: LHCInfo.cc:180
float const intensityForBeam1() const
Definition: LHCInfo.cc:184
float const energy() const
Definition: LHCInfo.cc:192
unsigned short const fillNumber() const
Definition: LHCInfo.cc:144
ParticleTypeId const particleTypeForBeam2() const
Definition: LHCInfo.cc:172
cond::Time_t const createTime() const
Definition: LHCInfo.cc:212
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: LHCInfo.cc:305
boost::posix_time::ptime to_boost(Time_t iValue)
std::vector< unsigned short > bunchConfigurationForBeam1() const
Definition: LHCInfo.cc:301
float const LHCInfo::recLumi ( ) const

Definition at line 200 of file LHCInfo.cc.

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

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

200  {
202 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
template<class Archive >
void LHCInfo::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void LHCInfo::setBeam1RF ( std::vector< float > const &  beam1RF)

Definition at line 422 of file LHCInfo.cc.

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

Referenced by setInfo().

422  {
424 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:136
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:256
void LHCInfo::setBeam1VC ( std::vector< float > const &  beam1VC)

Definition at line 414 of file LHCInfo.cc.

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

Referenced by setInfo().

414  {
416 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:136
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:248
void LHCInfo::setBeam2RF ( std::vector< float > const &  beam2RF)

Definition at line 426 of file LHCInfo.cc.

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

Referenced by setInfo().

426  {
428 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:136
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:260
void LHCInfo::setBeam2VC ( std::vector< float > const &  beam2VC)

Definition at line 418 of file LHCInfo.cc.

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

Referenced by setInfo().

418  {
420 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:136
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:252
void LHCInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 382 of file LHCInfo.cc.

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

Referenced by setInfo().

382  {
384 }
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:216
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
void LHCInfo::setBetaStar ( float const &  betaStar)

Definition at line 346 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

346  {
348 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const betaStar() const
Definition: LHCInfo.cc:180
void LHCInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 562 of file LHCInfo.cc.

References m_bunchConfiguration1.

Referenced by setInfo().

562  {
563  m_bunchConfiguration1 = bunchConfiguration;
564 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:234
void LHCInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 566 of file LHCInfo.cc.

References m_bunchConfiguration2.

Referenced by setInfo().

566  {
567  m_bunchConfiguration2 = bunchConfiguration;
568 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:234
void LHCInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 314 of file LHCInfo.cc.

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

Referenced by setInfo().

314  {
315  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_1, static_cast<unsigned int>(bunches) );
316 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
void LHCInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 318 of file LHCInfo.cc.

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

Referenced by setInfo().

318  {
319  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_2, static_cast<unsigned int>(bunches) );
320 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
void LHCInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 322 of file LHCInfo.cc.

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

Referenced by setInfo().

322  {
324 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:156
void LHCInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 378 of file LHCInfo.cc.

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

Referenced by setInfo().

378  {
380 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
cond::Time_t const createTime() const
Definition: LHCInfo.cc:212
void LHCInfo::setCrossingAngle ( float const &  angle)

Definition at line 342 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

342  {
344 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void LHCInfo::setCtppsStatus ( std::string const &  ctppsStatus)

Definition at line 406 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

406  {
408 }
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:240
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
void LHCInfo::setDelivLumi ( float const &  delivLumi)

Definition at line 362 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getLumiData(), and setInfo().

362  {
364 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const delivLumi() const
Definition: LHCInfo.cc:196
void LHCInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 386 of file LHCInfo.cc.

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

Referenced by setInfo().

386  {
388 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:232
cond::Time_t const endTime() const
Definition: LHCInfo.cc:220
void LHCInfo::setEnergy ( float const &  energy)

Definition at line 358 of file LHCInfo.cc.

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

Referenced by setInfo().

358  {
360 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const energy() const
Definition: LHCInfo.cc:192
void LHCInfo::setFillNumber ( unsigned short  lhcFill)

Definition at line 309 of file LHCInfo.cc.

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

309  {
310  LHCInfoImpl::setOneParam( m_intParams, LHC_FILL, static_cast<unsigned int>(lhcFill) );
311 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
void LHCInfo::setFillType ( LHCInfo::FillTypeId const &  fillType)

Definition at line 330 of file LHCInfo.cc.

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

Referenced by setInfo().

330  {
331  LHCInfoImpl::setOneParam( m_intParams, FILL_TYPE, static_cast<unsigned int>(fillType) );
332 }
FillTypeId const fillType() const
Definition: LHCInfo.cc:164
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
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 431 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().

461  {
462  this->setBunchesInBeam1( bunches1 );
463  this->setBunchesInBeam2( bunches2 );
466  this->setFillType( fillType );
467  this->setParticleTypeForBeam1( particleType1 );
468  this->setParticleTypeForBeam2( particleType2 );
469  this->setCrossingAngle( angle );
470  this->setBetaStar( beta );
471  this->setIntensityForBeam1( intensity1 );
472  this->setIntensityForBeam2( intensity2 );
473  this->setEnergy( energy );
474  this->setDelivLumi( delivLumi );
475  this->setRecLumi( recLumi );
476  this->setInstLumi( instLumi );
478  this->setCreationTime( createTime );
479  this->setBeginTime( beginTime );
480  this->setEndTime( endTime );
481  this->setInjectionScheme( scheme );
482  this->setLumiPerBX( lumiPerBX );
483  this->setLhcState( lhcState );
484  this->setLhcComment( lhcComment );
485  this->setCtppsStatus( ctppsStatus );
486  this->setLumiSection( lumiSection );
487  this->setBeam1VC( beam1VC );
488  this->setBeam2VC( beam2VC );
489  this->setBeam1RF( beam1RF );
490  this->setBeam2RF( beam2RF );
491  this->setBunchBitsetForBeam1( bunchConf1 );
492  this->setBunchBitsetForBeam2( bunchConf2 );
493 }
std::string const & lhcState() const
Definition: LHCInfo.cc:232
void setBeam1RF(std::vector< float > const &beam1RF)
Definition: LHCInfo.cc:422
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:216
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfo.cc:410
void setBeginTime(cond::Time_t const &beginTime)
Definition: LHCInfo.cc:382
void setInstLumi(float const &instLumi)
Definition: LHCInfo.cc:370
void setEnergy(float const &energy)
Definition: LHCInfo.cc:358
FillTypeId const fillType() const
Definition: LHCInfo.cc:164
void setInstLumiError(float const &instLumiError)
Definition: LHCInfo.cc:374
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:338
unsigned short const targetBunches() const
Definition: LHCInfo.cc:160
void setDelivLumi(float const &delivLumi)
Definition: LHCInfo.cc:362
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:240
void setBeam1VC(std::vector< float > const &beam1VC)
Definition: LHCInfo.cc:414
void setBunchesInBeam1(unsigned short const &bunches)
Definition: LHCInfo.cc:314
void setLhcComment(std::string const &lhcComment)
Definition: LHCInfo.cc:402
float const delivLumi() const
Definition: LHCInfo.cc:196
float const instLumiError() const
Definition: LHCInfo.cc:208
std::string const & lhcComment() const
Definition: LHCInfo.cc:236
void setBetaStar(float const &betaStar)
Definition: LHCInfo.cc:346
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:248
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:260
void setLumiPerBX(std::vector< float > const &lumiPerBX)
Definition: LHCInfo.cc:394
void setBunchesInBeam2(unsigned short const &bunches)
Definition: LHCInfo.cc:318
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:256
void setBeam2RF(std::vector< float > const &beam2RF)
Definition: LHCInfo.cc:426
void setLhcState(std::string const &lhcState)
Definition: LHCInfo.cc:398
void setBeam2VC(std::vector< float > const &beam2VC)
Definition: LHCInfo.cc:418
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: LHCInfo.cc:322
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:244
void setRecLumi(float const &recLumi)
Definition: LHCInfo.cc:366
float const instLumi() const
Definition: LHCInfo.cc:204
cond::Time_t const endTime() const
Definition: LHCInfo.cc:220
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:334
void setInjectionScheme(std::string const &injectionScheme)
Definition: LHCInfo.cc:390
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:252
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:228
void setCreationTime(cond::Time_t const &createTime)
Definition: LHCInfo.cc:378
void setTargetBunches(unsigned short const &targetBunches)
Definition: LHCInfo.cc:326
float const recLumi() const
Definition: LHCInfo.cc:200
void setCtppsStatus(std::string const &ctppsStatus)
Definition: LHCInfo.cc:406
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:156
float const energy() const
Definition: LHCInfo.cc:192
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:562
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:566
void setIntensityForBeam1(float const &intensity)
Definition: LHCInfo.cc:350
void setEndTime(cond::Time_t const &endTime)
Definition: LHCInfo.cc:386
void setIntensityForBeam2(float const &intensity)
Definition: LHCInfo.cc:354
void setFillType(FillTypeId const &fillType)
Definition: LHCInfo.cc:330
cond::Time_t const createTime() const
Definition: LHCInfo.cc:212
void setCrossingAngle(float const &angle)
Definition: LHCInfo.cc:342
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void LHCInfo::setInjectionScheme ( std::string const &  injectionScheme)

Definition at line 390 of file LHCInfo.cc.

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

Referenced by setInfo().

390  {
392 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:224
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
void LHCInfo::setInstLumi ( float const &  instLumi)

Definition at line 370 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getLumiData(), and setInfo().

370  {
372 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const instLumi() const
Definition: LHCInfo.cc:204
void LHCInfo::setInstLumiError ( float const &  instLumiError)

Definition at line 374 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getLumiData(), and setInfo().

374  {
376 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const instLumiError() const
Definition: LHCInfo.cc:208
void LHCInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 350 of file LHCInfo.cc.

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

Referenced by setInfo().

350  {
352 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
void LHCInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 354 of file LHCInfo.cc.

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

Referenced by setInfo().

354  {
356 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
void LHCInfo::setLhcComment ( std::string const &  lhcComment)

Definition at line 402 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

402  {
404 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::string const & lhcComment() const
Definition: LHCInfo.cc:236
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
void LHCInfo::setLhcState ( std::string const &  lhcState)

Definition at line 398 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

398  {
400 }
std::string const & lhcState() const
Definition: LHCInfo.cc:232
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:233
void LHCInfo::setLumiPerBX ( std::vector< float > const &  lumiPerBX)

Definition at line 394 of file LHCInfo.cc.

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

Referenced by setInfo().

394  {
396 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:136
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:228
void LHCInfo::setLumiSection ( unsigned int const &  lumiSection)

Definition at line 410 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getCTTPSData(), and setInfo().

410  {
412 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:244
void LHCInfo::setParticleTypeForBeam1 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 334 of file LHCInfo.cc.

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

Referenced by setInfo().

334  {
335  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_1, static_cast<unsigned int>(particleType) );
336 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
void LHCInfo::setParticleTypeForBeam2 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 338 of file LHCInfo.cc.

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

Referenced by setInfo().

338  {
339  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_2, static_cast<unsigned int>(particleType) );
340 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
void LHCInfo::setRecLumi ( float const &  recLumi)

Definition at line 366 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getLumiData(), and setInfo().

366  {
368 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:231
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
float const recLumi() const
Definition: LHCInfo.cc:200
void LHCInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 326 of file LHCInfo.cc.

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

Referenced by setInfo().

326  {
327  LHCInfoImpl::setOneParam( m_intParams, TARGET_BUNCHES, static_cast<unsigned int>(targetBunches) );
328 }
unsigned short const targetBunches() const
Definition: LHCInfo.cc:160
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:131
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230
unsigned short const LHCInfo::targetBunches ( ) const

Definition at line 160 of file LHCInfo.cc.

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

Referenced by print().

160  {
162 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:124
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:230

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 236 of file LHCInfo.h.

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

Definition at line 236 of file LHCInfo.h.

Member Data Documentation

size_t const LHCInfo::availableBunchSlots = 2808
static

Definition at line 34 of file LHCInfo.h.

Referenced by LHCInfoPopConSourceHandler::getDipData().

size_t const LHCInfo::bunchSlots = 3564
static

Definition at line 31 of file LHCInfo.h.

Referenced by LHCInfoImpl::setElementData().

std::bitset<bunchSlots+1> LHCInfo::m_bunchConfiguration1
private
std::bitset<bunchSlots+1> LHCInfo::m_bunchConfiguration2
private
std::vector<std::vector<float> > LHCInfo::m_floatParams
private
std::vector<std::vector<unsigned int> > LHCInfo::m_intParams
private
bool LHCInfo::m_isData = false
private

Definition at line 229 of file LHCInfo.h.

Referenced by cloneFill(), and equals().

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