CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes
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 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 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
 

Detailed Description

Definition at line 8 of file FillInfo.h.

Member Typedef Documentation

Definition at line 12 of file FillInfo.h.

Definition at line 13 of file FillInfo.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 10 of file FillInfo.h.

Enumerator
NONE 
PROTON 
PB82 
AR18 
D 
XE54 

Definition at line 11 of file FillInfo.h.

11 { NONE = 0, PROTON = 1, PB82 = 2, AR18 = 3, D = 4, XE54 = 5 };

Constructor & Destructor Documentation

FillInfo::FillInfo ( )

Definition at line 72 of file FillInfo.cc.

72  : m_isData( false )
73  , m_lhcFill( 0 )
74  , m_bunches1( 0 )
75  , m_bunches2( 0 )
76  , m_collidingBunches( 0 )
77  , m_targetBunches( 0 )
81  , m_crossingAngle( 0. )
82  , m_betastar( 0. )
83  , m_intensity1( 0. )
84  , m_intensity2( 0. )
85  , m_energy( 0. )
86  , m_createTime( 0 )
87  , m_beginTime( 0 )
88  , m_endTime( 0 )
89  , m_injectionScheme( "None" )
90 {}
ParticleTypeId m_particles1
Definition: FillInfo.h:144
unsigned short m_bunches1
Definition: FillInfo.h:142
unsigned short m_bunches2
Definition: FillInfo.h:142
cond::Time_t m_beginTime
Definition: FillInfo.h:146
0: Unidentified isolated particle
Definition: ParticleCode.h:19
unsigned short m_lhcFill
Definition: FillInfo.h:141
float m_crossingAngle
Definition: FillInfo.h:145
float m_betastar
Definition: FillInfo.h:145
std::string m_injectionScheme
Definition: FillInfo.h:147
cond::Time_t m_endTime
Definition: FillInfo.h:146
unsigned short m_targetBunches
Definition: FillInfo.h:142
float m_energy
Definition: FillInfo.h:145
FillTypeId m_fillType
Definition: FillInfo.h:143
bool m_isData
Definition: FillInfo.h:140
unsigned short m_collidingBunches
Definition: FillInfo.h:142
float m_intensity1
Definition: FillInfo.h:145
cond::Time_t m_createTime
Definition: FillInfo.h:146
ParticleTypeId m_particles2
Definition: FillInfo.h:144
float m_intensity2
Definition: FillInfo.h:145
FillInfo::FillInfo ( unsigned short const &  lhcFill,
bool const &  fromData = true 
)

Definition at line 92 of file FillInfo.cc.

92  : m_isData( fromData )
93  , m_lhcFill( lhcFill )
94  , m_bunches1( 0 )
95  , m_bunches2( 0 )
96  , m_collidingBunches( 0 )
97  , m_targetBunches( 0 )
101  , m_crossingAngle( 0. )
102  , m_betastar( 0. )
103  , m_intensity1( 0. )
104  , m_intensity2( 0. )
105  , m_energy( 0. )
106  , m_createTime( 0 )
107  , m_beginTime( 0 )
108  , m_endTime( 0 )
109  , m_injectionScheme( "None" )
110 {}
ParticleTypeId m_particles1
Definition: FillInfo.h:144
unsigned short m_bunches1
Definition: FillInfo.h:142
unsigned short m_bunches2
Definition: FillInfo.h:142
cond::Time_t m_beginTime
Definition: FillInfo.h:146
0: Unidentified isolated particle
Definition: ParticleCode.h:19
unsigned short m_lhcFill
Definition: FillInfo.h:141
float m_crossingAngle
Definition: FillInfo.h:145
float m_betastar
Definition: FillInfo.h:145
std::string m_injectionScheme
Definition: FillInfo.h:147
cond::Time_t m_endTime
Definition: FillInfo.h:146
unsigned short m_targetBunches
Definition: FillInfo.h:142
float m_energy
Definition: FillInfo.h:145
FillTypeId m_fillType
Definition: FillInfo.h:143
bool m_isData
Definition: FillInfo.h:140
unsigned short m_collidingBunches
Definition: FillInfo.h:142
float m_intensity1
Definition: FillInfo.h:145
cond::Time_t m_createTime
Definition: FillInfo.h:146
ParticleTypeId m_particles2
Definition: FillInfo.h:144
float m_intensity2
Definition: FillInfo.h:145
FillInfo::~FillInfo ( )

Definition at line 112 of file FillInfo.cc.

112 {}

Member Function Documentation

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

Definition at line 199 of file FillInfo.cc.

References m_beginTime.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setBeginTime().

199  {
200  return m_beginTime;
201 }
cond::Time_t m_beginTime
Definition: FillInfo.h:146
float const FillInfo::betaStar ( ) const

Definition at line 179 of file FillInfo.cc.

References m_betastar.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setBetaStar().

179  {
180  return m_betastar;
181 }
float m_betastar
Definition: FillInfo.h:145
std::bitset< FillInfo::bunchSlots+1 > const & FillInfo::bunchBitsetForBeam1 ( ) const
protected

Definition at line 366 of file FillInfo.cc.

References m_bunchConfiguration1.

366  {
367  return m_bunchConfiguration1;
368 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:151
std::bitset< FillInfo::bunchSlots+1 > const & FillInfo::bunchBitsetForBeam2 ( ) const
protected

Definition at line 370 of file FillInfo.cc.

References m_bunchConfiguration2.

370  {
371  return m_bunchConfiguration2;
372 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:151
std::vector< unsigned short > FillInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 225 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

225  {
227 }
static std::vector< unsigned short > bitsetToVector(std::bitset< FillInfo::bunchSlots+1 > const &bs)
Definition: FillInfo.cc:8
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:151
std::vector< unsigned short > FillInfo::bunchConfigurationForBeam2 ( ) const

Definition at line 229 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

229  {
231 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:151
static std::vector< unsigned short > bitsetToVector(std::bitset< FillInfo::bunchSlots+1 > const &bs)
Definition: FillInfo.cc:8
unsigned short const FillInfo::bunchesInBeam1 ( ) const

Definition at line 147 of file FillInfo.cc.

References m_bunches1.

Referenced by cond::ValueExtractor< FillInfo >::compute().

147  {
148  return m_bunches1;
149 }
unsigned short m_bunches1
Definition: FillInfo.h:142
unsigned short const FillInfo::bunchesInBeam2 ( ) const

Definition at line 151 of file FillInfo.cc.

References m_bunches2.

Referenced by cond::ValueExtractor< FillInfo >::compute().

151  {
152  return m_bunches2;
153 }
unsigned short m_bunches2
Definition: FillInfo.h:142
unsigned short const FillInfo::collidingBunches ( ) const

Definition at line 155 of file FillInfo.cc.

References m_collidingBunches.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setCollidingBunches().

155  {
156  return m_collidingBunches;
157 }
unsigned short m_collidingBunches
Definition: FillInfo.h:142
cond::Time_t const FillInfo::createTime ( ) const

Definition at line 195 of file FillInfo.cc.

References m_createTime.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setCreationTime().

195  {
196  return m_createTime;
197 }
cond::Time_t m_createTime
Definition: FillInfo.h:146
float const FillInfo::crossingAngle ( ) const

Definition at line 175 of file FillInfo.cc.

References m_crossingAngle.

Referenced by cond::ValueExtractor< FillInfo >::compute().

175  {
176  return m_crossingAngle;
177 }
float m_crossingAngle
Definition: FillInfo.h:145
cond::Time_t const FillInfo::endTime ( ) const

Definition at line 203 of file FillInfo.cc.

References m_endTime.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setEndTime().

203  {
204  return m_endTime;
205 }
cond::Time_t m_endTime
Definition: FillInfo.h:146
float const FillInfo::energy ( ) const

Definition at line 191 of file FillInfo.cc.

References m_energy.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setEnergy().

191  {
192  return m_energy;
193 }
float m_energy
Definition: FillInfo.h:145
unsigned short const FillInfo::fillNumber ( ) const

Definition at line 139 of file FillInfo.cc.

References m_lhcFill.

Referenced by cond::ValueExtractor< FillInfo >::compute().

139  {
140  return m_lhcFill;
141 }
unsigned short m_lhcFill
Definition: FillInfo.h:141
FillInfo::FillTypeId const FillInfo::fillType ( ) const

Definition at line 163 of file FillInfo.cc.

References m_fillType.

Referenced by setFillType().

163  {
164  return m_fillType;
165 }
FillTypeId m_fillType
Definition: FillInfo.h:143
std::string const & FillInfo::injectionScheme ( ) const

Definition at line 207 of file FillInfo.cc.

References m_injectionScheme.

Referenced by setInjectionScheme().

207  {
208  return m_injectionScheme;
209 }
std::string m_injectionScheme
Definition: FillInfo.h:147
float const FillInfo::intensityForBeam1 ( ) const

Definition at line 183 of file FillInfo.cc.

References m_intensity1.

Referenced by cond::ValueExtractor< FillInfo >::compute().

183  {
184  return m_intensity1;
185 }
float m_intensity1
Definition: FillInfo.h:145
float const FillInfo::intensityForBeam2 ( ) const

Definition at line 187 of file FillInfo.cc.

References m_intensity2.

Referenced by cond::ValueExtractor< FillInfo >::compute().

187  {
188  return m_intensity2;
189 }
float m_intensity2
Definition: FillInfo.h:145
bool FillInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 212 of file FillInfo.cc.

References m_bunchConfiguration1.

212  {
213  if( bunch == 0 )
214  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
215  return m_bunchConfiguration1.test( bunch );
216 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:151
bool FillInfo::isBunchInBeam2 ( size_t const &  bunch) const

Definition at line 218 of file FillInfo.cc.

References m_bunchConfiguration2.

218  {
219  if( bunch == 0 )
220  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
221  return m_bunchConfiguration2.test( bunch );
222 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:151
bool const FillInfo::isData ( ) const

Definition at line 143 of file FillInfo.cc.

References m_isData.

143  {
144  return m_isData;
145 }
bool m_isData
Definition: FillInfo.h:140
FillInfo::ParticleTypeId const FillInfo::particleTypeForBeam1 ( ) const

Definition at line 167 of file FillInfo.cc.

References m_particles1.

167  {
168  return m_particles1;
169 }
ParticleTypeId m_particles1
Definition: FillInfo.h:144
FillInfo::ParticleTypeId const FillInfo::particleTypeForBeam2 ( ) const

Definition at line 171 of file FillInfo.cc.

References m_particles2.

171  {
172  return m_particles2;
173 }
ParticleTypeId m_particles2
Definition: FillInfo.h:144
void FillInfo::print ( std::stringstream &  ss) const

Definition at line 337 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(), and cond::time::to_boost().

Referenced by operator<<().

337  {
338  ss << "LHC fill: " << m_lhcFill << std::endl
339  << "Bunches in Beam 1: " << m_bunches1 << std::endl
340  << "Bunches in Beam 2: " << m_bunches2 << std::endl
341  << "Colliding bunches at IP5: " << m_collidingBunches << std::endl
342  << "Target bunches at IP5: " << m_targetBunches << std::endl
343  << "Fill type: " << fillTypeToString( m_fillType ) << std::endl
344  << "Particle type for Beam 1: " << particleTypeToString( m_particles1 ) << std::endl
345  << "Particle type for Beam 2: " << particleTypeToString( m_particles2 ) << std::endl
346  << "Crossing angle (urad): " << m_crossingAngle << std::endl
347  << "Beta star (cm): " << m_betastar << std::endl
348  << "Average Intensity for Beam 1 (number of charges): " << m_intensity1 << std::endl
349  << "Average Intensity for Beam 2 (number of charges): " << m_intensity2 << std::endl
350  << "Energy (GeV): " << m_energy << std::endl
351  << "Creation time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_createTime ) ) << std::endl
352  << "Begin time of Stable Beam flag: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_beginTime ) ) << std::endl
353  << "End time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_endTime ) ) << std::endl
354  << "Injection scheme as given by LPC: " << m_injectionScheme << std::endl;
355  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
356  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
357  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
358  std::copy( bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
359  ss << std::endl;
360  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
361  std::copy( bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
362  ss << std::endl;
363 }
ParticleTypeId m_particles1
Definition: FillInfo.h:144
unsigned short m_bunches1
Definition: FillInfo.h:142
unsigned short m_bunches2
Definition: FillInfo.h:142
cond::Time_t m_beginTime
Definition: FillInfo.h:146
unsigned short m_lhcFill
Definition: FillInfo.h:141
float m_crossingAngle
Definition: FillInfo.h:145
float m_betastar
Definition: FillInfo.h:145
std::string m_injectionScheme
Definition: FillInfo.h:147
cond::Time_t m_endTime
Definition: FillInfo.h:146
unsigned short m_targetBunches
Definition: FillInfo.h:142
float m_energy
Definition: FillInfo.h:145
FillTypeId m_fillType
Definition: FillInfo.h:143
unsigned short m_collidingBunches
Definition: FillInfo.h:142
float m_intensity1
Definition: FillInfo.h:145
cond::Time_t m_createTime
Definition: FillInfo.h:146
static std::string fillTypeToString(FillInfo::FillTypeId const &fillType)
Definition: FillInfo.cc:20
static std::string particleTypeToString(FillInfo::ParticleTypeId const &particleType)
Definition: FillInfo.cc:45
std::vector< unsigned short > bunchConfigurationForBeam1() const
Definition: FillInfo.cc:225
ParticleTypeId m_particles2
Definition: FillInfo.h:144
boost::posix_time::ptime to_boost(Time_t iValue)
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: FillInfo.cc:229
float m_intensity2
Definition: FillInfo.h:145
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 299 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().

316  {
317  this->setBunchesInBeam1( bunches1 );
318  this->setBunchesInBeam2( bunches2 );
321  this->setFillType( fillType );
322  this->setParticleTypeForBeam1( particleType1 );
323  this->setParticleTypeForBeam2( particleType2 );
324  this->setCrossingAngle( angle );
325  this->setBetaStar( beta );
326  this->setIntensityForBeam1( intensity1 );
327  this->setIntensityForBeam2( intensity2 );
328  this->setEnergy( energy );
329  this->setCreationTime( createTime );
330  this->setBeginTime( beginTime );
331  this->setEndTime( endTime );
332  this->setInjectionScheme( scheme );
333  this->setBunchBitsetForBeam1( bunchConf1 );
334  this->setBunchBitsetForBeam2( bunchConf2 );
335 }
const double beta
void setBetaStar(float const &betaStar)
Definition: FillInfo.cc:266
void setCrossingAngle(float const &angle)
Definition: FillInfo.cc:262
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: FillInfo.cc:242
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:379
void setIntensityForBeam2(float const &intensity)
Definition: FillInfo.cc:274
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:375
cond::Time_t const beginTime() const
Definition: FillInfo.cc:199
void setFillType(FillTypeId const &fillType)
Definition: FillInfo.cc:250
void setIntensityForBeam1(float const &intensity)
Definition: FillInfo.cc:270
void setBunchesInBeam1(unsigned short const &bunches)
Definition: FillInfo.cc:234
FillTypeId const fillType() const
Definition: FillInfo.cc:163
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: FillInfo.cc:258
void setEndTime(cond::Time_t const &endTime)
Definition: FillInfo.cc:290
void setTargetBunches(unsigned short const &targetBunches)
Definition: FillInfo.cc:246
cond::Time_t const createTime() const
Definition: FillInfo.cc:195
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: FillInfo.cc:254
cond::Time_t const endTime() const
Definition: FillInfo.cc:203
float const energy() const
Definition: FillInfo.cc:191
void setBeginTime(cond::Time_t const &beginTime)
Definition: FillInfo.cc:286
void setBunchesInBeam2(unsigned short const &bunches)
Definition: FillInfo.cc:238
void setEnergy(float const &energy)
Definition: FillInfo.cc:278
unsigned short const targetBunches() const
Definition: FillInfo.cc:159
unsigned short const collidingBunches() const
Definition: FillInfo.cc:155
void setCreationTime(cond::Time_t const &createTime)
Definition: FillInfo.cc:282
void setInjectionScheme(std::string const &injectionScheme)
Definition: FillInfo.cc:294
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void FillInfo::setBeginTime ( cond::Time_t const &  beginTime)

Definition at line 286 of file FillInfo.cc.

References beginTime(), and m_beginTime.

Referenced by setBeamInfo().

286  {
288 }
cond::Time_t m_beginTime
Definition: FillInfo.h:146
cond::Time_t const beginTime() const
Definition: FillInfo.cc:199
void FillInfo::setBetaStar ( float const &  betaStar)

Definition at line 266 of file FillInfo.cc.

References betaStar(), and m_betastar.

Referenced by setBeamInfo().

266  {
268 }
float m_betastar
Definition: FillInfo.h:145
float const betaStar() const
Definition: FillInfo.cc:179
void FillInfo::setBunchBitsetForBeam1 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 375 of file FillInfo.cc.

References m_bunchConfiguration1.

Referenced by setBeamInfo().

375  {
376  m_bunchConfiguration1 = bunchConfiguration;
377 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:151
void FillInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 379 of file FillInfo.cc.

References m_bunchConfiguration2.

Referenced by setBeamInfo().

379  {
380  m_bunchConfiguration2 = bunchConfiguration;
381 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:151
void FillInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 234 of file FillInfo.cc.

References m_bunches1.

Referenced by setBeamInfo().

234  {
235  m_bunches1 = bunches;
236 }
unsigned short m_bunches1
Definition: FillInfo.h:142
void FillInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 238 of file FillInfo.cc.

References m_bunches2.

Referenced by setBeamInfo().

238  {
239  m_bunches2 = bunches;
240 }
unsigned short m_bunches2
Definition: FillInfo.h:142
void FillInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 242 of file FillInfo.cc.

References collidingBunches(), and m_collidingBunches.

Referenced by setBeamInfo().

242  {
244 }
unsigned short m_collidingBunches
Definition: FillInfo.h:142
unsigned short const collidingBunches() const
Definition: FillInfo.cc:155
void FillInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 282 of file FillInfo.cc.

References createTime(), and m_createTime.

Referenced by setBeamInfo().

282  {
284 }
cond::Time_t const createTime() const
Definition: FillInfo.cc:195
cond::Time_t m_createTime
Definition: FillInfo.h:146
void FillInfo::setCrossingAngle ( float const &  angle)

Definition at line 262 of file FillInfo.cc.

References angle(), and m_crossingAngle.

Referenced by setBeamInfo().

262  {
264 }
float m_crossingAngle
Definition: FillInfo.h:145
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void FillInfo::setEndTime ( cond::Time_t const &  endTime)

Definition at line 290 of file FillInfo.cc.

References endTime(), and m_endTime.

Referenced by setBeamInfo().

290  {
291  m_endTime = endTime;
292 }
cond::Time_t m_endTime
Definition: FillInfo.h:146
cond::Time_t const endTime() const
Definition: FillInfo.cc:203
void FillInfo::setEnergy ( float const &  energy)

Definition at line 278 of file FillInfo.cc.

References energy(), and m_energy.

Referenced by setBeamInfo().

278  {
279  m_energy = energy;
280 }
float m_energy
Definition: FillInfo.h:145
float const energy() const
Definition: FillInfo.cc:191
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 pat::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:144
unsigned short m_bunches1
Definition: FillInfo.h:142
unsigned short m_bunches2
Definition: FillInfo.h:142
cond::Time_t m_beginTime
Definition: FillInfo.h:146
0: Unidentified isolated particle
Definition: ParticleCode.h:19
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:151
unsigned short m_lhcFill
Definition: FillInfo.h:141
float m_crossingAngle
Definition: FillInfo.h:145
float m_betastar
Definition: FillInfo.h:145
std::string m_injectionScheme
Definition: FillInfo.h:147
cond::Time_t m_endTime
Definition: FillInfo.h:146
unsigned short m_targetBunches
Definition: FillInfo.h:142
float m_energy
Definition: FillInfo.h:145
FillTypeId m_fillType
Definition: FillInfo.h:143
bool m_isData
Definition: FillInfo.h:140
unsigned short m_collidingBunches
Definition: FillInfo.h:142
float m_intensity1
Definition: FillInfo.h:145
cond::Time_t m_createTime
Definition: FillInfo.h:146
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:151
ParticleTypeId m_particles2
Definition: FillInfo.h:144
float m_intensity2
Definition: FillInfo.h:145
void FillInfo::setFillType ( FillInfo::FillTypeId const &  fillType)

Definition at line 250 of file FillInfo.cc.

References fillType(), and m_fillType.

Referenced by setBeamInfo().

250  {
252 }
FillTypeId const fillType() const
Definition: FillInfo.cc:163
FillTypeId m_fillType
Definition: FillInfo.h:143
void FillInfo::setInjectionScheme ( std::string const &  injectionScheme)

Definition at line 294 of file FillInfo.cc.

References injectionScheme(), and m_injectionScheme.

Referenced by setBeamInfo().

294  {
296 }
std::string m_injectionScheme
Definition: FillInfo.h:147
std::string const & injectionScheme() const
Definition: FillInfo.cc:207
void FillInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 270 of file FillInfo.cc.

References m_intensity1.

Referenced by setBeamInfo().

270  {
271  m_intensity1 = intensity;
272 }
float m_intensity1
Definition: FillInfo.h:145
void FillInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 274 of file FillInfo.cc.

References m_intensity2.

Referenced by setBeamInfo().

274  {
275  m_intensity2 = intensity;
276 }
float m_intensity2
Definition: FillInfo.h:145
void FillInfo::setParticleTypeForBeam1 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 254 of file FillInfo.cc.

References m_particles1.

Referenced by setBeamInfo().

254  {
255  m_particles1 = particleType;
256 }
ParticleTypeId m_particles1
Definition: FillInfo.h:144
void FillInfo::setParticleTypeForBeam2 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 258 of file FillInfo.cc.

References m_particles2.

Referenced by setBeamInfo().

258  {
259  m_particles2 = particleType;
260 }
ParticleTypeId m_particles2
Definition: FillInfo.h:144
void FillInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 246 of file FillInfo.cc.

References m_targetBunches, and targetBunches().

Referenced by setBeamInfo().

246  {
248 }
unsigned short m_targetBunches
Definition: FillInfo.h:142
unsigned short const targetBunches() const
Definition: FillInfo.cc:159
unsigned short const FillInfo::targetBunches ( ) const

Definition at line 159 of file FillInfo.cc.

References m_targetBunches.

Referenced by cond::ValueExtractor< FillInfo >::compute(), and setTargetBunches().

159  {
160  return m_targetBunches;
161 }
unsigned short m_targetBunches
Definition: FillInfo.h:142

Member Data Documentation

size_t const FillInfo::availableBunchSlots = 2808
static

Definition at line 22 of file FillInfo.h.

Referenced by FillInfoPopConSourceHandler::getNewObjects().

size_t const FillInfo::bunchSlots = 3564
static

Definition at line 19 of file FillInfo.h.

cond::Time_t FillInfo::m_beginTime
private

Definition at line 146 of file FillInfo.h.

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

float FillInfo::m_betastar
private

Definition at line 145 of file FillInfo.h.

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

std::bitset<bunchSlots+1> FillInfo::m_bunchConfiguration1
private
std::bitset<bunchSlots+1> FillInfo::m_bunchConfiguration2
private
unsigned short FillInfo::m_bunches1
private

Definition at line 142 of file FillInfo.h.

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

unsigned short FillInfo::m_bunches2
private

Definition at line 142 of file FillInfo.h.

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

unsigned short FillInfo::m_collidingBunches
private

Definition at line 142 of file FillInfo.h.

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

cond::Time_t FillInfo::m_createTime
private

Definition at line 146 of file FillInfo.h.

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

float FillInfo::m_crossingAngle
private

Definition at line 145 of file FillInfo.h.

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

cond::Time_t FillInfo::m_endTime
private

Definition at line 146 of file FillInfo.h.

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

float FillInfo::m_energy
private

Definition at line 145 of file FillInfo.h.

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

FillTypeId FillInfo::m_fillType
private

Definition at line 143 of file FillInfo.h.

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

std::string FillInfo::m_injectionScheme
private

Definition at line 147 of file FillInfo.h.

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

float FillInfo::m_intensity1
private

Definition at line 145 of file FillInfo.h.

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

float FillInfo::m_intensity2
private

Definition at line 145 of file FillInfo.h.

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

bool FillInfo::m_isData
private

Definition at line 140 of file FillInfo.h.

Referenced by isData(), and setFill().

unsigned short FillInfo::m_lhcFill
private

Definition at line 141 of file FillInfo.h.

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

ParticleTypeId FillInfo::m_particles1
private

Definition at line 144 of file FillInfo.h.

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

ParticleTypeId FillInfo::m_particles2
private

Definition at line 144 of file FillInfo.h.

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

unsigned short FillInfo::m_targetBunches
private

Definition at line 142 of file FillInfo.h.

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