5 namespace BeamSpotOnlineObjectsImpl {
8 if (index >= params.size())
9 throw std::out_of_range(
"Parameter with index " +
std::to_string(index) +
" is out of range.");
15 if (index >= params.size())
16 throw std::out_of_range(
"Parameter with index " +
std::to_string(index) +
" is out of range.");
22 if (index >=
params.size())
23 throw std::out_of_range(
"Parameter with index " +
std::to_string(index) +
" is out of range.");
26 throw std::out_of_range(
"Parameter with index " +
std::to_string(index) +
" type=" +
typeid(
T).
name() +
27 " has no value stored.");
33 if (index >=
params.size())
34 throw std::out_of_range(
"Parameter with index " +
std::to_string(index) +
" is out of range.");
40 if (index >= params.size())
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 z() const
get Z beam position
void setStartTimeStamp(cond::Time_t val)
double yError() const
get Y beam position Error
double emittanceY() const
get emittance
double emittanceX() const
get emittance
double xError() const
get X beam position Error
std::string lumiRange() const
int lastAnalyzedFill() const
int lastAnalyzedRun() const
T & accessParams(std::vector< T > ¶ms, size_t index)
void setMeanErrorPV(float val)
double dydzError() const
get dydz slope, crossing angle in YZ Error
void setUsedEvents(int val)
double beamWidthY() const
get average transverse beam width
std::string to_string(const V &value)
double dxdzError() const
get dxdz slope, crossing angle in XZ Error
double y() const
get Y beam position
double dxdz() const
get dxdz slope, crossing angle in XZ
double zError() const
get Z beam position Error
void setEndTimeStamp(cond::Time_t val)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
double beamWidthYError() const
get average transverse beam width error X = Y
cond::Time_t creationTime() const
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)
double sigmaZ() const
get sigma Z, RMS bunch length
void setNumTracks(int val)
float meanErrorPV() const
unsigned long long Time_t
void setMeanPV(float val)
cond::Time_t startTimeStamp() const
int lastAnalyzedLumi() const
Getters Methods.
double beamWidthX() const
get average transverse beam width
std::string startTime() const
cond::Time_t endTimeStamp() const
std::vector< std::vector< std::string > > stringParams_
void setRmsErrorPV(float val)
double x() const
get X beam position
double sigmaZError() const
get sigma Z, RMS bunch length Error
double betaStar() const
get beta star
std::vector< std::vector< unsigned long long > > timeParams_
void setLumiRange(std::string val)
std::vector< std::vector< float > > floatParams_
double dydz() const
get dydz slope, crossing angle in YZ
int beamType() const
get beam type
const T & getParams(const std::vector< T > ¶ms, size_t index)
void setStartTime(std::string val)
void print(std::stringstream &ss) const
Print BeamSpotOnline parameters.
void setCreationTime(cond::Time_t val)
double beamWidthXError() const
get average transverse beam width error ASSUME the same for X and Y
std::string endTime() const
void setParams(std::vector< T > ¶ms, size_t index, const T &value)