33 #include <TDatabasePDG.h>
78 unsigned int& hitId)
const {
99 unsigned int& planeId)
const {
107 std::cerr <<
"the method GFTrackCand::getCurv() is deprecated. Use the setter/getter for the 6D state or pos,mom instead instead\n";
110 std::cerr <<
"the method GFTrackCand::getDip() is deprecated. Use the setter/getter for the 6D state or pos,mom instead instead\n";
113 std::vector<unsigned int>
getHitIDs(
int detId = -1)
const;
114 std::vector<unsigned int>
GetHitIDs(
int detId = -1)
const;
116 std::vector<unsigned int>
GetDetIDs()
const { std::cerr <<
"the method GFTrackCand::GetDetIDs() is deprecated. Use GFTrackCand::getDetIDs() instead\n";
return fDetId;}
119 std::cerr <<
"the method GFTrackCand::GetRhos() is deprecated. Use GFTrackCand::getRhos() instead\n";
123 std::set<unsigned int> retVal;
124 for (
unsigned int i = 0; i <
fDetId.size(); ++i) {
125 retVal.insert(
fDetId.at(i));
144 std::cerr <<
"the method GFTrackCand::getDirSeed() is deprecated. Use GFTrackCand::getStateSeed() or GFTrackCand::getMomSeed() instead\n";
151 std::cerr <<
"the method GFTrackCand::getQoverPseed() is deprecated. Use GFTrackCand::getStateSeed() or GFTrackCand::getMomSeed() and/or getChargeSeed() instead\n";
169 void addHit(
unsigned int detId,
unsigned int hitId,
double rho = 0.,
unsigned int planeId = 0);
171 std::cerr <<
"the method GFTrackCand::setCurv is deprecated. Use GFTrackCand::set6DSeed instead\n";
175 std::cerr <<
"the method GFTrackCand::setDip is deprecated. Use GFTrackCand::set6DSeed instead\n";
184 bool hitInTrack(
unsigned int detId,
unsigned int hitId)
const;
188 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));
193 TParticlePDG*
part = TDatabasePDG::Instance()->GetParticle(
fPdg);
194 fQ = part->Charge() / (3.);
203 void sortHits(std::vector<unsigned int> indices);
209 void Print(
const Option_t* =
"")
const ;
214 void set6DSeed(
const TMatrixD& state6D,
const double charge, TMatrixD cov6D = -1.0 * TMatrixD(TMatrixD::kUnit, TMatrixD(6, 6))) {
222 void set6DSeedAndPdgCode(
const TMatrixD& state6D,
const int pdgCode, TMatrixD cov6D = -1.0 * TMatrixD(TMatrixD::kUnit, TMatrixD(6, 6))) {
231 void setPosMomSeed(
const TVector3& pos,
const TVector3& mom,
const double charge, TMatrixD cov6D = -1.0 * TMatrixD(TMatrixD::kUnit, TMatrixD(6, 6))) {
244 void setPosMomSeedAndPdgCode(
const TVector3& pos,
const TVector3& mom,
const int pdgCode, TMatrixD cov6D = -1.0 * TMatrixD(TMatrixD::kUnit, TMatrixD(6, 6))) {