93 int getTrackID()
const {
return trackID_; };
95 void setPdgID(
int pdgID) { pdgID_ = pdgID; };
96 int getPdgID()
const {
return pdgID_; };
98 void setNhits(
int nHits) { nHits_ = nHits; };
99 int getNhits()
const {
return nHits_; }
102 int q()
const {
return perigee_pars_[4] > 0 ? 1 : -1; }
105 void setPerigeeParameters(
const std::vector<double>& par) {
108 std::vector<double> getPerigeeParameters()
const {
return perigee_pars_; }
110 void setPerigeeLocation(
const std::vector<double>& perigee) {
114 void setPerigeeLocation(
const double& x,
const double& y,
const double& z) {
120 void setMomentum(
const double& px,
const double& py,
const double& pz) {
126 void setPosition(
const double& x,
const double& y,
const double& z) {
132 std::vector<double> getPerigeeLocation()
const {
return perigee_; };
133 double getPerigeeX()
const {
return perigee_[0]; };
134 double getPerigeeY()
const {
return perigee_[1]; };
135 double getPerigeeZ()
const {
return perigee_[2]; };
137 std::vector<double> getMomentum()
const {
return momentum_; };
138 std::vector<double> getPosition()
const {
return position_; };
142 double getD0()
const {
return perigee_pars_[0]; };
143 double getZ0()
const {
return perigee_pars_[1]; };
144 double getPhi()
const {
return perigee_pars_[2]; };
145 double getTheta()
const {
return perigee_pars_[3]; };
146 double getQoP()
const {
return perigee_pars_[4]; };
147 double getT()
const {
return perigee_pars_[5]; };
149 friend std::ostream& operator<<(std::ostream& output,
const TruthTrack& trk);
154 std::vector<double> perigee_pars_{0., 0., 0., 0., 0., 0.};
157 std::vector<double> perigee_{0., 0., 0.};
160 std::vector<double> momentum_{0., 0., 0.};
163 std::vector<double> position_{0., 0., 0.};
void setTrackID(int trackid)
Use the scoring plane hit at the target to extract (x, y, z, px, py, pz) and create a track seed.
void Print() const
Use the vertex position of the SimParticle to extract (x, y, z, px, py, pz, q) and create a track see...