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
FillInfo Class Reference

#include <FillInfo.h>

Public Types

enum  FillType {
  UNKNOWN = 0, PROTONS = 1, IONS = 2, COSMICS = 3,
  GAP = 4
}
 
typedef FillType FillTypeId
 
enum  ParticleType {
  NONE = 0, PROTON = 1, PB82 = 2, AR18 = 3,
  D = 4, XE54 = 5
}
 
typedef ParticleType ParticleTypeId
 

Public Member Functions

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
 
cond::Time_t const endTime () const
 
float const energy () const
 
 FillInfo ()
 
 FillInfo (unsigned short const &lhcFill, bool const &fromData=true)
 
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
 
ParticleTypeId const particleTypeForBeam1 () const
 
ParticleTypeId const particleTypeForBeam2 () const
 
void print (std::stringstream &ss) const
 
void setBeamInfo (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, cond::Time_t const &createTime, cond::Time_t const &beginTime, cond::Time_t const &endTime, std::string const &scheme, std::bitset< bunchSlots+1 > const &bunchConf1, std::bitset< bunchSlots+1 > const &bunchConf2)
 
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 setEndTime (cond::Time_t const &endTime)
 
void setEnergy (float const &energy)
 
void setFill (unsigned short const &lhcFill, bool const &fromData=true)
 
void setFillType (FillTypeId const &fillType)
 
void setInjectionScheme (std::string const &injectionScheme)
 
void setIntensityForBeam1 (float const &intensity)
 
void setIntensityForBeam2 (float const &intensity)
 
void setParticleTypeForBeam1 (ParticleTypeId const &particleType)
 
void setParticleTypeForBeam2 (ParticleTypeId const &particleType)
 
void setTargetBunches (unsigned short const &targetBunches)
 
unsigned short const targetBunches () const
 
 ~FillInfo ()
 

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

cond::Time_t m_beginTime
 
float m_betastar
 
std::bitset< bunchSlots+1 > m_bunchConfiguration1
 
std::bitset< bunchSlots+1 > m_bunchConfiguration2
 
unsigned short m_bunches1
 
unsigned short m_bunches2
 
unsigned short m_collidingBunches
 
cond::Time_t m_createTime
 
float m_crossingAngle
 
cond::Time_t m_endTime
 
float m_energy
 
FillTypeId m_fillType
 
std::string m_injectionScheme
 
float m_intensity1
 
float m_intensity2
 
bool m_isData
 
unsigned short m_lhcFill
 
ParticleTypeId m_particles1
 
ParticleTypeId m_particles2
 
unsigned short m_targetBunches
 

Friends

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

Detailed Description

Definition at line 13 of file FillInfo.h.

Member Typedef Documentation

◆ FillTypeId

Definition at line 17 of file FillInfo.h.

◆ ParticleTypeId

Definition at line 18 of file FillInfo.h.

Member Enumeration Documentation

◆ FillType

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 15 of file FillInfo.h.

◆ ParticleType

Enumerator
NONE 
PROTON 
PB82 
AR18 
XE54 

Definition at line 16 of file FillInfo.h.

Constructor & Destructor Documentation

◆ FillInfo() [1/2]

FillInfo::FillInfo ( )

Definition at line 72 of file FillInfo.cc.

73  : m_isData(false),
74  m_lhcFill(0),
75  m_bunches1(0),
76  m_bunches2(0),
78  m_targetBunches(0),
82  m_crossingAngle(0.),
83  m_betastar(0.),
84  m_intensity1(0.),
85  m_intensity2(0.),
86  m_energy(0.),
87  m_createTime(0),
88  m_beginTime(0),
89  m_endTime(0),
90  m_injectionScheme("None") {}
ParticleTypeId m_particles1
Definition: FillInfo.h:153
unsigned short m_bunches1
Definition: FillInfo.h:151
unsigned short m_bunches2
Definition: FillInfo.h:151
cond::Time_t m_beginTime
Definition: FillInfo.h:155
unsigned short m_lhcFill
Definition: FillInfo.h:150
float m_crossingAngle
Definition: FillInfo.h:154
float m_betastar
Definition: FillInfo.h:154
std::string m_injectionScheme
Definition: FillInfo.h:156
cond::Time_t m_endTime
Definition: FillInfo.h:155
unsigned short m_targetBunches
Definition: FillInfo.h:151
float m_energy
Definition: FillInfo.h:154
FillTypeId m_fillType
Definition: FillInfo.h:152
bool m_isData
Definition: FillInfo.h:149
unsigned short m_collidingBunches
Definition: FillInfo.h:151
float m_intensity1
Definition: FillInfo.h:154
cond::Time_t m_createTime
Definition: FillInfo.h:155
ParticleTypeId m_particles2
Definition: FillInfo.h:153
float m_intensity2
Definition: FillInfo.h:154

◆ FillInfo() [2/2]

FillInfo::FillInfo ( unsigned short const &  lhcFill,
bool const &  fromData = true 
)

Definition at line 92 of file FillInfo.cc.

93  : m_isData(fromData),
94  m_lhcFill(lhcFill),
95  m_bunches1(0),
96  m_bunches2(0),
98  m_targetBunches(0),
102  m_crossingAngle(0.),
103  m_betastar(0.),
104  m_intensity1(0.),
105  m_intensity2(0.),
106  m_energy(0.),
107  m_createTime(0),
108  m_beginTime(0),
109  m_endTime(0),
110  m_injectionScheme("None") {}
ParticleTypeId m_particles1
Definition: FillInfo.h:153
unsigned short m_bunches1
Definition: FillInfo.h:151
unsigned short m_bunches2
Definition: FillInfo.h:151
cond::Time_t m_beginTime
Definition: FillInfo.h:155
unsigned short m_lhcFill
Definition: FillInfo.h:150
float m_crossingAngle
Definition: FillInfo.h:154
float m_betastar
Definition: FillInfo.h:154
std::string m_injectionScheme
Definition: FillInfo.h:156
cond::Time_t m_endTime
Definition: FillInfo.h:155
unsigned short m_targetBunches
Definition: FillInfo.h:151
float m_energy
Definition: FillInfo.h:154
FillTypeId m_fillType
Definition: FillInfo.h:152
bool m_isData
Definition: FillInfo.h:149
unsigned short m_collidingBunches
Definition: FillInfo.h:151
float m_intensity1
Definition: FillInfo.h:154
cond::Time_t m_createTime
Definition: FillInfo.h:155
ParticleTypeId m_particles2
Definition: FillInfo.h:153
float m_intensity2
Definition: FillInfo.h:154

◆ ~FillInfo()

FillInfo::~FillInfo ( )

Definition at line 112 of file FillInfo.cc.

112 {}

Member Function Documentation

◆ beginTime()

cond::Time_t const FillInfo::beginTime ( ) const

Definition at line 169 of file FillInfo.cc.

References m_beginTime.

Referenced by setBeginTime().

169 { return m_beginTime; }
cond::Time_t m_beginTime
Definition: FillInfo.h:155

◆ betaStar()

float const FillInfo::betaStar ( ) const

Definition at line 159 of file FillInfo.cc.

References m_betastar.

Referenced by setBetaStar().

159 { return m_betastar; }
float m_betastar
Definition: FillInfo.h:154

◆ bunchBitsetForBeam1()

std::bitset< FillInfo::bunchSlots+1 > const & FillInfo::bunchBitsetForBeam1 ( ) const
protected

Definition at line 308 of file FillInfo.cc.

References m_bunchConfiguration1.

308 { return m_bunchConfiguration1; }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:160

◆ bunchBitsetForBeam2()

std::bitset< FillInfo::bunchSlots+1 > const & FillInfo::bunchBitsetForBeam2 ( ) const
protected

Definition at line 310 of file FillInfo.cc.

References m_bunchConfiguration2.

310 { return m_bunchConfiguration2; }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:160

◆ bunchConfigurationForBeam1()

std::vector< unsigned short > FillInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 196 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

196  {
198 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:160
static std::vector< unsigned short > bitsetToVector(std::bitset< FillInfo::bunchSlots+1 > const &bs)
Definition: FillInfo.cc:8

◆ bunchConfigurationForBeam2()

std::vector< unsigned short > FillInfo::bunchConfigurationForBeam2 ( ) const

Definition at line 200 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

200  {
202 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:160
static std::vector< unsigned short > bitsetToVector(std::bitset< FillInfo::bunchSlots+1 > const &bs)
Definition: FillInfo.cc:8

◆ bunchesInBeam1()

unsigned short const FillInfo::bunchesInBeam1 ( ) const

Definition at line 143 of file FillInfo.cc.

References m_bunches1.

143 { return m_bunches1; }
unsigned short m_bunches1
Definition: FillInfo.h:151

◆ bunchesInBeam2()

unsigned short const FillInfo::bunchesInBeam2 ( ) const

Definition at line 145 of file FillInfo.cc.

References m_bunches2.

145 { return m_bunches2; }
unsigned short m_bunches2
Definition: FillInfo.h:151

◆ collidingBunches()

unsigned short const FillInfo::collidingBunches ( ) const

Definition at line 147 of file FillInfo.cc.

References m_collidingBunches.

Referenced by setCollidingBunches().

147 { return m_collidingBunches; }
unsigned short m_collidingBunches
Definition: FillInfo.h:151

◆ createTime()

cond::Time_t const FillInfo::createTime ( ) const

Definition at line 167 of file FillInfo.cc.

References m_createTime.

Referenced by setCreationTime().

167 { return m_createTime; }
cond::Time_t m_createTime
Definition: FillInfo.h:155

◆ crossingAngle()

float const FillInfo::crossingAngle ( ) const

Definition at line 157 of file FillInfo.cc.

References m_crossingAngle.

157 { return m_crossingAngle; }
float m_crossingAngle
Definition: FillInfo.h:154

◆ endTime()

cond::Time_t const FillInfo::endTime ( ) const

Definition at line 171 of file FillInfo.cc.

References m_endTime.

Referenced by setEndTime().

171 { return m_endTime; }
cond::Time_t m_endTime
Definition: FillInfo.h:155

◆ energy()

float const FillInfo::energy ( ) const

Definition at line 165 of file FillInfo.cc.

References m_energy.

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

165 { return m_energy; }
float m_energy
Definition: FillInfo.h:154

◆ fillNumber()

unsigned short const FillInfo::fillNumber ( ) const

Definition at line 139 of file FillInfo.cc.

References m_lhcFill.

139 { return m_lhcFill; }
unsigned short m_lhcFill
Definition: FillInfo.h:150

◆ fillType()

FillInfo::FillTypeId const FillInfo::fillType ( ) const

Definition at line 151 of file FillInfo.cc.

References m_fillType.

Referenced by setFillType().

151 { return m_fillType; }
FillTypeId m_fillType
Definition: FillInfo.h:152

◆ injectionScheme()

std::string const & FillInfo::injectionScheme ( ) const

Definition at line 173 of file FillInfo.cc.

References m_injectionScheme.

Referenced by setInjectionScheme().

173 { return m_injectionScheme; }
std::string m_injectionScheme
Definition: FillInfo.h:156

◆ intensityForBeam1()

float const FillInfo::intensityForBeam1 ( ) const

Definition at line 161 of file FillInfo.cc.

References m_intensity1.

161 { return m_intensity1; }
float m_intensity1
Definition: FillInfo.h:154

◆ intensityForBeam2()

float const FillInfo::intensityForBeam2 ( ) const

Definition at line 163 of file FillInfo.cc.

References m_intensity2.

163 { return m_intensity2; }
float m_intensity2
Definition: FillInfo.h:154

◆ is25nsBunchSpacing()

bool FillInfo::is25nsBunchSpacing ( ) const

Definition at line 177 of file FillInfo.cc.

References cond::serialization::equal(), m_injectionScheme, hcallasereventfilter2012_cfi::prefix, and AlCaHLTBitMon_QueryRunRegistry::string.

177  {
178  const std::string prefix("25ns");
179  return std::equal(prefix.begin(), prefix.end(), m_injectionScheme.begin());
180 }
std::string m_injectionScheme
Definition: FillInfo.h:156
bool equal(const T &first, const T &second)
Definition: Equal.h:32

◆ isBunchInBeam1()

bool FillInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 183 of file FillInfo.cc.

References m_bunchConfiguration1.

183  {
184  if (bunch == 0)
185  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
186  return m_bunchConfiguration1.test(bunch);
187 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:160

◆ isBunchInBeam2()

bool FillInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 189 of file FillInfo.cc.

References m_bunchConfiguration2.

189  {
190  if (bunch == 0)
191  throw std::out_of_range("0 not allowed"); //CMS starts counting bunch crossing from 1!
192  return m_bunchConfiguration2.test(bunch);
193 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:160

◆ isData()

bool const FillInfo::isData ( ) const

Definition at line 141 of file FillInfo.cc.

References m_isData.

141 { return m_isData; }
bool m_isData
Definition: FillInfo.h:149

◆ particleTypeForBeam1()

FillInfo::ParticleTypeId const FillInfo::particleTypeForBeam1 ( ) const

Definition at line 153 of file FillInfo.cc.

References m_particles1.

153 { return m_particles1; }
ParticleTypeId m_particles1
Definition: FillInfo.h:153

◆ particleTypeForBeam2()

FillInfo::ParticleTypeId const FillInfo::particleTypeForBeam2 ( ) const

Definition at line 155 of file FillInfo.cc.

References m_particles2.

155 { return m_particles2; }
ParticleTypeId m_particles2
Definition: FillInfo.h:153

◆ print()

void FillInfo::print ( std::stringstream &  ss) const

Definition at line 276 of file FillInfo.cc.

References bunchConfigurationForBeam1(), bunchConfigurationForBeam2(), filterCSVwithJSON::copy, fillTypeToString(), m_beginTime, m_betastar, m_bunches1, m_bunches2, m_collidingBunches, m_createTime, m_crossingAngle, m_endTime, m_energy, m_fillType, m_injectionScheme, m_intensity1, m_intensity2, m_lhcFill, m_particles1, m_particles2, m_targetBunches, particleTypeToString(), contentValuesCheck::ss, and cond::time::to_boost().

Referenced by operator<<().

276  {
277  ss << "LHC fill: " << m_lhcFill << std::endl
278  << "Bunches in Beam 1: " << m_bunches1 << std::endl
279  << "Bunches in Beam 2: " << m_bunches2 << std::endl
280  << "Colliding bunches at IP5: " << m_collidingBunches << std::endl
281  << "Target bunches at IP5: " << m_targetBunches << std::endl
282  << "Fill type: " << fillTypeToString(m_fillType) << std::endl
283  << "Particle type for Beam 1: " << particleTypeToString(m_particles1) << std::endl
284  << "Particle type for Beam 2: " << particleTypeToString(m_particles2) << std::endl
285  << "Crossing angle (urad): " << m_crossingAngle << std::endl
286  << "Beta star (cm): " << m_betastar << std::endl
287  << "Average Intensity for Beam 1 (number of charges): " << m_intensity1 << std::endl
288  << "Average Intensity for Beam 2 (number of charges): " << m_intensity2 << std::endl
289  << "Energy (GeV): " << m_energy << std::endl
290  << "Creation time of the fill: " << boost::posix_time::to_iso_extended_string(cond::time::to_boost(m_createTime))
291  << std::endl
292  << "Begin time of Stable Beam flag: "
293  << boost::posix_time::to_iso_extended_string(cond::time::to_boost(m_beginTime)) << std::endl
294  << "End time of the fill: " << boost::posix_time::to_iso_extended_string(cond::time::to_boost(m_endTime))
295  << std::endl
296  << "Injection scheme as given by LPC: " << m_injectionScheme << std::endl;
297  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
298  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
299  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
300  std::copy(bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>(ss, ", "));
301  ss << std::endl;
302  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
303  std::copy(bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>(ss, ", "));
304  ss << std::endl;
305 }
ParticleTypeId m_particles1
Definition: FillInfo.h:153
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: FillInfo.cc:200
unsigned short m_bunches1
Definition: FillInfo.h:151
unsigned short m_bunches2
Definition: FillInfo.h:151
cond::Time_t m_beginTime
Definition: FillInfo.h:155
unsigned short m_lhcFill
Definition: FillInfo.h:150
float m_crossingAngle
Definition: FillInfo.h:154
float m_betastar
Definition: FillInfo.h:154
std::string m_injectionScheme
Definition: FillInfo.h:156
cond::Time_t m_endTime
Definition: FillInfo.h:155
unsigned short m_targetBunches
Definition: FillInfo.h:151
float m_energy
Definition: FillInfo.h:154
std::vector< unsigned short > bunchConfigurationForBeam1() const
Definition: FillInfo.cc:196
FillTypeId m_fillType
Definition: FillInfo.h:152
unsigned short m_collidingBunches
Definition: FillInfo.h:151
float m_intensity1
Definition: FillInfo.h:154
cond::Time_t m_createTime
Definition: FillInfo.h:155
static std::string fillTypeToString(FillInfo::FillTypeId const &fillType)
Definition: FillInfo.cc:20
static std::string particleTypeToString(FillInfo::ParticleTypeId const &particleType)
Definition: FillInfo.cc:45
ParticleTypeId m_particles2
Definition: FillInfo.h:153
boost::posix_time::ptime to_boost(Time_t iValue)
float m_intensity2
Definition: FillInfo.h:154

◆ serialize()

template<class Archive >
void FillInfo::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setBeamInfo()

void FillInfo::setBeamInfo ( 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,
cond::Time_t const &  createTime,
cond::Time_t const &  beginTime,
cond::Time_t const &  endTime,
std::string const &  scheme,
std::bitset< bunchSlots+1 > const &  bunchConf1,
std::bitset< bunchSlots+1 > const &  bunchConf2 
)

Definition at line 238 of file FillInfo.cc.

References setBeginTime(), setBetaStar(), setBunchBitsetForBeam1(), setBunchBitsetForBeam2(), setBunchesInBeam1(), setBunchesInBeam2(), setCollidingBunches(), setCreationTime(), setCrossingAngle(), setEndTime(), setEnergy(), setFillType(), setInjectionScheme(), setIntensityForBeam1(), setIntensityForBeam2(), setParticleTypeForBeam1(), setParticleTypeForBeam2(), and setTargetBunches().

Referenced by FillInfoPopConSourceHandler::getNewObjects().

255  {
256  this->setBunchesInBeam1(bunches1);
257  this->setBunchesInBeam2(bunches2);
260  this->setFillType(fillType);
261  this->setParticleTypeForBeam1(particleType1);
262  this->setParticleTypeForBeam2(particleType2);
263  this->setCrossingAngle(angle);
264  this->setBetaStar(beta);
265  this->setIntensityForBeam1(intensity1);
266  this->setIntensityForBeam2(intensity2);
267  this->setEnergy(energy);
269  this->setBeginTime(beginTime);
270  this->setEndTime(endTime);
271  this->setInjectionScheme(scheme);
272  this->setBunchBitsetForBeam1(bunchConf1);
273  this->setBunchBitsetForBeam2(bunchConf2);
274 }
void setBetaStar(float const &betaStar)
Definition: FillInfo.cc:221
void setCrossingAngle(float const &angle)
Definition: FillInfo.cc:219
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: FillInfo.cc:209
float const energy() const
Definition: FillInfo.cc:165
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:317
void setIntensityForBeam2(float const &intensity)
Definition: FillInfo.cc:225
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:313
void setFillType(FillTypeId const &fillType)
Definition: FillInfo.cc:213
void setIntensityForBeam1(float const &intensity)
Definition: FillInfo.cc:223
void setBunchesInBeam1(unsigned short const &bunches)
Definition: FillInfo.cc:205
cond::Time_t const beginTime() const
Definition: FillInfo.cc:169
cond::Time_t const endTime() const
Definition: FillInfo.cc:171
unsigned short const collidingBunches() const
Definition: FillInfo.cc:147
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: FillInfo.cc:217
void setEndTime(cond::Time_t const &endTime)
Definition: FillInfo.cc:233
void setTargetBunches(unsigned short const &targetBunches)
Definition: FillInfo.cc:211
FillTypeId const fillType() const
Definition: FillInfo.cc:151
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: FillInfo.cc:215
cond::Time_t const createTime() const
Definition: FillInfo.cc:167
void setBeginTime(cond::Time_t const &beginTime)
Definition: FillInfo.cc:231
void setBunchesInBeam2(unsigned short const &bunches)
Definition: FillInfo.cc:207
void setEnergy(float const &energy)
Definition: FillInfo.cc:227
unsigned short const targetBunches() const
Definition: FillInfo.cc:149
void setCreationTime(cond::Time_t const &createTime)
Definition: FillInfo.cc:229
void setInjectionScheme(std::string const &injectionScheme)
Definition: FillInfo.cc:235
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setBeginTime()

void FillInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 231 of file FillInfo.cc.

References beginTime(), and m_beginTime.

Referenced by setBeamInfo().

231 { m_beginTime = beginTime; }
cond::Time_t m_beginTime
Definition: FillInfo.h:155
cond::Time_t const beginTime() const
Definition: FillInfo.cc:169

◆ setBetaStar()

void FillInfo::setBetaStar ( float const &  betaStar)

Definition at line 221 of file FillInfo.cc.

References betaStar(), and m_betastar.

Referenced by setBeamInfo().

221 { m_betastar = betaStar; }
float m_betastar
Definition: FillInfo.h:154
float const betaStar() const
Definition: FillInfo.cc:159

◆ setBunchBitsetForBeam1()

void FillInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 313 of file FillInfo.cc.

References m_bunchConfiguration1.

Referenced by setBeamInfo().

313  {
314  m_bunchConfiguration1 = bunchConfiguration;
315 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:160

◆ setBunchBitsetForBeam2()

void FillInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 317 of file FillInfo.cc.

References m_bunchConfiguration2.

Referenced by setBeamInfo().

317  {
318  m_bunchConfiguration2 = bunchConfiguration;
319 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:160

◆ setBunchesInBeam1()

void FillInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 205 of file FillInfo.cc.

References m_bunches1.

Referenced by setBeamInfo().

205 { m_bunches1 = bunches; }
unsigned short m_bunches1
Definition: FillInfo.h:151

◆ setBunchesInBeam2()

void FillInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 207 of file FillInfo.cc.

References m_bunches2.

Referenced by setBeamInfo().

207 { m_bunches2 = bunches; }
unsigned short m_bunches2
Definition: FillInfo.h:151

◆ setCollidingBunches()

void FillInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 209 of file FillInfo.cc.

References collidingBunches(), and m_collidingBunches.

Referenced by setBeamInfo().

unsigned short const collidingBunches() const
Definition: FillInfo.cc:147
unsigned short m_collidingBunches
Definition: FillInfo.h:151

◆ setCreationTime()

void FillInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 229 of file FillInfo.cc.

References createTime(), and m_createTime.

Referenced by setBeamInfo().

cond::Time_t m_createTime
Definition: FillInfo.h:155
cond::Time_t const createTime() const
Definition: FillInfo.cc:167

◆ setCrossingAngle()

void FillInfo::setCrossingAngle ( float const &  angle)

Definition at line 219 of file FillInfo.cc.

References angle(), and m_crossingAngle.

Referenced by setBeamInfo().

219 { m_crossingAngle = angle; }
float m_crossingAngle
Definition: FillInfo.h:154
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

◆ setEndTime()

void FillInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 233 of file FillInfo.cc.

References endTime(), and m_endTime.

Referenced by setBeamInfo().

233 { m_endTime = endTime; }
cond::Time_t const endTime() const
Definition: FillInfo.cc:171
cond::Time_t m_endTime
Definition: FillInfo.h:155

◆ setEnergy()

void FillInfo::setEnergy ( float const &  energy)

Definition at line 227 of file FillInfo.cc.

References energy(), and m_energy.

Referenced by setBeamInfo().

227 { m_energy = energy; }
float const energy() const
Definition: FillInfo.cc:165
float m_energy
Definition: FillInfo.h:154

◆ setFill()

void FillInfo::setFill ( unsigned short const &  lhcFill,
bool const &  fromData = true 
)

Definition at line 115 of file FillInfo.cc.

References m_beginTime, m_betastar, m_bunchConfiguration1, m_bunchConfiguration2, m_bunches1, m_bunches2, m_collidingBunches, m_createTime, m_crossingAngle, m_endTime, m_energy, m_fillType, m_injectionScheme, m_intensity1, m_intensity2, m_isData, m_lhcFill, m_particles1, m_particles2, m_targetBunches, NONE, and SiStripSubdetector::UNKNOWN.

115  {
116  m_isData = fromData;
117  m_lhcFill = lhcFill;
118  m_bunches1 = 0;
119  m_bunches2 = 0;
120  m_collidingBunches = 0;
121  m_targetBunches = 0;
125  m_crossingAngle = 0.;
126  m_betastar = 0.;
127  m_intensity1 = 0;
128  m_intensity2 = 0;
129  m_energy = 0.;
130  m_createTime = 0;
131  m_beginTime = 0;
132  m_endTime = 0;
133  m_injectionScheme = "None";
134  m_bunchConfiguration1.reset();
135  m_bunchConfiguration2.reset();
136 }
ParticleTypeId m_particles1
Definition: FillInfo.h:153
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:160
unsigned short m_bunches1
Definition: FillInfo.h:151
unsigned short m_bunches2
Definition: FillInfo.h:151
cond::Time_t m_beginTime
Definition: FillInfo.h:155
unsigned short m_lhcFill
Definition: FillInfo.h:150
float m_crossingAngle
Definition: FillInfo.h:154
float m_betastar
Definition: FillInfo.h:154
std::string m_injectionScheme
Definition: FillInfo.h:156
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:160
cond::Time_t m_endTime
Definition: FillInfo.h:155
unsigned short m_targetBunches
Definition: FillInfo.h:151
float m_energy
Definition: FillInfo.h:154
FillTypeId m_fillType
Definition: FillInfo.h:152
bool m_isData
Definition: FillInfo.h:149
unsigned short m_collidingBunches
Definition: FillInfo.h:151
float m_intensity1
Definition: FillInfo.h:154
cond::Time_t m_createTime
Definition: FillInfo.h:155
ParticleTypeId m_particles2
Definition: FillInfo.h:153
float m_intensity2
Definition: FillInfo.h:154

◆ setFillType()

void FillInfo::setFillType ( FillInfo::FillTypeId const &  fillType)

Definition at line 213 of file FillInfo.cc.

References fillType(), and m_fillType.

Referenced by setBeamInfo().

213 { m_fillType = fillType; }
FillTypeId m_fillType
Definition: FillInfo.h:152
FillTypeId const fillType() const
Definition: FillInfo.cc:151

◆ setInjectionScheme()

void FillInfo::setInjectionScheme ( std::string const &  injectionScheme)

Definition at line 235 of file FillInfo.cc.

References injectionScheme(), and m_injectionScheme.

Referenced by setBeamInfo().

std::string m_injectionScheme
Definition: FillInfo.h:156
std::string const & injectionScheme() const
Definition: FillInfo.cc:173

◆ setIntensityForBeam1()

void FillInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 223 of file FillInfo.cc.

References m_intensity1.

Referenced by setBeamInfo().

223 { m_intensity1 = intensity; }
float m_intensity1
Definition: FillInfo.h:154

◆ setIntensityForBeam2()

void FillInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 225 of file FillInfo.cc.

References m_intensity2.

Referenced by setBeamInfo().

225 { m_intensity2 = intensity; }
float m_intensity2
Definition: FillInfo.h:154

◆ setParticleTypeForBeam1()

void FillInfo::setParticleTypeForBeam1 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 215 of file FillInfo.cc.

References m_particles1, and PbPb_ZMuSkimMuonDPG_cff::particleType.

Referenced by setBeamInfo().

◆ setParticleTypeForBeam2()

void FillInfo::setParticleTypeForBeam2 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 217 of file FillInfo.cc.

References m_particles2, and PbPb_ZMuSkimMuonDPG_cff::particleType.

Referenced by setBeamInfo().

◆ setTargetBunches()

void FillInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 211 of file FillInfo.cc.

References m_targetBunches, and targetBunches().

Referenced by setBeamInfo().

unsigned short m_targetBunches
Definition: FillInfo.h:151
unsigned short const targetBunches() const
Definition: FillInfo.cc:149

◆ targetBunches()

unsigned short const FillInfo::targetBunches ( ) const

Definition at line 149 of file FillInfo.cc.

References m_targetBunches.

Referenced by setTargetBunches().

149 { return m_targetBunches; }
unsigned short m_targetBunches
Definition: FillInfo.h:151

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 162 of file FillInfo.h.

◆ cond::serialization::access

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

Definition at line 162 of file FillInfo.h.

Member Data Documentation

◆ availableBunchSlots

size_t const FillInfo::availableBunchSlots = 2808
static

Definition at line 27 of file FillInfo.h.

Referenced by FillInfoPopConSourceHandler::getNewObjects().

◆ bunchSlots

size_t const FillInfo::bunchSlots = 3564
static

Definition at line 24 of file FillInfo.h.

◆ m_beginTime

cond::Time_t FillInfo::m_beginTime
private

Definition at line 155 of file FillInfo.h.

Referenced by beginTime(), print(), setBeginTime(), and setFill().

◆ m_betastar

float FillInfo::m_betastar
private

Definition at line 154 of file FillInfo.h.

Referenced by betaStar(), print(), setBetaStar(), and setFill().

◆ m_bunchConfiguration1

std::bitset<bunchSlots + 1> FillInfo::m_bunchConfiguration1
private

◆ m_bunchConfiguration2

std::bitset<bunchSlots + 1> FillInfo::m_bunchConfiguration2
private

◆ m_bunches1

unsigned short FillInfo::m_bunches1
private

Definition at line 151 of file FillInfo.h.

Referenced by bunchesInBeam1(), print(), setBunchesInBeam1(), and setFill().

◆ m_bunches2

unsigned short FillInfo::m_bunches2
private

Definition at line 151 of file FillInfo.h.

Referenced by bunchesInBeam2(), print(), setBunchesInBeam2(), and setFill().

◆ m_collidingBunches

unsigned short FillInfo::m_collidingBunches
private

Definition at line 151 of file FillInfo.h.

Referenced by collidingBunches(), print(), setCollidingBunches(), and setFill().

◆ m_createTime

cond::Time_t FillInfo::m_createTime
private

Definition at line 155 of file FillInfo.h.

Referenced by createTime(), print(), setCreationTime(), and setFill().

◆ m_crossingAngle

float FillInfo::m_crossingAngle
private

Definition at line 154 of file FillInfo.h.

Referenced by crossingAngle(), print(), setCrossingAngle(), and setFill().

◆ m_endTime

cond::Time_t FillInfo::m_endTime
private

Definition at line 155 of file FillInfo.h.

Referenced by endTime(), print(), setEndTime(), and setFill().

◆ m_energy

float FillInfo::m_energy
private

Definition at line 154 of file FillInfo.h.

Referenced by energy(), print(), setEnergy(), and setFill().

◆ m_fillType

FillTypeId FillInfo::m_fillType
private

Definition at line 152 of file FillInfo.h.

Referenced by fillType(), print(), setFill(), and setFillType().

◆ m_injectionScheme

std::string FillInfo::m_injectionScheme
private

Definition at line 156 of file FillInfo.h.

Referenced by injectionScheme(), is25nsBunchSpacing(), print(), setFill(), and setInjectionScheme().

◆ m_intensity1

float FillInfo::m_intensity1
private

Definition at line 154 of file FillInfo.h.

Referenced by intensityForBeam1(), print(), setFill(), and setIntensityForBeam1().

◆ m_intensity2

float FillInfo::m_intensity2
private

Definition at line 154 of file FillInfo.h.

Referenced by intensityForBeam2(), print(), setFill(), and setIntensityForBeam2().

◆ m_isData

bool FillInfo::m_isData
private

Definition at line 149 of file FillInfo.h.

Referenced by isData(), and setFill().

◆ m_lhcFill

unsigned short FillInfo::m_lhcFill
private

Definition at line 150 of file FillInfo.h.

Referenced by fillNumber(), print(), and setFill().

◆ m_particles1

ParticleTypeId FillInfo::m_particles1
private

Definition at line 153 of file FillInfo.h.

Referenced by particleTypeForBeam1(), print(), setFill(), and setParticleTypeForBeam1().

◆ m_particles2

ParticleTypeId FillInfo::m_particles2
private

Definition at line 153 of file FillInfo.h.

Referenced by particleTypeForBeam2(), print(), setFill(), and setParticleTypeForBeam2().

◆ m_targetBunches

unsigned short FillInfo::m_targetBunches
private

Definition at line 151 of file FillInfo.h.

Referenced by print(), setFill(), setTargetBunches(), and targetBunches().