FairRoot/PandaRoot
|
Track candidate – a list of cluster indices. More...
#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 |
get the seed value for track: error on pos (standard deviation) More... | |
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 &pos, const TVector3 &direction, const 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)) |
set the seed values for track: pos, momentum, pdgCode, pos error, momentum error (errors are optional and will be set to 1,1,1 if not given) More... | |
void | setPdgCode (int pdgCode) |
set a particle hypothesis in form of a PDG code More... | |
void | append (const GFTrackCand &) |
void | reset () |
void | Print () 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 |
TVector3 | fPosError |
TVector3 | fDirError |
double | fQoverpSeed |
int | fMcTrackId |
int | fPdg |
Friends | |
bool | operator== (const GFTrackCand &lhs, const GFTrackCand &rhs) |
Track candidate – a list of cluster indices.
The main task of the GFTrackCand object is to store a list of indices to cluster objects. Each cluster in the Track is identified by it's detector ID and it's index in the corresponding TClonesArray. Also there is a ordering parameter rho, to order hits. Optionally, plane indices for the hits can be stored (most importantly for fitting with the GFDaf). This information is used by the RecoHitFactory to automatically load RecoHits into a Track. Through this it is possible to define Tracks over an arbitrary number of different detectors.
In addition GFTrackCand offers members to store starting values for the fit. However this information is not autmatically used in genfit!!! But a pointer to a GFTrackCand can be passed to the RKTrackRep to make use of this information.
Definition at line 55 of file GFTrackCand.h.
GFTrackCand::GFTrackCand | ( | ) |
GFTrackCand::~GFTrackCand | ( | ) |
Definition at line 28 of file GFTrackCand.cxx.
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 30 of file GFTrackCand.cxx.
References fDetId, fHitId, and fRho.
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 36 of file GFTrackCand.cxx.
References fDetId, fHitId, and fRho.
void GFTrackCand::addHit | ( | unsigned int | detId, |
unsigned int | hitId, | ||
double | rho = 0. , |
||
unsigned int | planeId = 0 |
||
) |
Definition at line 44 of file GFTrackCand.cxx.
References fDetId, fHitId, fPlaneId, and fRho.
Referenced by GFTrack::addHit(), append(), PndHypDPatternRecoTask::Exec(), and PndTrackCand2GenfitTrackCand().
void GFTrackCand::append | ( | const GFTrackCand & | rhs | ) |
Definition at line 106 of file GFTrackCand.cxx.
References addHit(), getHit(), getNHits(), and i.
|
inline |
Definition at line 114 of file GFTrackCand.h.
References fCurv.
Referenced by PndMvdEventAnaTask::Exec().
|
inline |
|
inline |
Definition at line 115 of file GFTrackCand.h.
References fDip.
Referenced by PndMvdEventAnaTask::Exec().
|
inline |
get the seed value for track: error on direction (standard deviation)
Definition at line 139 of file GFTrackCand.h.
References fDirError.
Referenced by RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: direction
Definition at line 133 of file GFTrackCand.h.
References fDirSeed.
Referenced by PndHypKalmanTask::Exec(), PndLmdKalmanTask::Exec(), and RKTrackRep::RKTrackRep().
|
inline |
Get detector ID and cluster index (hitId) for hit number i.
Definition at line 84 of file GFTrackCand.h.
References fDetId, fHitId, and getNHits().
Referenced by PndTrackCandDraw::AddBoxesTrackCand(), append(), GFRecoHitFactory::createMany(), PndHypMicroIdealWriter::Exec(), PndHypMicroWriter::Exec(), PndMvdEventAnaTask::Exec(), PndLmdKalmanTask::Exec(), PndHypDPatternRecoTask::Exec(), PndHypIdealPRTask::Exec(), PndMvdAllDataEventAna::FillHitProjHistos(), GenfitTrackCand2PndTrackCand(), GFTrack::getResiduals(), PndSciTAnaIdeal::GetRiemannTrack(), PndMvdEventAnaTask::GetTrackCandsForMCTrack(), GFTrack::mergeHits(), PndHypIdealTrackFinderTask::PrintResult(), and PndMvdEventAnaTask::PrintTrackCand().
|
inline |
Get detector ID and cluster index (hitId) for hit number i with ordering parameter rho.
Definition at line 93 of file GFTrackCand.h.
References fDetId, fHitId, fRho, and getNHits().
std::vector< unsigned int > GFTrackCand::GetHitIDs | ( | int | detId = -1 | ) |
|
inline |
Get detector ID and cluster index (hitId) for hit number i with plane id.
Definition at line 104 of file GFTrackCand.h.
References fDetId, fHitId, fPlaneId, and getNHits().
Referenced by GFTrack::getHitsByPlane().
|
inline |
get the MCT track id, for MC simulations - def. value -1
Definition at line 129 of file GFTrackCand.h.
References fMcTrackId.
Referenced by GenfitTrackCand2PndTrackCand().
|
inline |
Definition at line 113 of file GFTrackCand.h.
References fDetId.
Referenced by PndTrackCandDraw::AddBoxesTrackCand(), append(), GFRecoHitFactory::createMany(), PndMvdEventAnaTask::Exec(), PndHypMicroIdealWriter::Exec(), PndHypMicroWriter::Exec(), PndHypKalmanTask::Exec(), PndLmdKalmanTask::Exec(), PndHypDPatternRecoTask::Exec(), PndHypIdealPRTask::Exec(), GFTrack::fillGeoTrack(), PndMvdAllDataEventAna::FillHitProjHistos(), GenfitTrackCand2PndTrackCand(), getHit(), GFTrack::getHitsByPlane(), getHitWithPlane(), PndSciTAnaIdeal::GetRiemannTrack(), PndMvdEventAnaTask::GetTrackCandsForMCTrack(), operator==(), PndHypIdealTrackFinderTask::PrintResult(), and PndMvdEventAnaTask::PrintTrackCand().
|
inline |
get the PDG code
Definition at line 141 of file GFTrackCand.h.
References fPdg.
Referenced by PndHypKalmanTask::Exec(), and RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: error on pos (standard deviation)
Definition at line 137 of file GFTrackCand.h.
References fPosError.
Referenced by RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: pos
Definition at line 131 of file GFTrackCand.h.
References fPosSeed.
Referenced by PndHypKalmanTask::Exec(), PndLmdKalmanTask::Exec(), and RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: qoverp
Definition at line 135 of file GFTrackCand.h.
References fQoverpSeed.
Referenced by PndHypKalmanTask::Exec(), and PndHypDKalmanTask::Exec().
|
inline |
|
inline |
Definition at line 120 of file GFTrackCand.h.
bool GFTrackCand::HitInTrack | ( | unsigned int | detId, |
unsigned int | hitId | ||
) |
Test if hit already is part of this track candidate.
Definition at line 73 of file GFTrackCand.cxx.
References fDetId, fHitId, and i.
|
inline |
void GFTrackCand::Print | ( | ) | const |
Definition at line 90 of file GFTrackCand.cxx.
References fDetId, fDirSeed, fHitId, fMcTrackId, fPosSeed, fQoverpSeed, fRho, and i.
void GFTrackCand::reset | ( | ) |
void 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) |
||
) |
set the seed values for track: pos, momentum, pdgCode, pos error, momentum error (errors are optional and will be set to 1,1,1 if not given)
Definition at line 117 of file GFTrackCand.cxx.
References fDirError, fDirSeed, fPdg, fPosError, fPosSeed, fQoverpSeed, mom, and pos.
|
inline |
Definition at line 144 of file GFTrackCand.h.
Referenced by PndHypIdealTrackFinderTask::AddAndExpand().
|
inline |
Definition at line 145 of file GFTrackCand.h.
Referenced by PndHypIdealTrackFinderTask::AddAndExpand().
|
inline |
Definition at line 146 of file GFTrackCand.h.
Referenced by PndHypIdealTrackFinderTask::AddAndExpand().
|
inline |
set the MCT track id, for MC simulations
Definition at line 149 of file GFTrackCand.h.
References fMcTrackId, and i.
Referenced by PndHypIdealPRTask::AddHitToTrack(), and PndTrackCand2GenfitTrackCand().
|
inline |
set a particle hypothesis in form of a PDG code
Definition at line 163 of file GFTrackCand.h.
References fPdg.
Referenced by PndHypIdealPRTask::AddHitToTrack().
|
inline |
set the seed values for track: pos, direction, q/p
Definition at line 155 of file GFTrackCand.h.
References fDirSeed, fPosSeed, fQoverpSeed, and pos.
Referenced by PndHypIdealPRTask::AddHitToTrack().
|
friend |
Definition at line 83 of file GFTrackCand.cxx.
|
private |
Definition at line 178 of file GFTrackCand.h.
|
private |
Definition at line 173 of file GFTrackCand.h.
Referenced by addHit(), GetDetIDs(), getHit(), GetHitIDs(), getHitWithPlane(), getNHits(), GetUniqueDetIDs(), GFTrackCand(), HitInTrack(), operator==(), Print(), and reset().
|
private |
Definition at line 179 of file GFTrackCand.h.
|
private |
Definition at line 185 of file GFTrackCand.h.
Referenced by getDirError(), and setComplTrackSeed().
|
private |
Definition at line 183 of file GFTrackCand.h.
Referenced by getDirSeed(), Print(), setComplTrackSeed(), and setTrackSeed().
|
private |
Definition at line 174 of file GFTrackCand.h.
Referenced by addHit(), getHit(), GetHitIDs(), getHitWithPlane(), GFTrackCand(), HitInTrack(), operator==(), Print(), and reset().
|
private |
Definition at line 180 of file GFTrackCand.h.
Referenced by inverted(), and setInverted().
|
private |
Definition at line 187 of file GFTrackCand.h.
Referenced by getMcTrackId(), Print(), and setMcTrackId().
|
private |
Definition at line 188 of file GFTrackCand.h.
Referenced by getPdgCode(), setComplTrackSeed(), and setPdgCode().
|
private |
Definition at line 175 of file GFTrackCand.h.
Referenced by addHit(), and getHitWithPlane().
|
private |
Definition at line 184 of file GFTrackCand.h.
Referenced by getPosError(), and setComplTrackSeed().
|
private |
Definition at line 182 of file GFTrackCand.h.
Referenced by getPosSeed(), Print(), setComplTrackSeed(), and setTrackSeed().
|
private |
Definition at line 186 of file GFTrackCand.h.
Referenced by getQoverPseed(), Print(), setComplTrackSeed(), and setTrackSeed().
|
private |
Definition at line 176 of file GFTrackCand.h.
Referenced by addHit(), getHit(), GetRhos(), GFTrackCand(), and Print().