1 #ifndef CylindricalState_H
2 #define CylindricalState_H
33 Scalar p_rho = mom.
x() * cosphi + mom.
y() * sinphi;
34 Scalar p_phi = -mom.
x() * sinphi + mom.
y() * cosphi;
38 par_(2) = p_phi / (p_rho * rho_);
39 par_(3) = mom.
z() / p_rho;
40 par_(4) = ch / mom.
mag();
42 prSign_ = p_rho > 0 ? 1.0 : -1.0;
44 std::cout <<
"CylindricalState built from pos " << pos <<
" mom " << mom <<
" charge " << ch << std::endl;
45 std::cout <<
"p_rho " << p_rho <<
" p_phi " << p_phi <<
" dphi_drho " << par_(2) << std::endl;
47 <<
" charge " <<
charge() << std::endl;
51 par_(par), rho_(rho), prSign_(prSign) {}
61 Scalar Q =
sqrt(1 + rho_*rho_ * par_(2)*par_(2) + par_(3)*par_(3));
63 Scalar p_rho = prSign_*P/Q;
64 Scalar p_phi = rho_*par_(2)*p_rho;
65 Scalar p_z = par_(3)*p_rho;
67 p_rho*sinphi + p_phi*cosphi,
78 double prSign()
const {
return prSign_;}
const LocalPoint position() const
const Vector & parameters() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
ROOT::Math::SVector< T, N > RKSmallVector
CylindricalState(Scalar rho, const Vector &par, Scalar prSign)
static int position[TOTALCHAMBERS][3]
Scalar prSign_
sign of local p_r
RKSmallVector< Scalar, 5 > Vector
CylindricalState(const LocalPoint &pos, const LocalVector &mom, Scalar ch)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
const LocalVector momentum() const