#include <GFTrackCand.h>
Public Member Functions | |
GFTrackCand () | |
~GFTrackCand () | |
GFTrackCand (double curv, double dip, double inv, std::vector< unsigned int > detIDs, std::vector< unsigned int > hitIDs) | |
Initializing constructor. More... | |
GFTrackCand (double curv, double dip, double inv, std::vector< unsigned int > detIDs, std::vector< unsigned int > hitIDs, std::vector< double > rhos) | |
void | getHit (unsigned int i, unsigned int &detId, unsigned int &hitId) const |
Get detector ID and cluster index (hitId) for hit number i. More... | |
void | getHit (unsigned int i, unsigned int &detId, unsigned int &hitId, double &rho) const |
Get detector ID and cluster index (hitId) for hit number i with ordering parameter rho. More... | |
void | getHitWithPlane (unsigned int i, unsigned int &detId, unsigned int &hitId, unsigned int &planeId) const |
Get detector ID and cluster index (hitId) for hit number i with plane id. More... | |
unsigned int | getNHits () const |
double | getCurv () const |
double | getDip () const |
bool | inverted () const |
std::vector< unsigned int > | GetHitIDs (int detId=-1) |
std::vector< unsigned int > | GetDetIDs () const |
std::vector< double > | GetRhos () const |
std::set< unsigned int > | GetUniqueDetIDs () const |
int | getMcTrackId () const |
get the MCT track id, for MC simulations - def. value -1 More... | |
TVector3 | getPosSeed () const |
get the seed value for track: pos More... | |
TVector3 | getDirSeed () const |
get the seed value for track: direction More... | |
double | getQoverPseed () const |
get the seed value for track: qoverp More... | |
TVector3 | getPosError () const |
TVector3 | getDirError () const |
get the seed value for track: error on direction (standard deviation) More... | |
int | getPdgCode () const |
get the PDG code More... | |
void | addHit (unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0) |
void | setCurv (double c) |
void | setDip (double d) |
void | setInverted (bool f=true) |
void | setMcTrackId (int i) |
set the MCT track id, for MC simulations More... | |
bool | HitInTrack (unsigned int detId, unsigned int hitId) |
Test if hit already is part of this track candidate. More... | |
void | setTrackSeed (const TVector3 &p, const TVector3 &d, double qop) |
set the seed values for track: pos, direction, q/p More... | |
void | setComplTrackSeed (const TVector3 &pos, const TVector3 &mom, const int pdgCode, TVector3 posError=TVector3(1.0, 1.0, 1.0), TVector3 dirError=TVector3(1.0, 1.0, 1.0)) |
void | setPdgCode (int pdgCode) |
set a particle hypothesis in form of a PDG code More... | |
void | append (const GFTrackCand &) |
void | reset () |
void | Print (std::ostream &out=std::cout) const |
Private Member Functions | |
virtual void | Print (Option_t *) const |
Private Attributes | |
std::vector< unsigned int > | fDetId |
std::vector< unsigned int > | fHitId |
std::vector< unsigned int > | fPlaneId |
std::vector< double > | fRho |
double | fCurv |
double | fDip |
bool | fInv |
TVector3 | fPosSeed |
TVector3 | fDirSeed |
double | fQoverpSeed |
TVector3 | fPosError |
TVector3 | fDirError |
int | fPdg |
int | fMcTrackId |
Friends | |
bool | operator== (const GFTrackCand &lhs, const GFTrackCand &rhs) |
Definition at line 56 of file GFTrackCand.h.
genf::GFTrackCand::GFTrackCand | ( | ) |
Definition at line 28 of file GFTrackCand.cxx.
genf::GFTrackCand::~GFTrackCand | ( | ) |
Definition at line 30 of file GFTrackCand.cxx.
genf::GFTrackCand::GFTrackCand | ( | double | curv, |
double | dip, | ||
double | inv, | ||
std::vector< unsigned int > | detIDs, | ||
std::vector< unsigned int > | hitIDs | ||
) |
Initializing constructor.
curv | Curvature from prefit. There is no stringent definition what this parameter means at the moment. |
dip | Dip angle from prefit. There is no stringent definition what this parameter means at the moment. |
inv | Dummy paramter. Has been used to mark inverted tracks in the past. |
detIDs | collection of detector IDs. Each detector ID needs a corresponding GFRecoHitProducer. See RecoHitFactory for details. |
hitIDs | collection of hit indices. |
Definition at line 32 of file GFTrackCand.cxx.
genf::GFTrackCand::GFTrackCand | ( | double | curv, |
double | dip, | ||
double | inv, | ||
std::vector< unsigned int > | detIDs, | ||
std::vector< unsigned int > | hitIDs, | ||
std::vector< double > | rhos | ||
) |
Definition at line 39 of file GFTrackCand.cxx.
void genf::GFTrackCand::addHit | ( | unsigned int | detId, |
unsigned int | hitId, | ||
double | rho = 0. , |
||
unsigned int | planeId = 0 |
||
) |
Definition at line 49 of file GFTrackCand.cxx.
void genf::GFTrackCand::append | ( | const GFTrackCand & | rhs | ) |
Definition at line 110 of file GFTrackCand.cxx.
|
inline |
Definition at line 118 of file GFTrackCand.h.
|
inline |
Definition at line 122 of file GFTrackCand.h.
|
inline |
Definition at line 119 of file GFTrackCand.h.
|
inline |
get the seed value for track: error on direction (standard deviation)
Definition at line 142 of file GFTrackCand.h.
|
inline |
|
inline |
Get detector ID and cluster index (hitId) for hit number i.
Definition at line 85 of file GFTrackCand.h.
|
inline |
Get detector ID and cluster index (hitId) for hit number i with ordering parameter rho.
Definition at line 95 of file GFTrackCand.h.
std::vector< unsigned int > genf::GFTrackCand::GetHitIDs | ( | int | detId = -1 | ) |
Definition at line 58 of file GFTrackCand.cxx.
|
inline |
Get detector ID and cluster index (hitId) for hit number i with plane id.
Definition at line 107 of file GFTrackCand.h.
|
inline |
get the MCT track id, for MC simulations - def. value -1
Definition at line 133 of file GFTrackCand.h.
|
inline |
Definition at line 117 of file GFTrackCand.h.
|
inline |
|
inline |
Definition at line 140 of file GFTrackCand.h.
|
inline |
|
inline |
|
inline |
Definition at line 123 of file GFTrackCand.h.
|
inline |
Definition at line 124 of file GFTrackCand.h.
bool genf::GFTrackCand::HitInTrack | ( | unsigned int | detId, |
unsigned int | hitId | ||
) |
|
inline |
Definition at line 120 of file GFTrackCand.h.
void genf::GFTrackCand::Print | ( | std::ostream & | out = std::cout | ) | const |
Definition at line 95 of file GFTrackCand.cxx.
|
inlineprivatevirtual |
Definition at line 196 of file GFTrackCand.h.
void genf::GFTrackCand::reset | ( | ) |
Definition at line 73 of file GFTrackCand.cxx.
void genf::GFTrackCand::setComplTrackSeed | ( | const TVector3 & | pos, |
const TVector3 & | mom, | ||
const int | pdgCode, | ||
TVector3 | posError = TVector3(1.0, 1.0, 1.0) , |
||
TVector3 | dirError = TVector3(1.0, 1.0, 1.0) |
||
) |
|
inline |
Definition at line 148 of file GFTrackCand.h.
|
inline |
Definition at line 149 of file GFTrackCand.h.
|
inline |
Definition at line 150 of file GFTrackCand.h.
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
Definition at line 182 of file GFTrackCand.h.
|
private |
Definition at line 177 of file GFTrackCand.h.
|
private |
Definition at line 183 of file GFTrackCand.h.
|
private |
Definition at line 190 of file GFTrackCand.h.
|
private |
Definition at line 187 of file GFTrackCand.h.
|
private |
Definition at line 178 of file GFTrackCand.h.
|
private |
Definition at line 184 of file GFTrackCand.h.
|
private |
Definition at line 193 of file GFTrackCand.h.
|
private |
Definition at line 191 of file GFTrackCand.h.
|
private |
Definition at line 179 of file GFTrackCand.h.
|
private |
Definition at line 189 of file GFTrackCand.h.
|
private |
Definition at line 186 of file GFTrackCand.h.
|
private |
Definition at line 188 of file GFTrackCand.h.
|
private |
Definition at line 180 of file GFTrackCand.h.