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 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 10 of file FillInfo.h.

Member Typedef Documentation

Definition at line 14 of file FillInfo.h.

Definition at line 15 of file FillInfo.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
PROTONS 
IONS 
COSMICS 
GAP 

Definition at line 12 of file FillInfo.h.

Enumerator
NONE 
PROTON 
PB82 
AR18 
D 
XE54 

Definition at line 13 of file FillInfo.h.

13 { 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:150
unsigned short m_bunches1
Definition: FillInfo.h:148
unsigned short m_bunches2
Definition: FillInfo.h:148
cond::Time_t m_beginTime
Definition: FillInfo.h:152
0: Unidentified isolated particle
Definition: ParticleCode.h:19
unsigned short m_lhcFill
Definition: FillInfo.h:147
float m_crossingAngle
Definition: FillInfo.h:151
float m_betastar
Definition: FillInfo.h:151
std::string m_injectionScheme
Definition: FillInfo.h:153
cond::Time_t m_endTime
Definition: FillInfo.h:152
unsigned short m_targetBunches
Definition: FillInfo.h:148
float m_energy
Definition: FillInfo.h:151
FillTypeId m_fillType
Definition: FillInfo.h:149
bool m_isData
Definition: FillInfo.h:146
unsigned short m_collidingBunches
Definition: FillInfo.h:148
float m_intensity1
Definition: FillInfo.h:151
cond::Time_t m_createTime
Definition: FillInfo.h:152
ParticleTypeId m_particles2
Definition: FillInfo.h:150
float m_intensity2
Definition: FillInfo.h:151
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:150
unsigned short m_bunches1
Definition: FillInfo.h:148
unsigned short m_bunches2
Definition: FillInfo.h:148
cond::Time_t m_beginTime
Definition: FillInfo.h:152
0: Unidentified isolated particle
Definition: ParticleCode.h:19
unsigned short m_lhcFill
Definition: FillInfo.h:147
float m_crossingAngle
Definition: FillInfo.h:151
float m_betastar
Definition: FillInfo.h:151
std::string m_injectionScheme
Definition: FillInfo.h:153
cond::Time_t m_endTime
Definition: FillInfo.h:152
unsigned short m_targetBunches
Definition: FillInfo.h:148
float m_energy
Definition: FillInfo.h:151
FillTypeId m_fillType
Definition: FillInfo.h:149
bool m_isData
Definition: FillInfo.h:146
unsigned short m_collidingBunches
Definition: FillInfo.h:148
float m_intensity1
Definition: FillInfo.h:151
cond::Time_t m_createTime
Definition: FillInfo.h:152
ParticleTypeId m_particles2
Definition: FillInfo.h:150
float m_intensity2
Definition: FillInfo.h:151
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 setBeginTime().

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

Definition at line 179 of file FillInfo.cc.

References m_betastar.

Referenced by setBetaStar().

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

Definition at line 373 of file FillInfo.cc.

References m_bunchConfiguration1.

373  {
374  return m_bunchConfiguration1;
375 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:157
std::bitset< FillInfo::bunchSlots+1 > const & FillInfo::bunchBitsetForBeam2 ( ) const
protected

Definition at line 377 of file FillInfo.cc.

References m_bunchConfiguration2.

377  {
378  return m_bunchConfiguration2;
379 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:157
std::vector< unsigned short > FillInfo::bunchConfigurationForBeam1 ( ) const

Definition at line 232 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration1.

Referenced by print().

232  {
234 }
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:157
std::vector< unsigned short > FillInfo::bunchConfigurationForBeam2 ( ) const

Definition at line 236 of file FillInfo.cc.

References bitsetToVector(), and m_bunchConfiguration2.

Referenced by print().

236  {
238 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:157
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.

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

Definition at line 151 of file FillInfo.cc.

References m_bunches2.

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

Definition at line 155 of file FillInfo.cc.

References m_collidingBunches.

Referenced by setCollidingBunches().

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

Definition at line 195 of file FillInfo.cc.

References m_createTime.

Referenced by setCreationTime().

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

Definition at line 175 of file FillInfo.cc.

References m_crossingAngle.

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

Definition at line 203 of file FillInfo.cc.

References m_endTime.

Referenced by setEndTime().

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

Definition at line 191 of file FillInfo.cc.

References m_energy.

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

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

Definition at line 139 of file FillInfo.cc.

References m_lhcFill.

139  {
140  return m_lhcFill;
141 }
unsigned short m_lhcFill
Definition: FillInfo.h:147
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:149
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:153
float const FillInfo::intensityForBeam1 ( ) const

Definition at line 183 of file FillInfo.cc.

References m_intensity1.

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

Definition at line 187 of file FillInfo.cc.

References m_intensity2.

187  {
188  return m_intensity2;
189 }
float m_intensity2
Definition: FillInfo.h:151
bool FillInfo::is25nsBunchSpacing ( ) const

Definition at line 213 of file FillInfo.cc.

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

213  {
214  const std::string prefix( "25ns" );
215  return std::equal( prefix.begin(), prefix.end(), m_injectionScheme.begin() );
216 }
std::string m_injectionScheme
Definition: FillInfo.h:153
bool equal(const T &first, const T &second)
Definition: Equal.h:34
bool FillInfo::isBunchInBeam1 ( size_t const &  bunch) const

Definition at line 219 of file FillInfo.cc.

References m_bunchConfiguration1.

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

Definition at line 225 of file FillInfo.cc.

References m_bunchConfiguration2.

225  {
226  if( bunch == 0 )
227  throw std::out_of_range( "0 not allowed" ); //CMS starts counting bunch crossing from 1!
228  return m_bunchConfiguration2.test( bunch );
229 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:157
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:146
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:150
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:150
void FillInfo::print ( std::stringstream &  ss) const

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

344  {
345  ss << "LHC fill: " << m_lhcFill << std::endl
346  << "Bunches in Beam 1: " << m_bunches1 << std::endl
347  << "Bunches in Beam 2: " << m_bunches2 << std::endl
348  << "Colliding bunches at IP5: " << m_collidingBunches << std::endl
349  << "Target bunches at IP5: " << m_targetBunches << std::endl
350  << "Fill type: " << fillTypeToString( m_fillType ) << std::endl
351  << "Particle type for Beam 1: " << particleTypeToString( m_particles1 ) << std::endl
352  << "Particle type for Beam 2: " << particleTypeToString( m_particles2 ) << std::endl
353  << "Crossing angle (urad): " << m_crossingAngle << std::endl
354  << "Beta star (cm): " << m_betastar << std::endl
355  << "Average Intensity for Beam 1 (number of charges): " << m_intensity1 << std::endl
356  << "Average Intensity for Beam 2 (number of charges): " << m_intensity2 << std::endl
357  << "Energy (GeV): " << m_energy << std::endl
358  << "Creation time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_createTime ) ) << std::endl
359  << "Begin time of Stable Beam flag: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_beginTime ) ) << std::endl
360  << "End time of the fill: " << boost::posix_time::to_iso_extended_string( cond::time::to_boost( m_endTime ) ) << std::endl
361  << "Injection scheme as given by LPC: " << m_injectionScheme << std::endl;
362  std::vector<unsigned short> bunchVector1 = this->bunchConfigurationForBeam1();
363  std::vector<unsigned short> bunchVector2 = this->bunchConfigurationForBeam2();
364  ss << "Bunches filled for Beam 1 (total " << bunchVector1.size() << "): ";
365  std::copy( bunchVector1.begin(), bunchVector1.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
366  ss << std::endl;
367  ss << "Bunches filled for Beam 2 (total " << bunchVector2.size() << "): ";
368  std::copy( bunchVector2.begin(), bunchVector2.end(), std::ostream_iterator<unsigned short>( ss, ", " ) );
369  ss << std::endl;
370 }
ParticleTypeId m_particles1
Definition: FillInfo.h:150
unsigned short m_bunches1
Definition: FillInfo.h:148
unsigned short m_bunches2
Definition: FillInfo.h:148
cond::Time_t m_beginTime
Definition: FillInfo.h:152
unsigned short m_lhcFill
Definition: FillInfo.h:147
float m_crossingAngle
Definition: FillInfo.h:151
float m_betastar
Definition: FillInfo.h:151
std::string m_injectionScheme
Definition: FillInfo.h:153
cond::Time_t m_endTime
Definition: FillInfo.h:152
unsigned short m_targetBunches
Definition: FillInfo.h:148
float m_energy
Definition: FillInfo.h:151
FillTypeId m_fillType
Definition: FillInfo.h:149
unsigned short m_collidingBunches
Definition: FillInfo.h:148
float m_intensity1
Definition: FillInfo.h:151
cond::Time_t m_createTime
Definition: FillInfo.h:152
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:232
ParticleTypeId m_particles2
Definition: FillInfo.h:150
boost::posix_time::ptime to_boost(Time_t iValue)
std::vector< unsigned short > bunchConfigurationForBeam2() const
Definition: FillInfo.cc:236
float m_intensity2
Definition: FillInfo.h:151
template<class Archive >
void FillInfo::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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 306 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().

323  {
324  this->setBunchesInBeam1( bunches1 );
325  this->setBunchesInBeam2( bunches2 );
328  this->setFillType( fillType );
329  this->setParticleTypeForBeam1( particleType1 );
330  this->setParticleTypeForBeam2( particleType2 );
331  this->setCrossingAngle( angle );
332  this->setBetaStar( beta );
333  this->setIntensityForBeam1( intensity1 );
334  this->setIntensityForBeam2( intensity2 );
335  this->setEnergy( energy );
336  this->setCreationTime( createTime );
337  this->setBeginTime( beginTime );
338  this->setEndTime( endTime );
339  this->setInjectionScheme( scheme );
340  this->setBunchBitsetForBeam1( bunchConf1 );
341  this->setBunchBitsetForBeam2( bunchConf2 );
342 }
const double beta
void setBetaStar(float const &betaStar)
Definition: FillInfo.cc:273
void setCrossingAngle(float const &angle)
Definition: FillInfo.cc:269
void setCollidingBunches(unsigned short const &collidingBunches)
Definition: FillInfo.cc:249
void setBunchBitsetForBeam2(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:386
void setIntensityForBeam2(float const &intensity)
Definition: FillInfo.cc:281
void setBunchBitsetForBeam1(std::bitset< bunchSlots+1 > const &bunchConfiguration)
Definition: FillInfo.cc:382
cond::Time_t const beginTime() const
Definition: FillInfo.cc:199
void setFillType(FillTypeId const &fillType)
Definition: FillInfo.cc:257
void setIntensityForBeam1(float const &intensity)
Definition: FillInfo.cc:277
void setBunchesInBeam1(unsigned short const &bunches)
Definition: FillInfo.cc:241
FillTypeId const fillType() const
Definition: FillInfo.cc:163
void setParticleTypeForBeam2(ParticleTypeId const &particleType)
Definition: FillInfo.cc:265
void setEndTime(cond::Time_t const &endTime)
Definition: FillInfo.cc:297
void setTargetBunches(unsigned short const &targetBunches)
Definition: FillInfo.cc:253
cond::Time_t const createTime() const
Definition: FillInfo.cc:195
void setParticleTypeForBeam1(ParticleTypeId const &particleType)
Definition: FillInfo.cc:261
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:293
void setBunchesInBeam2(unsigned short const &bunches)
Definition: FillInfo.cc:245
void setEnergy(float const &energy)
Definition: FillInfo.cc:285
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:289
void setInjectionScheme(std::string const &injectionScheme)
Definition: FillInfo.cc:301
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 293 of file FillInfo.cc.

References beginTime(), and m_beginTime.

Referenced by setBeamInfo().

293  {
295 }
cond::Time_t m_beginTime
Definition: FillInfo.h:152
cond::Time_t const beginTime() const
Definition: FillInfo.cc:199
void FillInfo::setBetaStar ( float const &  betaStar)

Definition at line 273 of file FillInfo.cc.

References betaStar(), and m_betastar.

Referenced by setBeamInfo().

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

Definition at line 382 of file FillInfo.cc.

References m_bunchConfiguration1.

Referenced by setBeamInfo().

382  {
383  m_bunchConfiguration1 = bunchConfiguration;
384 }
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:157
void FillInfo::setBunchBitsetForBeam2 ( std::bitset< bunchSlots+1 > const &  bunchConfiguration)
protected

Definition at line 386 of file FillInfo.cc.

References m_bunchConfiguration2.

Referenced by setBeamInfo().

386  {
387  m_bunchConfiguration2 = bunchConfiguration;
388 }
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:157
void FillInfo::setBunchesInBeam1 ( unsigned short const &  bunches)

Definition at line 241 of file FillInfo.cc.

References m_bunches1.

Referenced by setBeamInfo().

241  {
242  m_bunches1 = bunches;
243 }
unsigned short m_bunches1
Definition: FillInfo.h:148
void FillInfo::setBunchesInBeam2 ( unsigned short const &  bunches)

Definition at line 245 of file FillInfo.cc.

References m_bunches2.

Referenced by setBeamInfo().

245  {
246  m_bunches2 = bunches;
247 }
unsigned short m_bunches2
Definition: FillInfo.h:148
void FillInfo::setCollidingBunches ( unsigned short const &  collidingBunches)

Definition at line 249 of file FillInfo.cc.

References collidingBunches(), and m_collidingBunches.

Referenced by setBeamInfo().

249  {
251 }
unsigned short m_collidingBunches
Definition: FillInfo.h:148
unsigned short const collidingBunches() const
Definition: FillInfo.cc:155
void FillInfo::setCreationTime ( cond::Time_t const &  createTime)

Definition at line 289 of file FillInfo.cc.

References createTime(), and m_createTime.

Referenced by setBeamInfo().

289  {
291 }
cond::Time_t const createTime() const
Definition: FillInfo.cc:195
cond::Time_t m_createTime
Definition: FillInfo.h:152
void FillInfo::setCrossingAngle ( float const &  angle)

Definition at line 269 of file FillInfo.cc.

References angle(), and m_crossingAngle.

Referenced by setBeamInfo().

269  {
271 }
float m_crossingAngle
Definition: FillInfo.h:151
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 297 of file FillInfo.cc.

References endTime(), and m_endTime.

Referenced by setBeamInfo().

297  {
298  m_endTime = endTime;
299 }
cond::Time_t m_endTime
Definition: FillInfo.h:152
cond::Time_t const endTime() const
Definition: FillInfo.cc:203
void FillInfo::setEnergy ( float const &  energy)

Definition at line 285 of file FillInfo.cc.

References energy(), and m_energy.

Referenced by setBeamInfo().

285  {
286  m_energy = energy;
287 }
float m_energy
Definition: FillInfo.h:151
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:150
unsigned short m_bunches1
Definition: FillInfo.h:148
unsigned short m_bunches2
Definition: FillInfo.h:148
cond::Time_t m_beginTime
Definition: FillInfo.h:152
0: Unidentified isolated particle
Definition: ParticleCode.h:19
std::bitset< bunchSlots+1 > m_bunchConfiguration2
Definition: FillInfo.h:157
unsigned short m_lhcFill
Definition: FillInfo.h:147
float m_crossingAngle
Definition: FillInfo.h:151
float m_betastar
Definition: FillInfo.h:151
std::string m_injectionScheme
Definition: FillInfo.h:153
cond::Time_t m_endTime
Definition: FillInfo.h:152
unsigned short m_targetBunches
Definition: FillInfo.h:148
float m_energy
Definition: FillInfo.h:151
FillTypeId m_fillType
Definition: FillInfo.h:149
bool m_isData
Definition: FillInfo.h:146
unsigned short m_collidingBunches
Definition: FillInfo.h:148
float m_intensity1
Definition: FillInfo.h:151
cond::Time_t m_createTime
Definition: FillInfo.h:152
std::bitset< bunchSlots+1 > m_bunchConfiguration1
Definition: FillInfo.h:157
ParticleTypeId m_particles2
Definition: FillInfo.h:150
float m_intensity2
Definition: FillInfo.h:151
void FillInfo::setFillType ( FillInfo::FillTypeId const &  fillType)

Definition at line 257 of file FillInfo.cc.

References fillType(), and m_fillType.

Referenced by setBeamInfo().

257  {
259 }
FillTypeId const fillType() const
Definition: FillInfo.cc:163
FillTypeId m_fillType
Definition: FillInfo.h:149
void FillInfo::setInjectionScheme ( std::string const &  injectionScheme)

Definition at line 301 of file FillInfo.cc.

References injectionScheme(), and m_injectionScheme.

Referenced by setBeamInfo().

301  {
303 }
std::string m_injectionScheme
Definition: FillInfo.h:153
std::string const & injectionScheme() const
Definition: FillInfo.cc:207
void FillInfo::setIntensityForBeam1 ( float const &  intensity)

Definition at line 277 of file FillInfo.cc.

References m_intensity1.

Referenced by setBeamInfo().

277  {
278  m_intensity1 = intensity;
279 }
float m_intensity1
Definition: FillInfo.h:151
void FillInfo::setIntensityForBeam2 ( float const &  intensity)

Definition at line 281 of file FillInfo.cc.

References m_intensity2.

Referenced by setBeamInfo().

281  {
282  m_intensity2 = intensity;
283 }
float m_intensity2
Definition: FillInfo.h:151
void FillInfo::setParticleTypeForBeam1 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 261 of file FillInfo.cc.

References m_particles1, and HLT_FULL_cff::particleType.

Referenced by setBeamInfo().

261  {
263 }
ParticleTypeId m_particles1
Definition: FillInfo.h:150
tuple particleType
void FillInfo::setParticleTypeForBeam2 ( FillInfo::ParticleTypeId const &  particleType)

Definition at line 265 of file FillInfo.cc.

References m_particles2, and HLT_FULL_cff::particleType.

Referenced by setBeamInfo().

265  {
267 }
ParticleTypeId m_particles2
Definition: FillInfo.h:150
tuple particleType
void FillInfo::setTargetBunches ( unsigned short const &  targetBunches)

Definition at line 253 of file FillInfo.cc.

References m_targetBunches, and targetBunches().

Referenced by setBeamInfo().

253  {
255 }
unsigned short m_targetBunches
Definition: FillInfo.h:148
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 setTargetBunches().

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 159 of file FillInfo.h.

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

Definition at line 159 of file FillInfo.h.

Member Data Documentation

size_t const FillInfo::availableBunchSlots = 2808
static

Definition at line 24 of file FillInfo.h.

Referenced by FillInfoPopConSourceHandler::getNewObjects().

size_t const FillInfo::bunchSlots = 3564
static

Definition at line 21 of file FillInfo.h.

cond::Time_t FillInfo::m_beginTime
private

Definition at line 152 of file FillInfo.h.

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

float FillInfo::m_betastar
private

Definition at line 151 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 148 of file FillInfo.h.

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

unsigned short FillInfo::m_bunches2
private

Definition at line 148 of file FillInfo.h.

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

unsigned short FillInfo::m_collidingBunches
private

Definition at line 148 of file FillInfo.h.

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

cond::Time_t FillInfo::m_createTime
private

Definition at line 152 of file FillInfo.h.

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

float FillInfo::m_crossingAngle
private

Definition at line 151 of file FillInfo.h.

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

cond::Time_t FillInfo::m_endTime
private

Definition at line 152 of file FillInfo.h.

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

float FillInfo::m_energy
private

Definition at line 151 of file FillInfo.h.

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

FillTypeId FillInfo::m_fillType
private

Definition at line 149 of file FillInfo.h.

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

std::string FillInfo::m_injectionScheme
private

Definition at line 153 of file FillInfo.h.

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

float FillInfo::m_intensity1
private

Definition at line 151 of file FillInfo.h.

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

float FillInfo::m_intensity2
private

Definition at line 151 of file FillInfo.h.

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

bool FillInfo::m_isData
private

Definition at line 146 of file FillInfo.h.

Referenced by isData(), and setFill().

unsigned short FillInfo::m_lhcFill
private

Definition at line 147 of file FillInfo.h.

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

ParticleTypeId FillInfo::m_particles1
private

Definition at line 150 of file FillInfo.h.

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

ParticleTypeId FillInfo::m_particles2
private

Definition at line 150 of file FillInfo.h.

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

unsigned short FillInfo::m_targetBunches
private

Definition at line 148 of file FillInfo.h.

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