1 #ifndef CondFormats_RunInfo_LHCInfo_H 2 #define CondFormats_RunInfo_LHCInfo_H 18 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};
25 LHCInfo(
unsigned short const & lhcFill,
bool const & fromData =
true );
35 void setFill(
unsigned short const & lhcFill,
bool const & fromData );
64 float const energy()
const;
78 std::vector<float>
const &
lumiPerBX()
const;
88 std::vector<float>
const &
beam1VC()
const;
90 std::vector<float>
const &
beam2VC()
const;
92 std::vector<float>
const &
beam1RF()
const;
94 std::vector<float>
const &
beam2RF()
const;
166 void setInfo(
unsigned short const & bunches1
167 ,
unsigned short const & bunches2
171 ,ParticleTypeId
const & particleType1
172 ,ParticleTypeId
const & particleType2
175 ,
float const & intensity1
176 ,
float const & intensity2
189 ,std::vector<float>
const &
beam1VC 190 ,std::vector<float>
const &
beam2VC 191 ,std::vector<float>
const &
beam1RF 192 ,std::vector<float>
const &
beam2RF 193 ,std::bitset<bunchSlots+1>
const & bunchConf1
194 ,std::bitset<bunchSlots+1>
const & bunchConf2 );
197 void print(std::stringstream & ss)
const;
221 #endif // CondFormats_RunInfo_LHCInfo_H
std::string const & lhcState() const
void setBeam1RF(std::vector< float > const &beam1RF)
cond::Time_t const beginTime() const
void setLumiSection(unsigned int const &lumiSection)
unsigned short const bunchesInBeam1() const
void setBeginTime(cond::Time_t const &beginTime)
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam1() const
void print(std::stringstream &ss) const
void setEnergy(float const &energy)
FillTypeId const fillType() const
bool isBunchInBeam1(size_t const &bunch) const
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
unsigned short const targetBunches() const
std::string const & injectionScheme() const
std::bitset< bunchSlots+1 > m_bunchConfiguration1
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 setDelivLumi(float const &delivLumi)
std::string const & ctppsStatus() const
void setBeam1VC(std::vector< float > const &beam1VC)
std::vector< std::vector< float > > m_floatParams
void setBunchesInBeam1(unsigned short const &bunches)
void setLhcComment(std::string const &lhcComment)
std::vector< std::vector< unsigned long long > > m_timeParams
void setFill(unsigned short const &lhcFill, bool const &fromData)
float const delivLumi() const
float const crossingAngle() const
bool is25nsBunchSpacing() const
unsigned long long Time_t
std::string const & lhcComment() const
void setBetaStar(float const &betaStar)
std::vector< float > const & beam1VC() const
std::vector< float > const & beam2RF() const
unsigned short const bunchesInBeam2() const
bool isBunchInBeam2(size_t const &bunch) const
void setLumiPerBX(std::vector< float > const &lumiPerBX)
void setBunchesInBeam2(unsigned short const &bunches)
std::vector< float > const & beam1RF() const
float const intensityForBeam2() const
void setBeam2RF(std::vector< float > const &beam2RF)
void setLhcState(std::string const &lhcState)
void setBeam2VC(std::vector< float > const &beam2VC)
void setCollidingBunches(unsigned short const &collidingBunches)
std::vector< std::vector< unsigned int > > m_intParams
unsigned int const & lumiSection() const
ParticleType ParticleTypeId
bool const isData() const
void setRecLumi(float const &recLumi)
static size_t const availableBunchSlots
cond::Time_t const endTime() const
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
void setInjectionScheme(std::string const &injectionScheme)
std::vector< float > const & beam2VC() const
std::vector< float > const & lumiPerBX() const
ParticleTypeId const particleTypeForBeam1() const
#define COND_SERIALIZABLE
void setCreationTime(cond::Time_t const &createTime)
void setTargetBunches(unsigned short const &targetBunches)
float const recLumi() const
void setCtppsStatus(std::string const &ctppsStatus)
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam2() const
unsigned short const collidingBunches() const
float const betaStar() const
float const intensityForBeam1() const
float const energy() const
unsigned short const fillNumber() const
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
ParticleTypeId const particleTypeForBeam2() const
void setIntensityForBeam1(float const &intensity)
void setEndTime(cond::Time_t const &endTime)
std::ostream & operator<<(std::ostream &, LHCInfo lhcInfo)
void setIntensityForBeam2(float const &intensity)
std::bitset< bunchSlots+1 > m_bunchConfiguration2
void setFillType(FillTypeId const &fillType)
cond::Time_t const createTime() const
void setCrossingAngle(float const &angle)
std::vector< unsigned short > bunchConfigurationForBeam2() const
static size_t const bunchSlots
std::vector< unsigned short > bunchConfigurationForBeam1() const
std::vector< std::vector< std::string > > m_stringParams
T angle(T x1, T y1, T z1, T x2, T y2, T z2)