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.");
109 for (
int i = 0;
i < 7; ++
i) {
110 for (
int j = 0;
j < 7; ++
j) {
172 ss <<
"-----------------------------------------------------\n" 173 <<
" BeamSpotOnline Data\n\n" 174 <<
" Beam type = " <<
beamType() <<
"\n" 175 <<
" X0 = " <<
x() <<
" +/- " <<
xError() <<
" [cm]\n" 176 <<
" Y0 = " <<
y() <<
" +/- " <<
yError() <<
" [cm]\n" 177 <<
" Z0 = " <<
z() <<
" +/- " <<
zError() <<
" [cm]\n" 179 <<
" dxdz = " <<
dxdz() <<
" +/- " <<
dxdzError() <<
" [radians]\n" 180 <<
" dydz = " <<
dydz() <<
" +/- " <<
dydzError() <<
" [radians]\n" 183 <<
" Emittance X = " <<
emittanceX() <<
" [cm]\n" 184 <<
" Emittance Y = " <<
emittanceY() <<
" [cm]\n" 185 <<
" Beta star = " <<
betaStar() <<
" [cm]\n" 189 <<
"-----------------------------------------------------\n\n";
193 std::stringstream
ss;
double emittanceX() const
get emittance
void setBeamWidthYError(double val)
set beam width Y error
int lastAnalyzedLumi() const
Getters Methods.
double dxdzError() const
get dxdz slope, crossing angle in XZ Error
cond::Time_t creationTime() const
void setCovariance(int i, int j, double val)
set i,j element of the full covariance matrix 7x7
double z() const
get Z beam position
void setStartTimeStamp(cond::Time_t val)
double dydz() const
get dydz slope, crossing angle in YZ
void setEmittanceY(double val)
set emittance
void print(std::stringstream &ss) const
Print BeamSpotOnline parameters.
T & accessParams(std::vector< T > ¶ms, size_t index)
void setMeanErrorPV(float val)
void setBetaStar(double val)
set beta star
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 setType(int type)
set beam type
void setEndTime(std::string val)
void setNumTracks(int val)
void setEmittanceX(double val)
set emittance
double beamWidthYError() const
get average transverse beam width error X = Y
float meanErrorPV() const
unsigned long long Time_t
void setMeanPV(float val)
void setdydz(double val)
set dydz slope, crossing angle in XZ
cond::Time_t endTimeStamp() const
double zError() const
get Z beam position Error
void copyFromBeamSpotObject(const BeamSpotObjects &bs)
Setters Methods.
double x() const
get X beam position
std::vector< std::vector< std::string > > stringParams_
void setRmsErrorPV(float val)
void setdxdz(double val)
set dxdz slope, crossing angle
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 setBeamWidthXError(double val)
set beam width X error
void setSigmaZ(double val)
set sigma Z, RMS bunch length
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 setPosition(double x, double y, double z)
set XYZ position
void setBeamWidthX(double val)
set average transverse beam width X
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 setBeamWidthY(double val)
set average transverse beam width Y
void setParams(std::vector< T > ¶ms, size_t index, const T &value)
int lastAnalyzedFill() const