1 #ifndef BeamSpot_BeamSpot_h
2 #define BeamSpot_BeamSpot_h
71 double x(
const double z)
const {
return x0() +
dxdz() * (z -
z0()); }
73 double y(
const double z)
const {
return y0() +
dydz() * (z -
z0()); }
121 for (
int j=0;
j<3;
j++) {
122 for (
int k=
j;
k<3;
k++) {
148 void print( std::stringstream&
ss )
const;
math::Error< dimension >::type CovarianceMatrix
double z0() const
z coordinate
double sigmaZ0Error() const
error on sigma z
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
math::Error< dim3 >::type Covariance3DMatrix
void setbetaStar(double v)
double dydzError() const
error on dydz
BeamSpot()
default constructor
math::XYZPoint Point
point in the space
CovarianceMatrix covariance() const
return full covariance matrix of dim 7
CovarianceMatrix error_
errors
double beamWidthFromBeta(double z, double e) const
double emittanceX() const
additional information
void setType(BeamType type)
set beam type
double dydz() const
dydz slope
std::ostream & operator<<(std::ostream &, BeamSpot beam)
void setBeamWidthY(double v)
double emittanceY() const
double dxdzError() const
error on dxdz
void setEmittanceY(double v)
double BeamWidthX() const
beam width X
double BeamWidthYError() const
error on beam width Y, assume error in X = Y
BeamSpot(const Point &point, double sigmaZ, double dxdz, double dydz, double BeamWidthX, const CovarianceMatrix &error, BeamType type=Unknown)
constructor from values
double BeamWidthXError() const
error on beam width X, assume error in X = Y
double z0Error() const
error on z
double dxdz() const
dxdz slope
double x0Error() const
error on x
double y0Error() const
error on y
void print(std::stringstream &ss) const
print information
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) ...
XYZPointD XYZPoint
point in space with cartesian internal representation
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
double covariance(int i, int j) const
(i,j)-th element of error matrix
void setBeamWidthX(double v)
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 y0() const
y coordinate
math::Error< resdim >::type ResCovMatrix
const Point & position() const
position
Covariance3DMatrix rotatedCovariance3D() const
void setEmittanceX(double v)
Power< A, B >::type pow(const A &a, const B &b)
*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
BeamType type() const
return beam type
double x0() const
x coordinate