LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#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 31 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 33 of file GFTrackCand.cxx.
References fDetId, fHitId, fRho, and GFException::setFatal().
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 51 of file GFTrackCand.cxx.
References fDetId, fHitId, and GFException::setFatal().
void genf::GFTrackCand::addHit | ( | unsigned int | detId, |
unsigned int | hitId, | ||
double | rho = 0. , |
||
unsigned int | planeId = 0 |
||
) |
Definition at line 74 of file GFTrackCand.cxx.
References fDetId, fHitId, fPlaneId, and fRho.
Referenced by genf::GFTrack::addHit(), append(), and getPdgCode().
void genf::GFTrackCand::append | ( | const GFTrackCand & | rhs | ) |
Definition at line 139 of file GFTrackCand.cxx.
References addHit(), getHit(), and getNHits().
Referenced by setPdgCode().
|
inline |
|
inline |
|
inline |
|
inline |
get the seed value for track: error on direction (standard deviation)
Definition at line 160 of file GFTrackCand.h.
References fDirError.
Referenced by genf::RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: direction
Definition at line 155 of file GFTrackCand.h.
References fDirSeed.
Referenced by genf::RKTrackRep::RKTrackRep().
|
inline |
Get detector ID and cluster index (hitId) for hit number i.
Definition at line 93 of file GFTrackCand.h.
References fDetId, fHitId, getNHits(), and GFException::setFatal().
Referenced by append(), genf::GFRecoHitFactory::createMany(), genf::GFTrack::getResiduals(), and genf::GFTrack::mergeHits().
|
inline |
Get detector ID and cluster index (hitId) for hit number i with ordering parameter rho.
Definition at line 105 of file GFTrackCand.h.
References fDetId, fHitId, fRho, getNHits(), and GFException::setFatal().
std::vector< unsigned int > genf::GFTrackCand::GetHitIDs | ( | int | detId = -1 | ) |
Definition at line 85 of file GFTrackCand.cxx.
References fDetId, fHitId, and n.
Referenced by inverted().
|
inline |
Get detector ID and cluster index (hitId) for hit number i with plane id.
Definition at line 120 of file GFTrackCand.h.
References fDetId, fHitId, fPlaneId, getNHits(), and GFException::setFatal().
Referenced by genf::GFTrack::getHitsByPlane().
|
inline |
get the MCT track id, for MC simulations - def. value -1
Definition at line 151 of file GFTrackCand.h.
References fMcTrackId.
|
inline |
Definition at line 134 of file GFTrackCand.h.
References fDetId.
Referenced by append(), genf::GFRecoHitFactory::createMany(), genf::GFTrack::fillGeoTrack(), getHit(), genf::GFTrack::getHitsByPlane(), getHitWithPlane(), and genf::operator==().
|
inline |
get the PDG code
Definition at line 162 of file GFTrackCand.h.
References addHit(), and fPdg.
Referenced by genf::RKTrackRep::RKTrackRep().
|
inline |
Definition at line 158 of file GFTrackCand.h.
References fPosError.
Referenced by genf::RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: pos
Definition at line 153 of file GFTrackCand.h.
References fPosSeed.
Referenced by genf::RKTrackRep::RKTrackRep().
|
inline |
get the seed value for track: qoverp
Definition at line 157 of file GFTrackCand.h.
References fQoverpSeed.
|
inline |
|
inline |
bool genf::GFTrackCand::HitInTrack | ( | unsigned int | detId, |
unsigned int | hitId | ||
) |
Test if hit already is part of this track candidate.
Definition at line 106 of file GFTrackCand.cxx.
References fDetId, and fHitId.
Referenced by setMcTrackId().
|
inline |
void genf::GFTrackCand::Print | ( | std::ostream & | out = std::cout | ) | const |
Definition at line 123 of file GFTrackCand.cxx.
References fDetId, fDirSeed, fHitId, fMcTrackId, fPosSeed, fQoverpSeed, fRho, and genf::PrintROOTobject().
Referenced by setPdgCode().
|
inlineprivatevirtual |
Definition at line 220 of file GFTrackCand.h.
References operator==, and GFException::setFatal().
void genf::GFTrackCand::reset | ( | ) |
Definition at line 100 of file GFTrackCand.cxx.
References fDetId, and fHitId.
Referenced by setPdgCode().
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) |
||
) |
Referenced by setTrackSeed().
|
inline |
|
inline |
Definition at line 167 of file GFTrackCand.h.
|
inline |
Definition at line 168 of file GFTrackCand.h.
|
inline |
set the MCT track id, for MC simulations
Definition at line 171 of file GFTrackCand.h.
References fMcTrackId, and HitInTrack().
|
inline |
|
inline |
set the seed values for track: pos, direction, q/p
Definition at line 177 of file GFTrackCand.h.
References d, fDirSeed, fPosSeed, fQoverpSeed, and setComplTrackSeed().
|
friend |
Referenced by Print().
|
private |
Definition at line 206 of file GFTrackCand.h.
|
private |
Definition at line 201 of file GFTrackCand.h.
Referenced by addHit(), GetDetIDs(), getHit(), GetHitIDs(), getHitWithPlane(), getNHits(), GetUniqueDetIDs(), GFTrackCand(), HitInTrack(), genf::operator==(), Print(), and reset().
|
private |
Definition at line 207 of file GFTrackCand.h.
|
private |
Definition at line 214 of file GFTrackCand.h.
Referenced by getDirError().
|
private |
Definition at line 211 of file GFTrackCand.h.
Referenced by getDirSeed(), Print(), and setTrackSeed().
|
private |
Definition at line 202 of file GFTrackCand.h.
Referenced by addHit(), getHit(), GetHitIDs(), getHitWithPlane(), GFTrackCand(), HitInTrack(), genf::operator==(), Print(), and reset().
|
private |
Definition at line 208 of file GFTrackCand.h.
Referenced by inverted(), and setInverted().
|
private |
Definition at line 217 of file GFTrackCand.h.
Referenced by getMcTrackId(), Print(), and setMcTrackId().
|
private |
Definition at line 215 of file GFTrackCand.h.
Referenced by getPdgCode(), and setPdgCode().
|
private |
Definition at line 203 of file GFTrackCand.h.
Referenced by addHit(), and getHitWithPlane().
|
private |
Definition at line 213 of file GFTrackCand.h.
Referenced by getPosError().
|
private |
Definition at line 210 of file GFTrackCand.h.
Referenced by getPosSeed(), Print(), and setTrackSeed().
|
private |
Definition at line 212 of file GFTrackCand.h.
Referenced by getQoverPseed(), Print(), and setTrackSeed().
|
private |
Definition at line 204 of file GFTrackCand.h.
Referenced by addHit(), getHit(), GetRhos(), GFTrackCand(), and Print().