hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
|
#include <Track.h>
Public Member Functions | |
Track () | |
~Track () | |
void | Clear (Option_t *option="") |
void | addHit (TObject *hit) |
void | setTruthLink (TObject *obj) |
TRef | getTruthLink () |
TRefArray | getSvtHits () const |
void | setTrackParameters (const double d0, const double phi0, const double omega, const double tan_lambda, const double z0) |
std::vector< double > | getTrackParameters () |
double | getD0 () const |
double | getPhi () const |
void | setPhi (const double phi0) |
double | getOmega () const |
double | getTanLambda () const |
double | getZ0 () const |
void | setCov (const std::vector< float > &cov) |
std::vector< float > | getCov () |
std::vector< int > | getHitLayers () |
void | addHitLayer (int layer) |
void | addMcpHit (int layer, int mcpID) |
std::vector< std::pair< int, int > > | getMcpHits () |
double | getD0Err () const |
double | getPhiErr () const |
double | getOmegaErr () const |
double | getTanLambdaErr () const |
double | getZ0Err () const |
void | setNdf (const float ndf) |
double | getNdf () const |
void | setChi2 (const double chi2) |
double | getChi2 () const |
double | getChi2Ndf () const |
void | setIsolation (const int layer, const double isolation) |
double | getIsolation (const int layer) const |
void | setTrackTime (const double track_time) |
double | getTrackTime () const |
void | setTrackVolume (const int track_volume) |
void | setParticle (TObject *particle) |
TObject * | getParticle () const |
void | setPositionAtEcal (const double *position) |
std::vector< double > | getPositionAtEcal () |
void | setPosition (const double *position) |
std::vector< double > | getPosition () |
void | setType (const int type) |
int | getType () const |
void | applyCorrection (std::string var, double correction) |
bool | is345Seed () const |
bool | is456Seed () const |
bool | is123SeedC4 () const |
bool | is123SeedC5 () const |
bool | isMatchedTrack () const |
bool | isGBLTrack () const |
bool | isKalmanTrack () const |
bool | isStrategy (TRACKINFO::STRATEGY strategy) |
void | setCharge (const int charge) |
int | getCharge () const |
void | setID (const int id) |
int | getID () const |
void | setMomentum (double bfield=0.52) |
void | setMomentum (std::vector< double > momentum) |
void | setMomentum (double px, double py, double pz) |
std::vector< double > | getMomentum () |
double | getP () const |
double | getPt () const |
void | setLambdaKink (const int layer, const double lambda_kink) |
double | getLambdaKink (const int layer) const |
void | setPhiKink (const int layer, const double phi_kink) |
double | getPhiKink (const int layer) const |
bool | isTopTrack () const |
bool | isBottomTrack () const |
void | setTrackerHitCount (int nHits) |
int | getTrackerHitCount () const |
void | setNShared (const int nShared) |
int | getNShared () const |
void | setSharedLy0 (const bool isShared) |
void | setSharedLy1 (const bool isShared) |
bool | getSharedLy0 () const |
bool | getSharedLy1 () const |
void | Print (Option_t *option="") const |
Private Member Functions | |
ClassDef (Track, 1) | |
Private Attributes | |
TRefArray | tracker_hits_ {TRefArray{}} |
TRef | particle_ |
double | isolation_ [14] |
int | n_hits_ {0} |
int | track_volume_ {-999} |
int | type_ {-999} |
std::vector< float > | cov_ |
std::vector< int > | hit_layers_ |
std::vector< std::pair< int, int > > | mcp_hits_ |
double | d0_ {-999.} |
double | phi0_ {-999.} |
double | omega_ {-999.} |
double | tan_lambda_ {-999.} |
double | z0_ {-999.} |
double | chi2_ {-999.} |
double | ndf_ {0.} |
double | track_time_ {-999.} |
double | x_at_ecal_ {-999.} |
double | y_at_ecal_ {-999.} |
double | z_at_ecal_ {-999.} |
double | x_ {-999.} |
double | y_ {-999.} |
double | z_ {-999.} |
double | lambda_kinks_ [14] |
double | phi_kinks_ [14] |
double | px_ {-9999.} |
double | py_ {-9999.} |
double | pz_ {-9999.} |
int | id_ {0} |
int | charge_ {0} |
int | nShared_ {0} |
bool | SharedLy0_ {false} |
bool | SharedLy1_ {false} |
TRef | truth_link_ |
TRef | mcp_link_ |
Track | ( | ) |
Constructor
void addHit | ( | TObject * | hit | ) |
Add a reference to an TrackerHit.
hit | : A TrackerHit object |
void applyCorrection | ( | std::string | var, |
double | correction | ||
) |
|
private |
void Clear | ( | Option_t * | option = "" | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::vector< double > getPosition | ( | ) |
std::vector< double > getPositionAtEcal | ( | ) |
|
inline |
|
inline |
std::vector< double > getTrackParameters | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void setMomentum | ( | double | bfield = 0.52 | ) |
void setMomentum | ( | std::vector< double > | momentum | ) |
|
inline |
|
inline |
|
inline |
void setPosition | ( | const double * | position | ) |
void setPositionAtEcal | ( | const double * | position | ) |
|
inline |
void setTrackParameters | ( | const double | d0, |
const double | phi0, | ||
const double | omega, | ||
const double | tan_lambda, | ||
const double | z0 | ||
) |
Set the track parameters.
d0 | Distance of closest approach to the reference point. |
phi0 | The azimuthal angle of the momentum at the distance of closest approach. |
omega | The curvature of the track. |
tan_lambda | The slope of the track in the SY plane. |
z0 | The y position of the track at the distance of closest approach. |
|
inline |
|
inline |
|
inline |
|
inline |
Set the track type. For more details, see StrategyType
and TrackType
.
type | The track type. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |