Go to the documentation of this file. 1 #ifndef BeamSpot_BeamSpot_h
2 #define BeamSpot_BeamSpot_h
68 double x(
const double z)
const {
return x0() +
dxdz() * (z -
z0()); }
70 double y(
const double z)
const {
return y0() +
dydz() * (z -
z0()); }
114 for (
int j = 0;
j < 3;
j++) {
115 for (
int k =
j;
k < 3;
k++) {
141 void print(std::stringstream&
ss)
const;
BeamSpot(const Point &point, double sigmaZ, double dxdz, double dydz, double BeamWidthX, const CovarianceMatrix &error, BeamType type=Unknown)
constructor from values
void setBeamWidthY(double v)
double emittanceX() const
additional information
double BeamWidthXError() const
error on beam width X, assume error in X = Y
void setEmittanceY(double v)
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
double z0() const
z coordinate
Covariance3DMatrix rotatedCovariance3D() const
double covariance(int i, int j) const
(i,j)-th element of error matrix
double dxdz() const
dxdz slope
double dxdzError() const
error on dxdz
double beamWidthFromBeta(double z, double e) const
double y0Error() const
error on y
double sigmaZ() const
sigma z
double dydzError() const
error on dydz
BeamType type() const
return beam type
void setBeamWidthX(double v)
const Point & position() const
position
void setEmittanceX(double v)
math::Error< resdim >::type ResCovMatrix
Structure Point Contains parameters of Gaussian fits to DMRs.
XYZPointD XYZPoint
point in space with cartesian internal representation
void setbetaStar(double v)
math::Error< dim3 >::type Covariance3DMatrix
CovarianceMatrix covariance() const
return full covariance matrix of dim 7
std::ostream & operator<<(std::ostream &, BeamSpot beam)
double y(const double z) const
y coordinate of the beeam spot position at a given z value (it takes into account the dydz slope)
double z0Error() const
error on z
double BeamWidthYError() const
error on beam width Y, assume error in X = Y
math::Error< dimension >::type CovarianceMatrix
double BeamWidthX() const
beam width X
double dydz() const
dydz slope
double x0() const
x coordinate
CovarianceMatrix error_
errors
BeamSpot()
default constructor
double x(const double z) const
x coordinate of the beeam spot position at a given z value (it takes into account the dxdz slope)
double x0Error() const
error on x
double sigmaZ0Error() const
error on sigma z
Power< A, B >::type pow(const A &a, const B &b)
math::XYZPoint Point
point in the space
void setType(BeamType type)
set beam type
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
void print(std::stringstream &ss) const
print information
double y0() const
y coordinate
double emittanceY() const
double BeamWidthY() const
beam width Y