|
| TruthTrack ()=default |
| default constructor
|
|
void | Print () const |
| Use the vertex position of the SimParticle to extract (x, y, z, px, py, pz, q) and create a track seed.
|
|
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.
|
|
int | getTrackID () const |
|
void | setPdgID (int pdgID) |
|
int | getPdgID () const |
|
void | setNhits (int nHits) |
|
int | getNhits () const |
|
int | q () const |
|
void | setPerigeeParameters (const std::vector< double > &par) |
|
std::vector< double > | getPerigeeParameters () const |
|
void | setPerigeeLocation (const std::vector< double > &perigee) |
|
void | setPerigeeLocation (const double &x, const double &y, const double &z) |
|
void | setMomentum (const double &px, const double &py, const double &pz) |
|
void | setPosition (const double &x, const double &y, const double &z) |
|
std::vector< double > | getPerigeeLocation () const |
|
double | getPerigeeX () const |
|
double | getPerigeeY () const |
|
double | getPerigeeZ () const |
|
std::vector< double > | getMomentum () const |
|
std::vector< double > | getPosition () const |
|
double | getD0 () const |
|
double | getZ0 () const |
|
double | getPhi () const |
|
double | getTheta () const |
|
double | getQoP () const |
|
double | getT () const |
|
|
| ClassDef (TruthTrack, 2) |
| Class declaration needed by the ROOT dictionary.
|
|
|
std::vector< double > | perigee_pars_ {0., 0., 0., 0., 0., 0.} |
|
std::vector< double > | perigee_ {0., 0., 0.} |
|
std::vector< double > | momentum_ {0., 0., 0.} |
|
std::vector< double > | position_ {0., 0., 0.} |
|
int | nHits_ {0} |
|
int | trackID_ {-1} |
|
int | pdgID_ {0} |
|
|
std::ostream & | operator<< (std::ostream &output, const TruthTrack &trk) |
|
Definition at line 9 of file TruthTrack.h.
◆ getD0()
double ldmx::TruthTrack::getD0 |
( |
| ) |
const |
|
inline |
Definition at line 142 of file TruthTrack.h.
142{ return perigee_pars_[0]; };
◆ getMomentum()
std::vector< double > ldmx::TruthTrack::getMomentum |
( |
| ) |
const |
|
inline |
◆ getNhits()
int ldmx::TruthTrack::getNhits |
( |
| ) |
const |
|
inline |
◆ getPdgID()
int ldmx::TruthTrack::getPdgID |
( |
| ) |
const |
|
inline |
◆ getPerigeeLocation()
std::vector< double > ldmx::TruthTrack::getPerigeeLocation |
( |
| ) |
const |
|
inline |
◆ getPerigeeParameters()
std::vector< double > ldmx::TruthTrack::getPerigeeParameters |
( |
| ) |
const |
|
inline |
◆ getPerigeeX()
double ldmx::TruthTrack::getPerigeeX |
( |
| ) |
const |
|
inline |
◆ getPerigeeY()
double ldmx::TruthTrack::getPerigeeY |
( |
| ) |
const |
|
inline |
◆ getPerigeeZ()
double ldmx::TruthTrack::getPerigeeZ |
( |
| ) |
const |
|
inline |
◆ getPhi()
double ldmx::TruthTrack::getPhi |
( |
| ) |
const |
|
inline |
Definition at line 144 of file TruthTrack.h.
144{ return perigee_pars_[2]; };
◆ getPosition()
std::vector< double > ldmx::TruthTrack::getPosition |
( |
| ) |
const |
|
inline |
◆ getQoP()
double ldmx::TruthTrack::getQoP |
( |
| ) |
const |
|
inline |
Definition at line 146 of file TruthTrack.h.
146{ return perigee_pars_[4]; };
◆ getT()
double ldmx::TruthTrack::getT |
( |
| ) |
const |
|
inline |
Definition at line 147 of file TruthTrack.h.
147{ return perigee_pars_[5]; };
◆ getTheta()
double ldmx::TruthTrack::getTheta |
( |
| ) |
const |
|
inline |
Definition at line 145 of file TruthTrack.h.
145{ return perigee_pars_[3]; };
◆ getTrackID()
int ldmx::TruthTrack::getTrackID |
( |
| ) |
const |
|
inline |
◆ getZ0()
double ldmx::TruthTrack::getZ0 |
( |
| ) |
const |
|
inline |
Definition at line 143 of file TruthTrack.h.
143{ return perigee_pars_[1]; };
◆ Print()
void ldmx::TruthTrack::Print |
( |
| ) |
const |
|
inline |
Use the vertex position of the SimParticle to extract (x, y, z, px, py, pz, q) and create a track seed.
- Parameters
-
Definition at line 26 of file TruthTrack.h.
◆ q()
int ldmx::TruthTrack::q |
( |
| ) |
const |
|
inline |
Definition at line 102 of file TruthTrack.h.
102{ return perigee_pars_[4] > 0 ? 1 : -1; }
◆ setMomentum()
void ldmx::TruthTrack::setMomentum |
( |
const double & |
px, |
|
|
const double & |
py, |
|
|
const double & |
pz |
|
) |
| |
|
inline |
Definition at line 120 of file TruthTrack.h.
120 {
121 momentum_[0] = px;
122 momentum_[1] = py;
123 momentum_[2] = pz;
124 }
◆ setNhits()
void ldmx::TruthTrack::setNhits |
( |
int |
nHits | ) |
|
|
inline |
◆ setPdgID()
void ldmx::TruthTrack::setPdgID |
( |
int |
pdgID | ) |
|
|
inline |
◆ setPerigeeLocation() [1/2]
void ldmx::TruthTrack::setPerigeeLocation |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
|
inline |
Definition at line 114 of file TruthTrack.h.
114 {
115 perigee_[0] = x;
116 perigee_[1] = y;
117 perigee_[2] = z;
118 }
◆ setPerigeeLocation() [2/2]
void ldmx::TruthTrack::setPerigeeLocation |
( |
const std::vector< double > & |
perigee | ) |
|
|
inline |
Definition at line 110 of file TruthTrack.h.
110 {
111 perigee_ = perigee;
112 }
◆ setPerigeeParameters()
void ldmx::TruthTrack::setPerigeeParameters |
( |
const std::vector< double > & |
par | ) |
|
|
inline |
Definition at line 105 of file TruthTrack.h.
105 {
106 perigee_pars_ = par;
107 }
◆ setPosition()
void ldmx::TruthTrack::setPosition |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
|
inline |
Definition at line 126 of file TruthTrack.h.
126 {
127 position_[0] = x;
128 position_[1] = y;
129 position_[2] = z;
130 }
◆ setTrackID()
void ldmx::TruthTrack::setTrackID |
( |
int |
trackid | ) |
|
|
inline |
Use the scoring plane hit at the target to extract (x, y, z, px, py, pz) and create a track seed.
In this case, the SimParticle is used to extract the charge of the particle.
- Parameters
-
particle | The SimParticle to extract the charge from. |
hit | The SimTrackerHit used to create the seed. Create a truth track from the given position, momentum and charge. |
pos | The position at which the particle was created. |
p | The momentum of the particle at the point of creation. |
charge | The charge of the particle. |
Definition at line 92 of file TruthTrack.h.
92{ trackID_ = trackid; };
◆ momentum_
std::vector<double> ldmx::TruthTrack::momentum_ {0., 0., 0.} |
|
private |
◆ nHits_
int ldmx::TruthTrack::nHits_ {0} |
|
private |
◆ pdgID_
int ldmx::TruthTrack::pdgID_ {0} |
|
private |
◆ perigee_
std::vector<double> ldmx::TruthTrack::perigee_ {0., 0., 0.} |
|
private |
◆ perigee_pars_
std::vector<double> ldmx::TruthTrack::perigee_pars_ {0., 0., 0., 0., 0., 0.} |
|
private |
◆ position_
std::vector<double> ldmx::TruthTrack::position_ {0., 0., 0.} |
|
private |
◆ trackID_
int ldmx::TruthTrack::trackID_ {-1} |
|
private |
The documentation for this class was generated from the following file: