CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | 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,
  FSIZE = 13
}
 
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, DIP_TIME = 3,
  TSIZE =4
}
 

Public Member Functions

std::vector< float > const & beam1RF () const
 
std::vector< float > const & beam1VC () const
 
std::vector< float > const & beam2RF () const
 
std::vector< float > const & beam2VC () const
 
cond::Time_t const beginTime () const
 
float const betaStar () const
 
std::vector< unsigned short > bunchConfigurationForBeam1 () const
 
std::vector< unsigned short > bunchConfigurationForBeam2 () const
 
unsigned short const bunchesInBeam1 () const
 
unsigned short const bunchesInBeam2 () 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
 
cond::Time_t const endTime () const
 
float const energy () const
 
unsigned short const fillNumber () const
 
FillTypeId const fillType () const
 
std::string const & injectionScheme () 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
 
bool const isData () const
 
std::string const & lhcComment () const
 
 LHCInfo ()
 
 LHCInfo (unsigned short const &lhcFill, bool const &fromData=true)
 
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 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 setFill (unsigned short const &lhcFill, bool const &fromData)
 
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, 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 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
 

Protected Member Functions

std::bitset< bunchSlots+1 > const & bunchBitsetForBeam1 () const
 
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam2 () const
 
void setBunchBitsetForBeam1 (std::bitset< bunchSlots+1 > const &bunchConfiguration)
 
void setBunchBitsetForBeam2 (std::bitset< bunchSlots+1 > const &bunchConfiguration)
 

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
 
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 
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 
DIP_TIME 
TSIZE 

Definition at line 19 of file LHCInfo.h.

Constructor & Destructor Documentation

LHCInfo::LHCInfo ( )

Definition at line 73 of file LHCInfo.cc.

References setFill().

73  : m_intParams( ISIZE )
74  , m_floatParams( FSIZE )
75  , m_timeParams( TSIZE )
77 {
78  setFill(0, false);
79 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
void setFill(unsigned short const &lhcFill, bool const &fromData)
Definition: LHCInfo.cc:92
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
LHCInfo::LHCInfo ( unsigned short const &  lhcFill,
bool const &  fromData = true 
)

Definition at line 81 of file LHCInfo.cc.

References setFill().

81  : m_intParams( ISIZE )
82  , m_floatParams( FSIZE )
83  , m_timeParams( TSIZE )
85 {
86  setFill(lhcFill, fromData);
87 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
void setFill(unsigned short const &lhcFill, bool const &fromData)
Definition: LHCInfo.cc:92
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
LHCInfo::~LHCInfo ( )

Definition at line 89 of file LHCInfo.cc.

89 {}

Member Function Documentation

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

Definition at line 243 of file LHCInfo.cc.

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

Referenced by print().

243  {
245 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:110
std::vector< float > const & LHCInfo::beam1VC ( ) const

Definition at line 235 of file LHCInfo.cc.

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

Referenced by print().

235  {
237 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:110
std::vector< float > const & LHCInfo::beam2RF ( ) const

Definition at line 247 of file LHCInfo.cc.

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

Referenced by print().

247  {
249 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:110
std::vector< float > const & LHCInfo::beam2VC ( ) const

Definition at line 239 of file LHCInfo.cc.

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

Referenced by print().

239  {
241 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:110
cond::Time_t const LHCInfo::beginTime ( ) const

Definition at line 203 of file LHCInfo.cc.

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

Referenced by print().

203  {
205 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
float const LHCInfo::betaStar ( ) const

Definition at line 175 of file LHCInfo.cc.

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

Referenced by print().

175  {
177 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam1 ( ) const
protected

Definition at line 506 of file LHCInfo.cc.

References m_bunchConfiguration1.

506  {
507  return m_bunchConfiguration1;
508 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:214
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam2 ( ) const
protected

Definition at line 510 of file LHCInfo.cc.

References m_bunchConfiguration2.

510  {
511  return m_bunchConfiguration2;
512 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:214
std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 272 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

272  {
274 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:214
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 276 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

276  {
278 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:214
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 143 of file LHCInfo.cc.

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

Referenced by print().

143  {
145 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
unsigned short const LHCInfo::bunchesInBeam2 ( ) const

Definition at line 147 of file LHCInfo.cc.

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

Referenced by print().

147  {
149 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
unsigned short const LHCInfo::collidingBunches ( ) const

Definition at line 151 of file LHCInfo.cc.

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

Referenced by print().

151  {
153 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
cond::Time_t const LHCInfo::createTime ( ) const

Definition at line 199 of file LHCInfo.cc.

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

Referenced by print().

199  {
201 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
float const LHCInfo::crossingAngle ( ) const

Definition at line 171 of file LHCInfo.cc.

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

Referenced by print().

171  {
173 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::string const & LHCInfo::ctppsStatus ( ) const

Definition at line 227 of file LHCInfo.cc.

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

Referenced by print().

227  {
229 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
float const LHCInfo::delivLumi ( ) const

Definition at line 191 of file LHCInfo.cc.

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

Referenced by print().

191  {
193 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
cond::Time_t const LHCInfo::endTime ( ) const

Definition at line 207 of file LHCInfo.cc.

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

Referenced by print().

207  {
209 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
float const LHCInfo::energy ( ) const

Definition at line 187 of file LHCInfo.cc.

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

Referenced by print(), and Jet.Jet::rawEnergy().

187  {
189 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
unsigned short const LHCInfo::fillNumber ( ) const

Definition at line 135 of file LHCInfo.cc.

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

Referenced by print().

135  {
137 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
LHCInfo::FillTypeId const LHCInfo::fillType ( ) const

Definition at line 159 of file LHCInfo.cc.

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

Referenced by print().

159  {
160  return static_cast<FillTypeId>(LHCInfoImpl::getOneParam( m_intParams, FILL_TYPE ));
161 }
FillType FillTypeId
Definition: LHCInfo.h:22
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
std::string const & LHCInfo::injectionScheme ( ) const

Definition at line 211 of file LHCInfo.cc.

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

Referenced by is25nsBunchSpacing(), and print().

211  {
213 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
float const LHCInfo::intensityForBeam1 ( ) const

Definition at line 179 of file LHCInfo.cc.

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

Referenced by print().

179  {
181 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
float const LHCInfo::intensityForBeam2 ( ) const

Definition at line 183 of file LHCInfo.cc.

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

Referenced by print().

183  {
185 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
bool LHCInfo::is25nsBunchSpacing ( ) const

Definition at line 253 of file LHCInfo.cc.

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

253  {
254  const std::string prefix( "25ns" );
255  return std::equal( prefix.begin(), prefix.end(), injectionScheme().begin() );
256 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:211
bool equal(const T &first, const T &second)
Definition: Equal.h:34
bool LHCInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 259 of file LHCInfo.cc.

References m_bunchConfiguration1.

259  {
260  if( bunch == 0 )
261  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
262  return m_bunchConfiguration1.test( bunch );
263 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:214
bool LHCInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 265 of file LHCInfo.cc.

References m_bunchConfiguration2.

265  {
266  if( bunch == 0 )
267  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
268  return m_bunchConfiguration2.test( bunch );
269 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:214
bool const LHCInfo::isData ( ) const

Definition at line 139 of file LHCInfo.cc.

References m_isData.

139  {
140  return m_isData;
141 }
bool m_isData
Definition: LHCInfo.h:209
std::string const & LHCInfo::lhcComment ( ) const

Definition at line 223 of file LHCInfo.cc.

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

Referenced by print().

223  {
225 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
std::string const & LHCInfo::lhcState ( ) const

Definition at line 219 of file LHCInfo.cc.

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

Referenced by print().

219  {
221 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
std::vector< float > const & LHCInfo::lumiPerBX ( ) const

Definition at line 215 of file LHCInfo.cc.

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

Referenced by print().

215  {
217 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:110
unsigned int const & LHCInfo::lumiSection ( ) const

Definition at line 231 of file LHCInfo.cc.

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

Referenced by print().

231  {
233 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam1 ( ) const

Definition at line 163 of file LHCInfo.cc.

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

Referenced by print().

163  {
165 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
ParticleType ParticleTypeId
Definition: LHCInfo.h:23
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam2 ( ) const

Definition at line 167 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 450 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(), intensityForBeam1(), intensityForBeam2(), lhcComment(), lhcState(), lumiPerBX(), lumiSection(), particleTypeForBeam1(), particleTypeForBeam2(), particleTypeToString(), recLumi(), targetBunches(), and cond::time::to_boost().

Referenced by operator<<().

450  {
451  ss << "LHC fill: " << this->fillNumber() << std::endl
452  << "Bunches in Beam 1: " << this->bunchesInBeam1() << std::endl
453  << "Bunches in Beam 2: " << this->bunchesInBeam2() << std::endl
454  << "Colliding bunches at IP5: " << this->collidingBunches() << std::endl
455  << "Target bunches at IP5: " <<this->targetBunches() << std::endl
456  << "Fill type: " << fillTypeToString( static_cast<FillTypeId> (this->fillType() ) ) << std::endl
457  << "Particle type for Beam 1: " << particleTypeToString( static_cast<ParticleTypeId>( this->particleTypeForBeam1() ) ) << std::endl
458  << "Particle type for Beam 2: " << particleTypeToString( static_cast<ParticleTypeId>( this->particleTypeForBeam2() ) ) << std::endl
459  << "Crossing angle (urad): " << this->crossingAngle() << std::endl
460  << "Beta star (cm): " << this->betaStar() << std::endl
461  << "Average Intensity for Beam 1 (number of charges): " << this->intensityForBeam1() << std::endl
462  << "Average Intensity for Beam 2 (number of charges): " << this->intensityForBeam2() << std::endl
463  << "Energy (GeV): " << this->energy() << std::endl
464  << "Delivered Luminosity (max): " << this->delivLumi() << std::endl
465  << "Recorded Luminosity (max): " << this->recLumi() << std::endl
466  << "Creation time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->createTime() ) ) << std::endl
467  << "Begin time of Stable Beam flag: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->beginTime() ) ) << std::endl
468  << "End time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( this->endTime() ) ) << std::endl
469  << "Injection scheme as given by LPC: " << this->injectionScheme() << std::endl
470  << "LHC State: " << this->lhcState() << std::endl
471  << "LHC Comments: " << this->lhcComment() << std::endl
472  << "CTPPS Status: " << this->ctppsStatus() << std::endl
473  << "Lumi sections: " << this->lumiSection() << std::endl;
474 
475  ss << "Luminosity per bunch (total " << this->lumiPerBX().size() << "): ";
476  std::copy( this->lumiPerBX().begin(), this->lumiPerBX().end(), std::ostream_iterator<float>( ss, ", " ) );
477  ss << std::endl;
478 
479  ss << "Beam 1 VC (total " << this->beam1VC().size() << "): ";
480  std::copy( this->beam1VC().begin(), this->beam1VC().end(), std::ostream_iterator<float>( ss, "\t" ) );
481  ss << std::endl;
482 
483  ss << "Beam 2 VC (total " << beam2VC().size() << "): ";
484  std::copy( beam2VC().begin(), beam2VC().end(), std::ostream_iterator<float>( ss, "\t" ) );
485  ss << std::endl;
486 
487  ss << "Beam 1 RF (total " << beam1RF().size() << "): ";
488  std::copy( beam1RF().begin(), beam1RF().end(), std::ostream_iterator<float>( ss, "\t" ) );
489  ss << std::endl;
490 
491  ss << "Beam 2 RF (total " << beam2RF().size() << "): ";
492  std::copy( beam2RF().begin(), beam2RF().end(), std::ostream_iterator<float>( ss, "\t" ) );
493  ss << std::endl;
494 
495  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
496  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
497  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
498  std::copy( bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
499  ss << std::endl;
500  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
501  std::copy( bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
502  ss << std::endl;
503 }
std::string const & lhcState() const
Definition: LHCInfo.cc:219
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:203
unsigned short const bunchesInBeam1() const
Definition: LHCInfo.cc:143
FillTypeId const fillType() const
Definition: LHCInfo.cc:159
def copy(args, dbName)
unsigned short const targetBunches() const
Definition: LHCInfo.cc:155
std::string const & injectionScheme() const
Definition: LHCInfo.cc:211
static std::string particleTypeToString(LHCInfo::ParticleTypeId const &particleType)
Definition: LHCInfo.cc:46
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:227
float const delivLumi() const
Definition: LHCInfo.cc:191
float const crossingAngle() const
Definition: LHCInfo.cc:171
std::string const & lhcComment() const
Definition: LHCInfo.cc:223
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:235
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:247
unsigned short const bunchesInBeam2() const
Definition: LHCInfo.cc:147
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:243
float const intensityForBeam2() const
Definition: LHCInfo.cc:183
#define end
Definition: vmac.h:39
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:231
cond::Time_t const endTime() const
Definition: LHCInfo.cc:207
static std::string fillTypeToString(LHCInfo::FillTypeId const &fillType)
Definition: LHCInfo.cc:21
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:239
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:215
ParticleTypeId const particleTypeForBeam1() const
Definition: LHCInfo.cc:163
float const recLumi() const
Definition: LHCInfo.cc:195
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:151
#define begin
Definition: vmac.h:32
float const betaStar() const
Definition: LHCInfo.cc:175
float const intensityForBeam1() const
Definition: LHCInfo.cc:179
float const energy() const
Definition: LHCInfo.cc:187
unsigned short const fillNumber() const
Definition: LHCInfo.cc:135
ParticleTypeId const particleTypeForBeam2() const
Definition: LHCInfo.cc:167
cond::Time_t const createTime() const
Definition: LHCInfo.cc:199
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: LHCInfo.cc:276
boost::posix_time::ptime to_boost(Time_t iValue)
std::vector< unsigned short > bunchConfigurationForBeam1() const
Definition: LHCInfo.cc:272
float const LHCInfo::recLumi ( ) const

Definition at line 195 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 381 of file LHCInfo.cc.

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

Referenced by setInfo().

381  {
383 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:127
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:243
void LHCInfo::setBeam1VC ( std::vector< float > const &  beam1VC)

Definition at line 373 of file LHCInfo.cc.

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

Referenced by setInfo().

373  {
375 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:127
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:235
void LHCInfo::setBeam2RF ( std::vector< float > const &  beam2RF)

Definition at line 385 of file LHCInfo.cc.

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

Referenced by setInfo().

385  {
387 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:127
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:247
void LHCInfo::setBeam2VC ( std::vector< float > const &  beam2VC)

Definition at line 377 of file LHCInfo.cc.

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

Referenced by setInfo().

377  {
379 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:127
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:239
void LHCInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 341 of file LHCInfo.cc.

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

Referenced by setInfo().

341  {
343 }
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:203
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
void LHCInfo::setBetaStar ( float const &  betaStar)

Definition at line 313 of file LHCInfo.cc.

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

Referenced by setInfo().

313  {
315 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
float const betaStar() const
Definition: LHCInfo.cc:175
void LHCInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 515 of file LHCInfo.cc.

References m_bunchConfiguration1.

Referenced by setInfo().

515  {
516  m_bunchConfiguration1 = bunchConfiguration;
517 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:214
void LHCInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 519 of file LHCInfo.cc.

References m_bunchConfiguration2.

Referenced by setInfo().

519  {
520  m_bunchConfiguration2 = bunchConfiguration;
521 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:214
void LHCInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 281 of file LHCInfo.cc.

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

Referenced by setInfo().

281  {
282  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_1, static_cast<unsigned int>(bunches) );
283 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
void LHCInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 285 of file LHCInfo.cc.

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

Referenced by setInfo().

285  {
286  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_2, static_cast<unsigned int>(bunches) );
287 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
void LHCInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 289 of file LHCInfo.cc.

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

Referenced by setInfo().

289  {
291 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:151
void LHCInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 337 of file LHCInfo.cc.

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

Referenced by setInfo().

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

Definition at line 309 of file LHCInfo.cc.

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

Referenced by setInfo().

309  {
311 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
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 365 of file LHCInfo.cc.

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

Referenced by setInfo().

365  {
367 }
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:227
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
void LHCInfo::setDelivLumi ( float const &  delivLumi)

Definition at line 329 of file LHCInfo.cc.

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

Referenced by setInfo().

329  {
331 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
float const delivLumi() const
Definition: LHCInfo.cc:191
void LHCInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 345 of file LHCInfo.cc.

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

Referenced by setInfo().

345  {
347 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
cond::Time_t const endTime() const
Definition: LHCInfo.cc:207
void LHCInfo::setEnergy ( float const &  energy)

Definition at line 325 of file LHCInfo.cc.

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

Referenced by setInfo().

325  {
327 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
float const energy() const
Definition: LHCInfo.cc:187
void LHCInfo::setFill ( unsigned short const &  lhcFill,
bool const &  fromData 
)

Definition at line 92 of file LHCInfo.cc.

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

Referenced by LHCInfo().

92  {
93  m_isData = fromData;
94  m_intParams.resize( ISIZE, std::vector<unsigned int>(1,0) );
95  m_intParams[ LHC_FILL ].push_back( lhcFill );
96  m_floatParams.resize( FSIZE, std::vector<float>(1,0.));
97  m_floatParams[ LUMI_PER_B ] = std::vector<float>(1, 0.);
98  m_floatParams[ BEAM1_VC ] = std::vector<float>(1, 0.);
99  m_floatParams[ BEAM2_VC ] = std::vector<float>(1, 0.);
100  m_floatParams[ BEAM1_RF ] = std::vector<float>(1, 0.);
101  m_floatParams[ BEAM2_RF ] = std::vector<float>(1, 0.);
102  m_timeParams.resize( TSIZE, std::vector<unsigned long long>(1,0ULL) );
103  m_stringParams.resize( SSIZE, std::vector<std::string>(1, "") );
104  m_stringParams[ INJECTION_SCHEME ].push_back( std::string("None") );
105  m_bunchConfiguration1.reset();
106  m_bunchConfiguration2.reset();
107 }
bool m_isData
Definition: LHCInfo.h:209
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:214
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:212
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:214
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
void LHCInfo::setFillType ( LHCInfo::FillTypeId const &  fillType)

Definition at line 297 of file LHCInfo.cc.

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

Referenced by setInfo().

297  {
298  LHCInfoImpl::setOneParam( m_intParams, FILL_TYPE, static_cast<unsigned int>(fillType) );
299 }
FillTypeId const fillType() const
Definition: LHCInfo.cc:159
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
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,
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 390 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getNewObjects().

418  {
419  this->setBunchesInBeam1( bunches1 );
420  this->setBunchesInBeam2( bunches2 );
423  this->setFillType( fillType );
424  this->setParticleTypeForBeam1( particleType1 );
425  this->setParticleTypeForBeam2( particleType2 );
426  this->setCrossingAngle( angle );
427  this->setBetaStar( beta );
428  this->setIntensityForBeam1( intensity1 );
429  this->setIntensityForBeam2( intensity2 );
430  this->setEnergy( energy );
431  this->setDelivLumi( delivLumi );
432  this->setRecLumi( recLumi );
433  this->setCreationTime( createTime );
434  this->setBeginTime( beginTime );
435  this->setEndTime( endTime );
436  this->setInjectionScheme( scheme );
437  this->setLumiPerBX( lumiPerBX );
438  this->setLhcState( lhcState );
439  this->setLhcComment( lhcComment );
440  this->setCtppsStatus( ctppsStatus );
441  this->setLumiSection( lumiSection );
442  this->setBeam1VC( beam1VC );
443  this->setBeam2VC( beam2VC );
444  this->setBeam1RF( beam1RF );
445  this->setBeam2RF( beam2RF );
446  this->setBunchBitsetForBeam1( bunchConf1 );
447  this->setBunchBitsetForBeam2( bunchConf2 );
448 }
const double beta
std::string const & lhcState() const
Definition: LHCInfo.cc:219
void setBeam1RF(std::vector< float > const &beam1RF)
Definition: LHCInfo.cc:381
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:203
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfo.cc:369
void setBeginTime(cond::Time_t const &beginTime)
Definition: LHCInfo.cc:341
void setEnergy(float const &energy)
Definition: LHCInfo.cc:325
FillTypeId const fillType() const
Definition: LHCInfo.cc:159
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:305
unsigned short const targetBunches() const
Definition: LHCInfo.cc:155
void setDelivLumi(float const &delivLumi)
Definition: LHCInfo.cc:329
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:227
void setBeam1VC(std::vector< float > const &beam1VC)
Definition: LHCInfo.cc:373
void setBunchesInBeam1(unsigned short const &bunches)
Definition: LHCInfo.cc:281
void setLhcComment(std::string const &lhcComment)
Definition: LHCInfo.cc:361
float const delivLumi() const
Definition: LHCInfo.cc:191
std::string const & lhcComment() const
Definition: LHCInfo.cc:223
void setBetaStar(float const &betaStar)
Definition: LHCInfo.cc:313
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:235
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:247
void setLumiPerBX(std::vector< float > const &lumiPerBX)
Definition: LHCInfo.cc:353
void setBunchesInBeam2(unsigned short const &bunches)
Definition: LHCInfo.cc:285
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:243
void setBeam2RF(std::vector< float > const &beam2RF)
Definition: LHCInfo.cc:385
void setLhcState(std::string const &lhcState)
Definition: LHCInfo.cc:357
void setBeam2VC(std::vector< float > const &beam2VC)
Definition: LHCInfo.cc:377
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: LHCInfo.cc:289
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:231
void setRecLumi(float const &recLumi)
Definition: LHCInfo.cc:333
cond::Time_t const endTime() const
Definition: LHCInfo.cc:207
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:301
void setInjectionScheme(std::string const &injectionScheme)
Definition: LHCInfo.cc:349
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:239
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:215
void setCreationTime(cond::Time_t const &createTime)
Definition: LHCInfo.cc:337
void setTargetBunches(unsigned short const &targetBunches)
Definition: LHCInfo.cc:293
float const recLumi() const
Definition: LHCInfo.cc:195
void setCtppsStatus(std::string const &ctppsStatus)
Definition: LHCInfo.cc:365
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:151
float const energy() const
Definition: LHCInfo.cc:187
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:515
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:519
void setIntensityForBeam1(float const &intensity)
Definition: LHCInfo.cc:317
void setEndTime(cond::Time_t const &endTime)
Definition: LHCInfo.cc:345
void setIntensityForBeam2(float const &intensity)
Definition: LHCInfo.cc:321
void setFillType(FillTypeId const &fillType)
Definition: LHCInfo.cc:297
cond::Time_t const createTime() const
Definition: LHCInfo.cc:199
void setCrossingAngle(float const &angle)
Definition: LHCInfo.cc:309
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 349 of file LHCInfo.cc.

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

Referenced by setInfo().

349  {
351 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
void LHCInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 317 of file LHCInfo.cc.

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

Referenced by setInfo().

317  {
319 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
void LHCInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 321 of file LHCInfo.cc.

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

Referenced by setInfo().

321  {
323 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
void LHCInfo::setLhcComment ( std::string const &  lhcComment)

Definition at line 361 of file LHCInfo.cc.

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

Referenced by setInfo().

361  {
363 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::string const & lhcComment() const
Definition: LHCInfo.cc:223
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
void LHCInfo::setLhcState ( std::string const &  lhcState)

Definition at line 357 of file LHCInfo.cc.

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

Referenced by setInfo().

357  {
359 }
std::string const & lhcState() const
Definition: LHCInfo.cc:219
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:213
void LHCInfo::setLumiPerBX ( std::vector< float > const &  lumiPerBX)

Definition at line 353 of file LHCInfo.cc.

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

Referenced by setInfo().

353  {
355 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:127
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:215
void LHCInfo::setLumiSection ( unsigned int const &  lumiSection)

Definition at line 369 of file LHCInfo.cc.

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

Referenced by setInfo().

369  {
371 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:231
void LHCInfo::setParticleTypeForBeam1 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 301 of file LHCInfo.cc.

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

Referenced by setInfo().

301  {
302  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_1, static_cast<unsigned int>(particleType) );
303 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
void LHCInfo::setParticleTypeForBeam2 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 305 of file LHCInfo.cc.

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

Referenced by setInfo().

305  {
306  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_2, static_cast<unsigned int>(particleType) );
307 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
void LHCInfo::setRecLumi ( float const &  recLumi)

Definition at line 333 of file LHCInfo.cc.

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

Referenced by setInfo().

333  {
335 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:211
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
float const recLumi() const
Definition: LHCInfo.cc:195
void LHCInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 293 of file LHCInfo.cc.

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

Referenced by setInfo().

293  {
294  LHCInfoImpl::setOneParam( m_intParams, TARGET_BUNCHES, static_cast<unsigned int>(targetBunches) );
295 }
unsigned short const targetBunches() const
Definition: LHCInfo.cc:155
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:122
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210
unsigned short const LHCInfo::targetBunches ( ) const

Definition at line 155 of file LHCInfo.cc.

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

Referenced by print().

155  {
157 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:115
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:210

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 216 of file LHCInfo.h.

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

Definition at line 216 of file LHCInfo.h.

Member Data Documentation

size_t const LHCInfo::availableBunchSlots = 2808
static

Definition at line 32 of file LHCInfo.h.

Referenced by LHCInfoPopConSourceHandler::getNewObjects().

size_t const LHCInfo::bunchSlots = 3564
static

Definition at line 29 of file LHCInfo.h.

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
private

Definition at line 209 of file LHCInfo.h.

Referenced by isData(), and setFill().

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