9 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
16 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
23 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
27 " has no value stored.");
34 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
41 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
151 ss <<
"-----------------------------------------------------\n" 152 <<
" BeamSpotOnline Data\n\n" 153 <<
" Beam type = " <<
beamType() <<
"\n" 154 <<
" X0 = " <<
x() <<
" +/- " <<
xError() <<
" [cm]\n" 155 <<
" Y0 = " <<
y() <<
" +/- " <<
yError() <<
" [cm]\n" 156 <<
" Z0 = " <<
z() <<
" +/- " <<
zError() <<
" [cm]\n" 158 <<
" dxdz = " <<
dxdz() <<
" +/- " <<
dxdzError() <<
" [radians]\n" 159 <<
" dydz = " <<
dydz() <<
" +/- " <<
dydzError() <<
" [radians]\n" 162 <<
" Emittance X = " <<
emittanceX() <<
" [cm]\n" 163 <<
" Emittance Y = " <<
emittanceY() <<
" [cm]\n" 164 <<
" Beta star = " <<
betaStar() <<
" [cm]\n" 168 <<
"-----------------------------------------------------\n\n";
172 std::stringstream
ss;
double emittanceX() const
get emittance
int lastAnalyzedLumi() const
Getters Methods.
double dxdzError() const
get dxdz slope, crossing angle in XZ Error
cond::Time_t creationTime() const
double z() const
get Z beam position
void setStartTimeStamp(cond::Time_t val)
double dydz() const
get dydz slope, crossing angle in YZ
void print(std::stringstream &ss) const
Print BeamSpotOnline parameters.
T & accessParams(std::vector< T > ¶ms, size_t index)
void setMeanErrorPV(float val)
std::ostream & operator<<(std::ostream &os, BeamSpotOnlineObjects beam)
void setUsedEvents(int val)
std::string to_string(const V &value)
std::string endTime() const
void setEndTimeStamp(cond::Time_t val)
double beamWidthX() const
get average transverse beam width
std::string lumiRange() const
std::string startTime() const
int beamType() const
get beam type
std::vector< std::vector< int > > intParams_
const T & getOneParam(const std::vector< std::vector< T > > ¶ms, size_t index)
void setOneParam(std::vector< std::vector< T > > ¶ms, size_t index, const T &value)
void setEndTime(std::string val)
void setNumTracks(int val)
double beamWidthYError() const
get average transverse beam width error X = Y
float meanErrorPV() const
unsigned long long Time_t
void setMeanPV(float val)
cond::Time_t endTimeStamp() const
double zError() const
get Z beam position Error
double x() const
get X beam position
std::vector< std::vector< std::string > > stringParams_
void setRmsErrorPV(float val)
int lastAnalyzedRun() const
double beamWidthY() const
get average transverse beam width
double y() const
get Y beam position
std::vector< std::vector< unsigned long long > > timeParams_
double xError() const
get X beam position Error
cond::Time_t startTimeStamp() const
void setLumiRange(std::string val)
double sigmaZ() const
get sigma Z, RMS bunch length
std::vector< std::vector< float > > floatParams_
double emittanceY() const
get emittance
double betaStar() const
get beta star
double dydzError() const
get dydz slope, crossing angle in YZ Error
double beamWidthXError() const
get average transverse beam width error ASSUME the same for X and Y
const T & getParams(const std::vector< T > ¶ms, size_t index)
void setStartTime(std::string val)
void setCreationTime(cond::Time_t val)
double sigmaZError() const
get sigma Z, RMS bunch length Error
double yError() const
get Y beam position Error
double dxdz() const
get dxdz slope, crossing angle in XZ
void setParams(std::vector< T > ¶ms, size_t index, const T &value)
int lastAnalyzedFill() const