1 #ifndef ICHiggsTauTau_Track_hh
2 #define ICHiggsTauTau_Track_hh
5 #include "Math/Point3D.h"
6 #include "Math/Point3Dfwd.h"
7 #include "Math/Vector3D.h"
8 #include "Math/Vector3Dfwd.h"
9 #include "Math/Vector4D.h"
10 #include "Math/Vector4Dfwd.h"
20 typedef ROOT::Math::RhoEtaPhiVector ThreeVector;
21 typedef ROOT::Math::PtEtaPhiEVector Vector;
22 typedef ROOT::Math::XYZPoint Point;
27 virtual void Print()
const;
31 inline ThreeVector
const&
momentum()
const {
return momentum_; }
36 return Vector(ROOT::Math::PtEtaPhiMVector(
pt(),
eta(),
phi(), 0.13957018));
40 inline Point
const&
ref_point()
const {
return ref_point_; }
43 inline std::size_t
id()
const {
return id_; }
46 inline double pt()
const {
return momentum_.Rho(); }
50 inline double energy()
const {
return momentum_.r(); }
53 inline double eta()
const {
return momentum_.Eta(); }
56 inline double phi()
const {
return momentum_.Phi(); }
59 inline double vx()
const {
return ref_point_.x(); }
62 inline double vy()
const {
return ref_point_.y(); }
65 inline double vz()
const {
return ref_point_.z(); }
71 inline int hits()
const {
return hits_; }
78 inline double dxy(Point
const& point)
const {
86 inline double dz(Point
const& point)
const {
87 return (
vz() - point.z()) -
94 inline int charge()
const {
return charge_; }
98 inline int16_t
algorithm()
const {
return algorithm_; }
101 inline double pt_err()
const {
return pt_err_; }
104 inline int quality()
const {
return quality_; }
121 inline void set_id(std::size_t
const&
id) { id_ =
id; }
124 inline void set_pt(
double const&
pt) { momentum_.SetRho(pt); }
127 inline void set_eta(
double const&
eta) { momentum_.SetEta(eta); }
130 inline void set_phi(
double const&
phi) { momentum_.SetPhi(phi); }
133 inline void set_vx(
double const& x) { ref_point_.SetX(x); }
136 inline void set_vy(
double const& y) { ref_point_.SetY(y); }
139 inline void set_vz(
double const& z) { ref_point_.SetZ(z); }
177 ThreeVector momentum_;
182 double normalized_chi2_;
191 int hits_miss_inner_;
193 #ifndef SKIP_CINT_DICT
void set_hits_miss_inner(int const &hits_miss_inner)
hitPattern().numberOfHits(reco::HitPattern::MISSING_INNER_HITS)
double pt() const
The track transverse momentum.
void set_quality(int const &quality)
The track quality flags.
void set_phi(double const &phi)
Track azimuthal angle.
double vy() const
The y-coordinate of the PCA.
double pt_err() const
The track error.
void set_hits(int const &hits)
Number of tracker hits.
double eta() const
Track pseudorapidity.
Point const & ref_point() const
The point-of-closest-approach (PCA) of the track to the beamspot.
double dxy(Point const &point) const
Approximate dxy Copied from DataFormats/TrackReco/interface/TrackBase.h.
double dz(Point const &point) const
Approximate dz Copied from DataFormats/TrackReco/interface/TrackBase.h.
std::size_t id() const
The unique identifier.
int hits() const
Number of tracker hits.
std::vector< ic::Track > TrackCollection
ThreeVector const & momentum() const
The track momentum.
void set_vy(double const &y)
The y-coordinate of the PCA.
int16_t algorithm() const
The tracking algorithm used to produce this track See: DataFormats/TrackReco/interface/TrackBase.h.
void set_algorithm(int16_t const &algorithm)
The tracking algorithm used to produce this track See: DataFormats/TrackReco/interface/TrackBase.h.
Vector vector() const
Create a four-vector using the pion mass hypothesis.
double energy() const
Energy under the assumption of a massless particle, e.g. .
void set_eta(double const &eta)
Track pseudorapidity.
void set_pt_err(double const &pt_err)
The track error.
void set_momentum(ThreeVector const &momentum)
The track momentum.
int charge() const
The track charge.
virtual void Print() const
int quality() const
The track quality flags.
void set_charge(int const &charge)
The track charge.
Stores limited information about the track kinematics and trajectory.
int hits_miss_inner() const
hitPattern().numberOfHits(reco::HitPattern::MISSING_INNER_HITS)
void set_vx(double const &x)
The z-coordinate of the PCA.
int pixel_hits() const
Number of pixel hits.
void set_vz(double const &z)
The z-coordinate of the PCA.
void set_id(std::size_t const &id)
The unique identifier.
void set_pt(double const &pt)
The track transverse momentum.
void set_ref_point(Point const &ref_point)
The point-of-closest-approach (PCA) of the track to the beamspot.
double phi() const
Track azimuthal angle.
void set_normalized_chi2(double const &normalized_chi2)
The normalised chi2 of the track fit.
double vz() const
The z-coordinate of the PCA.
double vx() const
The z-coordinate of the PCA.
void set_pixel_hits(int const &pixel_hits)
Number of pixel hits.
double normalized_chi2() const
The normalised chi2 of the track fit.