9 static std::vector<unsigned short>
bitsetToVector(std::bitset<LHCInfoPerFill::bunchSlots + 1>
const&
bs) {
10 std::vector<unsigned short> vec;
12 vec.reserve(
bs.count());
13 for (
size_t i = 0;
i <
bs.size(); ++
i) {
15 vec.push_back((
unsigned short)
i);
70 return s_particleType;
200 throw std::out_of_range(
"0 not allowed");
206 throw std::out_of_range(
"0 not allowed");
326 unsigned short const& bunches2,
327 unsigned short const& collidingBunches,
328 unsigned short const& targetBunches,
332 float const& intensity1,
333 float const& intensity2,
338 float const& instLumiError,
343 std::vector<float>
const& lumiPerBX,
347 std::vector<float>
const& beam1VC,
348 std::vector<float>
const& beam2VC,
349 std::vector<float>
const& beam1RF,
350 std::vector<float>
const& beam2RF,
351 std::bitset<bunchSlots + 1>
const& bunchConf1,
352 std::bitset<bunchSlots + 1>
const& bunchConf2) {
388 <<
"Target bunches at IP5: " << this->
targetBunches() << std::endl
394 <<
"Average Intensity for Beam 1 (number of charges): " << this->
intensityForBeam1() << std::endl
395 <<
"Average Intensity for Beam 2 (number of charges): " << this->
intensityForBeam2() << std::endl
396 <<
"Energy (GeV): " << this->
energy() << std::endl
397 <<
"Delivered Luminosity (max): " << this->
delivLumi() << std::endl
398 <<
"Recorded Luminosity (max): " << this->
recLumi() << std::endl
399 <<
"Instantaneous Luminosity: " << this->
instLumi() << std::endl
400 <<
"Instantaneous Luminosity Error: " << this->
instLumiError() << std::endl
401 <<
"Creation time of the fill: " 403 <<
"Begin time of Stable Beam flag: " 407 <<
"Injection scheme as given by LPC: " << this->
injectionScheme() << std::endl
408 <<
"LHC State: " << this->
lhcState() << std::endl
409 <<
"LHC Comments: " << this->
lhcComment() << std::endl
410 <<
"CTPPS Status: " << this->
ctppsStatus() << std::endl;
412 ss <<
"Luminosity per bunch (total " << this->
lumiPerBX().size() <<
"): ";
416 ss <<
"Beam 1 VC (total " << this->
beam1VC().size() <<
"): ";
420 ss <<
"Beam 2 VC (total " <<
beam2VC().size() <<
"): ";
424 ss <<
"Beam 1 RF (total " <<
beam1RF().size() <<
"): ";
428 ss <<
"Beam 2 RF (total " <<
beam2RF().size() <<
"): ";
434 ss <<
"Bunches filled for Beam 1 (total " << bunchVector1.size() <<
"): ";
435 std::copy(bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>(
ss,
", "));
437 ss <<
"Bunches filled for Beam 2 (total " << bunchVector2.size() <<
"): ";
438 std::copy(bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>(
ss,
", "));
461 std::stringstream
ss;
float const intensityForBeam1() const
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
void setInjectionScheme(std::string const &injectionScheme)
std::string const & injectionScheme() const
static void setOneParam(std::vector< std::vector< T > > ¶ms, size_t index, const T &value)
void setBeginTime(cond::Time_t const &beginTime)
void setInstLumiError(float const &instLumiError)
ParticleTypeId const particleTypeForBeam2() const
std::vector< float > const & beam2VC() const
unsigned short const collidingBunches() const
void setLhcComment(std::string const &lhcComment)
std::ostream & operator<<(std::ostream &os, LHCInfoPerFill beamInfo)
void setDelivLumi(float const &delivLumi)
std::vector< std::vector< unsigned int > > m_intParams
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
ret
prodAgent to be discontinued
void setInfo(unsigned short const &bunches1, unsigned short const &bunches2, unsigned short const &collidingBunches, unsigned short const &targetBunches, FillTypeId const &fillType, ParticleTypeId const &particleType1, ParticleTypeId const &particleType2, float const &intensity1, float const &intensity2, float const &energy, float const &delivLumi, float const &recLumi, float const &instLumi, float const &instLumiError, cond::Time_t const &createTime, cond::Time_t const &beginTime, cond::Time_t const &endTime, std::string const &scheme, std::vector< float > const &lumiPerBX, std::string const &lhcState, std::string const &lhcComment, std::string const &ctppsStatus, std::vector< float > const &beam1VC, std::vector< float > const &beam2VC, std::vector< float > const &beam1RF, std::vector< float > const &beam2RF, std::bitset< bunchSlots+1 > const &bunchConf1, std::bitset< bunchSlots+1 > const &bunchConf2)
cond::Time_t const beginTime() const
std::vector< std::vector< std::string > > m_stringParams
static const T & getOneParam(const std::vector< std::vector< T > > ¶ms, size_t index)
float const delivLumi() const
float const recLumi() const
unsigned short const bunchesInBeam1() const
static void setParams(std::vector< T > ¶ms, size_t index, const T &value)
unsigned short const targetBunches() const
std::string const & lhcState() const
bool equal(const T &first, const T &second)
void setBunchesInBeam1(unsigned short const &bunches)
void setEndTime(cond::Time_t const &endTime)
ParticleTypeId const particleTypeForBeam1() const
static std::string fillTypeToString(LHCInfoPerFill::FillTypeId const &fillType)
LHCInfoPerFill * cloneFill() const
void setBunchesInBeam2(unsigned short const &bunches)
void setBeam1VC(std::vector< float > const &beam1VC)
std::vector< std::vector< unsigned long long > > m_timeParams
void setIntensityForBeam2(float const &intensity)
unsigned long long Time_t
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam2() const
std::string const & ctppsStatus() const
std::bitset< bunchSlots+1 > const & bunchBitsetForBeam1() const
void setTargetBunches(unsigned short const &targetBunches)
std::vector< float > const & lumiPerBX() const
void setRecLumi(float const &recLumi)
float const energy() const
std::bitset< bunchSlots+1 > m_bunchConfiguration2
void setLhcState(std::string const &lhcState)
float const intensityForBeam2() const
static std::vector< unsigned short > bitsetToVector(std::bitset< LHCInfoPerFill::bunchSlots+1 > const &bs)
std::vector< std::vector< float > > m_floatParams
void setFillNumber(unsigned short lhcFill)
cond::Time_t const createTime() const
unsigned short const bunchesInBeam2() const
void setIntensityForBeam1(float const &intensity)
void setCtppsStatus(std::string const &ctppsStatus)
std::vector< float > const & beam1RF() const
std::string const & lhcComment() const
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
void setBeam2VC(std::vector< float > const &beam2VC)
void setBeam1RF(std::vector< float > const &beam1RF)
unsigned short const fillNumber() const
std::vector< unsigned short > bunchConfigurationForBeam2() const
std::bitset< bunchSlots+1 > m_bunchConfiguration1
float const instLumi() const
void setCollidingBunches(unsigned short const &collidingBunches)
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
bool equals(const LHCInfoPerFill &rhs) const
bool isBunchInBeam2(size_t const &bunch) const
std::vector< unsigned short > bunchConfigurationForBeam1() const
FillTypeId const fillType() const
static std::string particleTypeToString(LHCInfoPerFill::ParticleTypeId const &particleType)
std::vector< float > const & beam2RF() const
bool isBunchInBeam1(size_t const &bunch) const
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
void setCreationTime(cond::Time_t const &createTime)
void setLumiPerBX(std::vector< float > const &lumiPerBX)
void print(std::stringstream &ss) const
static const T & getParams(const std::vector< T > ¶ms, size_t index)
void setInstLumi(float const &instLumi)
std::vector< float > const & beam1VC() const
bool is25nsBunchSpacing() const
void setBeam2RF(std::vector< float > const &beam2RF)
float const instLumiError() const
void setEnergy(float const &energy)
static T & accessParams(std::vector< T > ¶ms, size_t index)
void setFillType(FillTypeId const &fillType)
cond::Time_t const endTime() const
boost::posix_time::ptime to_boost(Time_t iValue)