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, 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::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
 
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 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 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, 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
 
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 
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().

Referenced by cloneFill().

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:226
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
void setFill(unsigned short const &lhcFill, bool const &fromData)
Definition: LHCInfo.cc:105
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
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:226
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
void setFill(unsigned short const &lhcFill, bool const &fromData)
Definition: LHCInfo.cc:105
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
LHCInfo::~LHCInfo ( )

Definition at line 89 of file LHCInfo.cc.

89  {
90 }

Member Function Documentation

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

Definition at line 264 of file LHCInfo.cc.

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

Referenced by print().

264  {
266 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:123
std::vector< float > const & LHCInfo::beam1VC ( ) const

Definition at line 256 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 268 of file LHCInfo.cc.

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

Referenced by print().

268  {
270 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:123
std::vector< float > const & LHCInfo::beam2VC ( ) const

Definition at line 260 of file LHCInfo.cc.

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

Referenced by print().

260  {
262 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:123
cond::Time_t const LHCInfo::beginTime ( ) const

Definition at line 224 of file LHCInfo.cc.

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

Referenced by print().

224  {
226 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
float const LHCInfo::betaStar ( ) const

Definition at line 188 of file LHCInfo.cc.

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

Referenced by print().

188  {
190 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam1 ( ) const

Definition at line 541 of file LHCInfo.cc.

References m_bunchConfiguration1.

541  {
542  return m_bunchConfiguration1;
543 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
std::bitset< LHCInfo::bunchSlots+1 > const & LHCInfo::bunchBitsetForBeam2 ( ) const

Definition at line 545 of file LHCInfo.cc.

References m_bunchConfiguration2.

545  {
546  return m_bunchConfiguration2;
547 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
std::vector< unsigned short > LHCInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 293 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

293  {
295 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
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 297 of file LHCInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

297  {
299 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
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 156 of file LHCInfo.cc.

References BUNCHES_1, 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:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
unsigned short const LHCInfo::bunchesInBeam2 ( ) const

Definition at line 160 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 92 of file LHCInfo.cc.

References DELIV_LUMI, DIP_TIME, empty(), mps_fire::i, LHC_STATE, LHCInfo(), LUMI_SECTION, m_floatParams, m_intParams, m_isData, m_stringParams, and m_timeParams.

92  {
93  LHCInfo* ret = new LHCInfo();
94  ret->m_isData = m_isData;
95  if( !m_intParams[0].empty()){
96  for(size_t i=0;i<LUMI_SECTION; i++) ret->m_intParams[i]=m_intParams[i];
97  for(size_t i=0;i<DELIV_LUMI; i++) ret->m_floatParams[i]=m_floatParams[i];
98  for(size_t i=0;i<DIP_TIME; i++) ret->m_timeParams[i]=m_timeParams[i];
99  for(size_t i=0;i<LHC_STATE; i++) ret->m_stringParams[i]=m_stringParams[i];
100  }
101  return ret;
102 }
bool m_isData
Definition: LHCInfo.h:224
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
bool empty() const
Definition: LHCInfo.cc:576
LHCInfo()
Definition: LHCInfo.cc:73
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
unsigned short const LHCInfo::collidingBunches ( ) const

Definition at line 164 of file LHCInfo.cc.

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

Referenced by print().

164  {
166 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
cond::Time_t const LHCInfo::createTime ( ) const

Definition at line 220 of file LHCInfo.cc.

References CREATE_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:128
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
float const LHCInfo::crossingAngle ( ) const

Definition at line 184 of file LHCInfo.cc.

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

Referenced by print().

184  {
186 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::string const & LHCInfo::ctppsStatus ( ) const

Definition at line 248 of file LHCInfo.cc.

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

Referenced by print().

248  {
250 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
float const LHCInfo::delivLumi ( ) const

Definition at line 204 of file LHCInfo.cc.

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

Referenced by print().

204  {
206 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
bool LHCInfo::empty ( ) const

Definition at line 576 of file LHCInfo.cc.

References m_intParams.

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

576  {
577  return m_intParams[0].empty();
578 }
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
cond::Time_t const LHCInfo::endTime ( ) const

Definition at line 228 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::getDipData(), and print().

228  {
230 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
float const LHCInfo::energy ( ) const

Definition at line 200 of file LHCInfo.cc.

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

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

200  {
202 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
bool LHCInfo::equals ( const LHCInfo rhs) const

Definition at line 565 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::addPayload().

565  {
566  if( m_isData != rhs.m_isData ) return false;
567  if( m_intParams != rhs.m_intParams ) return false;
568  if( m_floatParams != rhs.m_floatParams ) return false;
569  if( m_timeParams != rhs.m_timeParams ) return false;
570  if( m_stringParams != rhs.m_stringParams ) return false;
571  if( m_bunchConfiguration1 != rhs.m_bunchConfiguration1 ) return false;
572  if( m_bunchConfiguration2 != rhs.m_bunchConfiguration2 ) return false;
573  return true;
574 }
bool m_isData
Definition: LHCInfo.h:224
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
unsigned short const LHCInfo::fillNumber ( ) const

Definition at line 148 of file LHCInfo.cc.

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

Referenced by LHCInfoPopConSourceHandler::addEmptyPayload(), and print().

148  {
150 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
LHCInfo::FillTypeId const LHCInfo::fillType ( ) const

Definition at line 172 of file LHCInfo.cc.

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

Referenced by print().

172  {
173  return static_cast<FillTypeId>(LHCInfoImpl::getOneParam( m_intParams, FILL_TYPE ));
174 }
FillType FillTypeId
Definition: LHCInfo.h:22
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
std::string const & LHCInfo::injectionScheme ( ) const

Definition at line 232 of file LHCInfo.cc.

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

Referenced by is25nsBunchSpacing(), and print().

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

Definition at line 212 of file LHCInfo.cc.

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

Referenced by print().

212  {
214 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
float const LHCInfo::instLumiError ( ) const

Definition at line 216 of file LHCInfo.cc.

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

Referenced by print().

216  {
218 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
float const LHCInfo::intensityForBeam1 ( ) const

Definition at line 192 of file LHCInfo.cc.

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

Referenced by print().

192  {
194 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
float const LHCInfo::intensityForBeam2 ( ) const

Definition at line 196 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 274 of file LHCInfo.cc.

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

274  {
275  const std::string prefix( "25ns" );
276  return std::equal( prefix.begin(), prefix.end(), injectionScheme().begin() );
277 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:232
bool equal(const T &first, const T &second)
Definition: Equal.h:34
bool LHCInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 280 of file LHCInfo.cc.

References m_bunchConfiguration1.

280  {
281  if( bunch == 0 )
282  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
283  return m_bunchConfiguration1.test( bunch );
284 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
bool LHCInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 286 of file LHCInfo.cc.

References m_bunchConfiguration2.

286  {
287  if( bunch == 0 )
288  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
289  return m_bunchConfiguration2.test( bunch );
290 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
bool const LHCInfo::isData ( ) const

Definition at line 152 of file LHCInfo.cc.

References m_isData.

152  {
153  return m_isData;
154 }
bool m_isData
Definition: LHCInfo.h:224
std::string const & LHCInfo::lhcComment ( ) const

Definition at line 244 of file LHCInfo.cc.

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

Referenced by print().

244  {
246 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
std::string const & LHCInfo::lhcState ( ) const

Definition at line 240 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 236 of file LHCInfo.cc.

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

Referenced by print().

236  {
238 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
const T & getParams(const std::vector< T > &params, size_t index)
Definition: LHCInfo.cc:123
unsigned int const & LHCInfo::lumiSection ( ) const

Definition at line 252 of file LHCInfo.cc.

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

Referenced by print().

252  {
254 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam1 ( ) const

Definition at line 176 of file LHCInfo.cc.

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

Referenced by print().

176  {
178 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
ParticleType ParticleTypeId
Definition: LHCInfo.h:23
LHCInfo::ParticleTypeId const LHCInfo::particleTypeForBeam2 ( ) const

Definition at line 180 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 483 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<<().

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

Definition at line 208 of file LHCInfo.cc.

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

Referenced by print().

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

Definition at line 410 of file LHCInfo.cc.

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

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

410  {
412 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:140
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:264
void LHCInfo::setBeam1VC ( std::vector< float > const &  beam1VC)

Definition at line 402 of file LHCInfo.cc.

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

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

402  {
404 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:140
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:256
void LHCInfo::setBeam2RF ( std::vector< float > const &  beam2RF)

Definition at line 414 of file LHCInfo.cc.

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

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

414  {
416 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:140
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:268
void LHCInfo::setBeam2VC ( std::vector< float > const &  beam2VC)

Definition at line 406 of file LHCInfo.cc.

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

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

406  {
408 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:140
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:260
void LHCInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 370 of file LHCInfo.cc.

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

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

370  {
372 }
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:224
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
void LHCInfo::setBetaStar ( float const &  betaStar)

Definition at line 334 of file LHCInfo.cc.

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

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

334  {
336 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const betaStar() const
Definition: LHCInfo.cc:188
void LHCInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 550 of file LHCInfo.cc.

References m_bunchConfiguration1.

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

550  {
551  m_bunchConfiguration1 = bunchConfiguration;
552 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
void LHCInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)

Definition at line 554 of file LHCInfo.cc.

References m_bunchConfiguration2.

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

554  {
555  m_bunchConfiguration2 = bunchConfiguration;
556 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
void LHCInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 302 of file LHCInfo.cc.

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

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

302  {
303  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_1, static_cast<unsigned int>(bunches) );
304 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
void LHCInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 306 of file LHCInfo.cc.

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

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

306  {
307  LHCInfoImpl::setOneParam( m_intParams, BUNCHES_2, static_cast<unsigned int>(bunches) );
308 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
void LHCInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 310 of file LHCInfo.cc.

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

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

310  {
312 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:164
void LHCInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 366 of file LHCInfo.cc.

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

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

366  {
368 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
cond::Time_t const createTime() const
Definition: LHCInfo.cc:220
void LHCInfo::setCrossingAngle ( float const &  angle)

Definition at line 330 of file LHCInfo.cc.

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

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

330  {
332 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
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 394 of file LHCInfo.cc.

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

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

394  {
396 }
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:248
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
void LHCInfo::setDelivLumi ( float const &  delivLumi)

Definition at line 350 of file LHCInfo.cc.

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

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

350  {
352 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const delivLumi() const
Definition: LHCInfo.cc:204
void LHCInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 374 of file LHCInfo.cc.

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

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

374  {
376 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
cond::Time_t const endTime() const
Definition: LHCInfo.cc:228
void LHCInfo::setEnergy ( float const &  energy)

Definition at line 346 of file LHCInfo.cc.

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

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

346  {
348 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const energy() const
Definition: LHCInfo.cc:200
void LHCInfo::setFill ( unsigned short const &  lhcFill,
bool const &  fromData 
)

Definition at line 105 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 LHCInfoPopConSourceHandler::getFillData(), and LHCInfo().

105  {
106  m_isData = fromData;
107  m_intParams.resize( ISIZE, std::vector<unsigned int>(1,0) );
108  m_intParams[ LHC_FILL ] = std::vector<unsigned int>(1,lhcFill);
109  m_floatParams.resize( FSIZE, std::vector<float>(1,0.));
110  m_floatParams[ LUMI_PER_B ] = std::vector<float>(1, 0.);
111  m_floatParams[ BEAM1_VC ] = std::vector<float>(1, 0.);
112  m_floatParams[ BEAM2_VC ] = std::vector<float>(1, 0.);
113  m_floatParams[ BEAM1_RF ] = std::vector<float>(1, 0.);
114  m_floatParams[ BEAM2_RF ] = std::vector<float>(1, 0.);
115  m_timeParams.resize( TSIZE, std::vector<unsigned long long>(1,0ULL) );
116  m_stringParams.resize( SSIZE, std::vector<std::string>(1, "") );
117  m_stringParams[ INJECTION_SCHEME ].push_back( std::string("None") );
118  m_bunchConfiguration1.reset();
119  m_bunchConfiguration2.reset();
120 }
bool m_isData
Definition: LHCInfo.h:224
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: LHCInfo.h:229
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< std::vector< unsigned long long > > m_timeParams
Definition: LHCInfo.h:227
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: LHCInfo.h:229
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
void LHCInfo::setFillType ( LHCInfo::FillTypeId const &  fillType)

Definition at line 318 of file LHCInfo.cc.

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

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

318  {
319  LHCInfoImpl::setOneParam( m_intParams, FILL_TYPE, static_cast<unsigned int>(fillType) );
320 }
FillTypeId const fillType() const
Definition: LHCInfo.cc:172
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
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 419 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().

449  {
450  this->setBunchesInBeam1( bunches1 );
451  this->setBunchesInBeam2( bunches2 );
454  this->setFillType( fillType );
455  this->setParticleTypeForBeam1( particleType1 );
456  this->setParticleTypeForBeam2( particleType2 );
457  this->setCrossingAngle( angle );
458  this->setBetaStar( beta );
459  this->setIntensityForBeam1( intensity1 );
460  this->setIntensityForBeam2( intensity2 );
461  this->setEnergy( energy );
462  this->setDelivLumi( delivLumi );
463  this->setRecLumi( recLumi );
464  this->setInstLumi( instLumi );
466  this->setCreationTime( createTime );
467  this->setBeginTime( beginTime );
468  this->setEndTime( endTime );
469  this->setInjectionScheme( scheme );
470  this->setLumiPerBX( lumiPerBX );
471  this->setLhcState( lhcState );
472  this->setLhcComment( lhcComment );
473  this->setCtppsStatus( ctppsStatus );
474  this->setLumiSection( lumiSection );
475  this->setBeam1VC( beam1VC );
476  this->setBeam2VC( beam2VC );
477  this->setBeam1RF( beam1RF );
478  this->setBeam2RF( beam2RF );
479  this->setBunchBitsetForBeam1( bunchConf1 );
480  this->setBunchBitsetForBeam2( bunchConf2 );
481 }
const double beta
std::string const & lhcState() const
Definition: LHCInfo.cc:240
void setBeam1RF(std::vector< float > const &beam1RF)
Definition: LHCInfo.cc:410
cond::Time_t const beginTime() const
Definition: LHCInfo.cc:224
void setLumiSection(unsigned int const &lumiSection)
Definition: LHCInfo.cc:398
void setBeginTime(cond::Time_t const &beginTime)
Definition: LHCInfo.cc:370
void setInstLumi(float const &instLumi)
Definition: LHCInfo.cc:358
void setEnergy(float const &energy)
Definition: LHCInfo.cc:346
FillTypeId const fillType() const
Definition: LHCInfo.cc:172
void setInstLumiError(float const &instLumiError)
Definition: LHCInfo.cc:362
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:326
unsigned short const targetBunches() const
Definition: LHCInfo.cc:168
void setDelivLumi(float const &delivLumi)
Definition: LHCInfo.cc:350
std::string const & ctppsStatus() const
Definition: LHCInfo.cc:248
void setBeam1VC(std::vector< float > const &beam1VC)
Definition: LHCInfo.cc:402
void setBunchesInBeam1(unsigned short const &bunches)
Definition: LHCInfo.cc:302
void setLhcComment(std::string const &lhcComment)
Definition: LHCInfo.cc:390
float const delivLumi() const
Definition: LHCInfo.cc:204
float const instLumiError() const
Definition: LHCInfo.cc:216
std::string const & lhcComment() const
Definition: LHCInfo.cc:244
void setBetaStar(float const &betaStar)
Definition: LHCInfo.cc:334
std::vector< float > const & beam1VC() const
Definition: LHCInfo.cc:256
std::vector< float > const & beam2RF() const
Definition: LHCInfo.cc:268
void setLumiPerBX(std::vector< float > const &lumiPerBX)
Definition: LHCInfo.cc:382
void setBunchesInBeam2(unsigned short const &bunches)
Definition: LHCInfo.cc:306
std::vector< float > const & beam1RF() const
Definition: LHCInfo.cc:264
void setBeam2RF(std::vector< float > const &beam2RF)
Definition: LHCInfo.cc:414
void setLhcState(std::string const &lhcState)
Definition: LHCInfo.cc:386
void setBeam2VC(std::vector< float > const &beam2VC)
Definition: LHCInfo.cc:406
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: LHCInfo.cc:310
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:252
void setRecLumi(float const &recLumi)
Definition: LHCInfo.cc:354
float const instLumi() const
Definition: LHCInfo.cc:212
cond::Time_t const endTime() const
Definition: LHCInfo.cc:228
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: LHCInfo.cc:322
void setInjectionScheme(std::string const &injectionScheme)
Definition: LHCInfo.cc:378
std::vector< float > const & beam2VC() const
Definition: LHCInfo.cc:260
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:236
void setCreationTime(cond::Time_t const &createTime)
Definition: LHCInfo.cc:366
void setTargetBunches(unsigned short const &targetBunches)
Definition: LHCInfo.cc:314
float const recLumi() const
Definition: LHCInfo.cc:208
void setCtppsStatus(std::string const &ctppsStatus)
Definition: LHCInfo.cc:394
unsigned short const collidingBunches() const
Definition: LHCInfo.cc:164
float const energy() const
Definition: LHCInfo.cc:200
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:550
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: LHCInfo.cc:554
void setIntensityForBeam1(float const &intensity)
Definition: LHCInfo.cc:338
void setEndTime(cond::Time_t const &endTime)
Definition: LHCInfo.cc:374
void setIntensityForBeam2(float const &intensity)
Definition: LHCInfo.cc:342
void setFillType(FillTypeId const &fillType)
Definition: LHCInfo.cc:318
cond::Time_t const createTime() const
Definition: LHCInfo.cc:220
void setCrossingAngle(float const &angle)
Definition: LHCInfo.cc:330
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 378 of file LHCInfo.cc.

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

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

378  {
380 }
std::string const & injectionScheme() const
Definition: LHCInfo.cc:232
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
void LHCInfo::setInstLumi ( float const &  instLumi)

Definition at line 358 of file LHCInfo.cc.

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

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

358  {
360 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const instLumi() const
Definition: LHCInfo.cc:212
void LHCInfo::setInstLumiError ( float const &  instLumiError)

Definition at line 362 of file LHCInfo.cc.

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

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

362  {
364 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const instLumiError() const
Definition: LHCInfo.cc:216
void LHCInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 338 of file LHCInfo.cc.

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

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

338  {
340 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
void LHCInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 342 of file LHCInfo.cc.

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

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

342  {
344 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
void LHCInfo::setLhcComment ( std::string const &  lhcComment)

Definition at line 390 of file LHCInfo.cc.

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

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

390  {
392 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::string const & lhcComment() const
Definition: LHCInfo.cc:244
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
void LHCInfo::setLhcState ( std::string const &  lhcState)

Definition at line 386 of file LHCInfo.cc.

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

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

386  {
388 }
std::string const & lhcState() const
Definition: LHCInfo.cc:240
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< std::string > > m_stringParams
Definition: LHCInfo.h:228
void LHCInfo::setLumiPerBX ( std::vector< float > const &  lumiPerBX)

Definition at line 382 of file LHCInfo.cc.

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

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

382  {
384 }
void setParams(std::vector< T > &params, size_t index, const T &value)
Definition: LHCInfo.cc:140
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
std::vector< float > const & lumiPerBX() const
Definition: LHCInfo.cc:236
void LHCInfo::setLumiSection ( unsigned int const &  lumiSection)

Definition at line 398 of file LHCInfo.cc.

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

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

398  {
400 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
unsigned int const & lumiSection() const
Definition: LHCInfo.cc:252
void LHCInfo::setParticleTypeForBeam1 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 322 of file LHCInfo.cc.

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

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

322  {
323  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_1, static_cast<unsigned int>(particleType) );
324 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
void LHCInfo::setParticleTypeForBeam2 ( LHCInfo::ParticleTypeId const &  particleType)

Definition at line 326 of file LHCInfo.cc.

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

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

326  {
327  LHCInfoImpl::setOneParam( m_intParams, PARTICLES_2, static_cast<unsigned int>(particleType) );
328 }
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
void LHCInfo::setRecLumi ( float const &  recLumi)

Definition at line 354 of file LHCInfo.cc.

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

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

354  {
356 }
std::vector< std::vector< float > > m_floatParams
Definition: LHCInfo.h:226
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
float const recLumi() const
Definition: LHCInfo.cc:208
void LHCInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 314 of file LHCInfo.cc.

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

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

314  {
315  LHCInfoImpl::setOneParam( m_intParams, TARGET_BUNCHES, static_cast<unsigned int>(targetBunches) );
316 }
unsigned short const targetBunches() const
Definition: LHCInfo.cc:168
void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
Definition: LHCInfo.cc:135
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225
unsigned short const LHCInfo::targetBunches ( ) const

Definition at line 168 of file LHCInfo.cc.

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

Referenced by print().

168  {
170 }
const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
Definition: LHCInfo.cc:128
std::vector< std::vector< unsigned int > > m_intParams
Definition: LHCInfo.h:225

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 231 of file LHCInfo.h.

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

Definition at line 231 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.

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

Referenced by cloneFill(), equals(), isData(), and setFill().

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