74 GFTrackCand(
double curv,
double dip,
double inv, std::vector<unsigned int> detIDs, std::vector<unsigned int> hitIDs);
76 GFTrackCand(
double curv,
double dip,
double inv, std::vector<unsigned int> detIDs, std::vector<unsigned int> hitIDs, std::vector<double> rhos);
86 unsigned int& hitId)
const {
107 unsigned int& planeId)
const {
117 std::vector<unsigned int>
GetHitIDs(
int detId=-1);
121 std::set<unsigned int> retVal;
122 for(
unsigned int i=0;
i<
fDetId.size();++
i){
143 void addHit(
unsigned int detId,
unsigned int hitId,
double rho=0.,
unsigned int planeId=0);
152 bool HitInTrack(
unsigned int detId,
unsigned int hitId);
160 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));
bool HitInTrack(unsigned int detId, unsigned int hitId)
Test if hit already is part of this track candidate.
unsigned int getNHits() const
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...
friend bool operator==(const GFTrackCand &lhs, const GFTrackCand &rhs)
std::set< unsigned int > GetUniqueDetIDs() const
std::vector< unsigned int > fHitId
TVector3 getPosSeed() const
get the seed value for track: pos
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.
std::vector< unsigned int > fPlaneId
void setMcTrackId(int i)
set the MCT track id, for MC simulations
void setTrackSeed(const TVector3 &pos, const TVector3 &direction, const double qop)
set the seed values for track: pos, direction, q/p
TVector3 getDirSeed() const
get the seed value for track: direction
std::vector< double > GetRhos() const
std::vector< unsigned int > GetHitIDs(int detId=-1)
double getQoverPseed() const
get the seed value for track: qoverp
void getHit(unsigned int i, unsigned int &detId, unsigned int &hitId) const
Get detector ID and cluster index (hitId) for hit number i.
void append(const GFTrackCand &)
TVector3 getDirError() const
get the seed value for track: error on direction (standard deviation)
void setInverted(bool f=true)
Track candidate – a list of cluster indices.
int getMcTrackId() const
get the MCT track id, for MC simulations - def. value -1
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...
std::vector< double > fRho
TVector3 getPosError() const
get the seed value for track: error on pos (standard deviation)
int getPdgCode() const
get the PDG code
std::vector< unsigned int > fDetId
void addHit(unsigned int detId, unsigned int hitId, double rho=0., unsigned int planeId=0)
void setPdgCode(int pdgCode)
set a particle hypothesis in form of a PDG code
std::vector< unsigned int > GetDetIDs() const