FairRoot/PandaRoot
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GFAbsTrackRep Class Referenceabstract

Base Class for genfit track representations. Defines interface for track parameterizations. More...

#include <GFAbsTrackRep.h>

Inheritance diagram for GFAbsTrackRep:
GeaneTrackRep RKTrackRep

Public Member Functions

virtual GFAbsTrackRepclone () const =0
 
virtual GFAbsTrackRepprototype () const =0
 
virtual double extrapolate (const GFDetPlane &plane, TMatrixT< double > &statePred)
 returns the tracklength spanned in this extrapolation More...
 
 GFAbsTrackRep ()
 
 GFAbsTrackRep (int)
 
virtual ~GFAbsTrackRep ()
 
virtual void extrapolateToPoint (const TVector3 &point, TVector3 &poca, TVector3 &normVec)
 This method is to extrapolate the track to point of closest approach to a point in space. More...
 
virtual void extrapolateToLine (const TVector3 &point1, const TVector3 &point2, TVector3 &poca, TVector3 &normVec, TVector3 &poca_onwire)
 This method extrapolates to the point of closest approach to a line. More...
 
virtual double stepalong (double h, TVector3 &point, TVector3 &dir)
 make step of h cm along the track More...
 
virtual double extrapolate (const GFDetPlane &plane, TMatrixT< double > &statePred, TMatrixT< double > &covPred)=0
 Extrapolates the track to the given detectorplane. More...
 
double extrapolate (const GFDetPlane &plane)
 This changes the state and cov and plane of the rep. More...
 
unsigned int getDim () const
 returns dimension of state vector More...
 
virtual void Print () const
 
TMatrixT< double > getState () const
 
TMatrixT< double > getCov () const
 
double getStateElem (int i) const
 
double getCovElem (int i, int j) const
 
virtual TVector3 getPos (const GFDetPlane &pl)=0
 
virtual TVector3 getMom (const GFDetPlane &pl)=0
 
virtual void getPosMom (const GFDetPlane &pl, TVector3 &pos, TVector3 &mom)=0
 
virtual void getPosMomCov (const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
 method which gets position, momentum and 6x6 covariance matrix More...
 
virtual double getCharge () const =0
 
TVector3 getPos ()
 
TVector3 getMom ()
 
void getPosMomCov (TVector3 &pos, TVector3 &mom, TMatrixT< double > &c)
 
TMatrixT< double > getFirstState () const
 
TMatrixT< double > getFirstCov () const
 
GFDetPlane getFirstPlane () const
 
TMatrixT< double > getLastState () const
 
TMatrixT< double > getLastCov () const
 
GFDetPlane getLastPlane () const
 
double getChiSqu () const
 
double getRedChiSqu () const
 returns chi2/ndf More...
 
unsigned int getNDF () const
 
virtual void setData (const TMatrixT< double > &st, const GFDetPlane &pl, const TMatrixT< double > *cov=NULL, const TMatrixT< double > *aux=NULL)
 Puts the track representation in a given state. More...
 
void setCov (const TMatrixT< double > &aCov)
 
void setFirstState (const TMatrixT< double > &aState)
 
void setFirstCov (const TMatrixT< double > &aCov)
 
void setFirstPlane (const GFDetPlane &aPlane)
 
void setLastState (const TMatrixT< double > &aState)
 
void setLastCov (const TMatrixT< double > &aCov)
 
void setLastPlane (const GFDetPlane &aPlane)
 
const GFDetPlanegetReferencePlane () const
 
void setChiSqu (double aChiSqu)
 
void setNDF (unsigned int n)
 
void addChiSqu (double aChiSqu)
 
void addNDF (unsigned int n)
 
void setStatusFlag (int _val)
 
virtual void switchDirection ()=0
 
bool setInverted (bool f=true)
 Deprecated. Should be removed soon. More...
 
bool getStatusFlag ()
 
virtual void reset ()
 
virtual bool hasAuxInfo ()
 See if the track representation has auxillary information stored. More...
 
virtual const TMatrixT< double > * getAuxInfo (const GFDetPlane &)
 Get auxillary information from the track representation. More...
 

Protected Attributes

unsigned int fDimension
 Dimensionality of track representation. More...
 
TMatrixT< double > fState
 The vector of track parameters. More...
 
TMatrixT< double > fCov
 The covariance matrix. More...
 
double fChiSqu
 chiSqu of the track fit More...
 
unsigned int fNdf
 
int fStatusFlag
 status of track representation: 0 means everything's OK More...
 
bool fInverted
 specifies the direction of flight of the particle More...
 
TMatrixT< double > fFirstState
 state, cov and plane for first and last point in fit More...
 
TMatrixT< double > fFirstCov
 
TMatrixT< double > fLastState
 
TMatrixT< double > fLastCov
 
GFDetPlane fFirstPlane
 
GFDetPlane fLastPlane
 
GFDetPlane fRefPlane
 

Private Member Functions

void Abort (std::string method)
 

Detailed Description

Base Class for genfit track representations. Defines interface for track parameterizations.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)

It is important to understand the difference between a track and a track representation in genfit:

All track tepresentations must inherit GFAbsTrackRep to be available in genfit. Algorithms in genfit use this class as interface to access track parameters

Provides:

The track extrapolation engine can be exchanged in genfit. Or one can even use more than one engine in parallel! In order to use a track extrapolation engine (like e.g. GEANE) with genfit one has to write a TrackRep class that inherits from GFAbsTrackRep. This makes it possible to uses different track extrapolation codes within a unified framework without major changes in the detector code.

There is only one thing one has to do to use a specific track representation together with the hits from a detector: add the respective code in the GFAbsRecoHit::getHMatrix method implementation of the RecoHit in question.

Definition at line 80 of file GFAbsTrackRep.h.

Constructor & Destructor Documentation

GFAbsTrackRep::GFAbsTrackRep ( )

Definition at line 23 of file GFAbsTrackRep.cxx.

23  : fDimension(5),fState(5,1), fCov(5,5), fChiSqu(0), fNdf(0), fStatusFlag(0), fInverted(false), fFirstState(5,1), fFirstCov(5,5), fLastState(5,1), fLastCov(5,5)
24 {
25 }
TMatrixT< double > fLastState
TMatrixT< double > fFirstCov
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:85
unsigned int fNdf
Definition: GFAbsTrackRep.h:95
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
bool fInverted
specifies the direction of flight of the particle
int fStatusFlag
status of track representation: 0 means everything's OK
Definition: GFAbsTrackRep.h:98
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
TMatrixT< double > fLastCov
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
GFAbsTrackRep::GFAbsTrackRep ( int  dim)

Definition at line 27 of file GFAbsTrackRep.cxx.

27  : fDimension(dim), fState(dim,1), fCov(dim,dim), fChiSqu(0), fNdf(0), fStatusFlag(0), fInverted(false), fFirstState(dim,1), fFirstCov(dim,dim), fLastState(dim,1), fLastCov(dim,dim)
28 {
29 }
TMatrixT< double > fLastState
TMatrixT< double > fFirstCov
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:85
unsigned int fNdf
Definition: GFAbsTrackRep.h:95
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
bool fInverted
specifies the direction of flight of the particle
int fStatusFlag
status of track representation: 0 means everything's OK
Definition: GFAbsTrackRep.h:98
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
TMatrixT< double > fLastCov
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
GFAbsTrackRep::~GFAbsTrackRep ( )
virtual

Definition at line 31 of file GFAbsTrackRep.cxx.

31 {}

Member Function Documentation

void GFAbsTrackRep::Abort ( std::string  method)
private

Definition at line 47 of file GFAbsTrackRep.cxx.

Referenced by extrapolateToLine(), extrapolateToPoint(), getPosMomCov(), and stepalong().

47  {
48  std::cerr << method << " as implemented in " << __FILE__
49  << " was called. This means that this feature was used "
50  << "in a track rep which didnt overwrite this method. "
51  << std::endl << "C++ throw;" << std::endl;
52  //system call abort
53  throw;
54 }
void GFAbsTrackRep::addChiSqu ( double  aChiSqu)
inline

Definition at line 303 of file GFAbsTrackRep.h.

Referenced by GFKalman::processHit().

303  {
304  fChiSqu += aChiSqu;
305  }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
void GFAbsTrackRep::addNDF ( unsigned int  n)
inline

Definition at line 306 of file GFAbsTrackRep.h.

References n.

Referenced by GFKalman::processHit().

306  {
307  fNdf += n;
308  }
int n
unsigned int fNdf
Definition: GFAbsTrackRep.h:95
virtual GFAbsTrackRep* GFAbsTrackRep::clone ( ) const
pure virtual
double GFAbsTrackRep::extrapolate ( const GFDetPlane plane,
TMatrixT< double > &  statePred 
)
virtual

returns the tracklength spanned in this extrapolation

There is a default implementation in GFAbsTrackRep.cxx which just drops the predicted covaraiance. If your trackrep has a way to extrapolate without giving a correct cov (that would be faster probably), please overwrite it.

Reimplemented in RKTrackRep, and GeaneTrackRep.

Definition at line 42 of file GFAbsTrackRep.cxx.

References fDimension.

Referenced by extrapolate(), GFTools::getBiasedSmoothedData(), GFKalman::getChi2Hit(), GFTrack::getResiduals(), GFTools::getSmoothedData(), and GFKalman::processHit().

42  {
43  TMatrixT<double> cov(fDimension,fDimension);
44  return extrapolate(plane,statePred,cov);
45 }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:85
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< double > &statePred)
returns the tracklength spanned in this extrapolation
virtual double GFAbsTrackRep::extrapolate ( const GFDetPlane plane,
TMatrixT< double > &  statePred,
TMatrixT< double > &  covPred 
)
pure virtual

Extrapolates the track to the given detectorplane.

Results are put into statePred and covPred This method does NOT alter the state of the object!

Implemented in RKTrackRep, and GeaneTrackRep.

double GFAbsTrackRep::extrapolate ( const GFDetPlane plane)

This changes the state and cov and plane of the rep.

This method extrapolates to to the plane and sets the results of state, cov and also plane in itself.

Definition at line 33 of file GFAbsTrackRep.cxx.

References extrapolate(), fDimension, and setData().

33  {
34  TMatrixT<double> statePred(fDimension,1);
35  TMatrixT<double> covPred(fDimension,fDimension);
36  double retVal = extrapolate(plane,statePred,covPred);
37  setData(statePred,plane,&covPred);
38  return retVal;
39 }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:85
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< double > &statePred)
returns the tracklength spanned in this extrapolation
virtual void setData(const TMatrixT< double > &st, const GFDetPlane &pl, const TMatrixT< double > *cov=NULL, const TMatrixT< double > *aux=NULL)
Puts the track representation in a given state.
void GFAbsTrackRep::extrapolateToLine ( const TVector3 &  point1,
const TVector3 &  point2,
TVector3 &  poca,
TVector3 &  normVec,
TVector3 &  poca_onwire 
)
virtual

This method extrapolates to the point of closest approach to a line.

This method extrapolates to the POCA to a line, i.e. a wire. There is a default implementation just like for the extrapolateToPoca for trackReps which do not need this feature, which will abort the execution if it is ever called.

Reimplemented in RKTrackRep, and GeaneTrackRep.

Definition at line 62 of file GFAbsTrackRep.cxx.

References Abort().

Referenced by GFWirepointHitPolicy::detPlane(), and GFWireHitPolicy::detPlane().

66  {//TVector3& poca_onwire){
67  Abort("extrapolateToLine()");
68 }
void Abort(std::string method)
void GFAbsTrackRep::extrapolateToPoint ( const TVector3 &  point,
TVector3 &  poca,
TVector3 &  normVec 
)
virtual

This method is to extrapolate the track to point of closest approach to a point in space.

There is an empty implementation of this method in GFAbsTrackRep.cxx, which will just abort with an error message. One can overwrite this method if one wishes to implement a track representation, which should have this feature. An example of an experiment in which you would not need this feature would be track fitting (not so much vertexing) in an experiment with only planar trackers like silicons or planar wire chambers and such. An example where you would need it, would be a TPC where you have to fit the track to space points, or other drift chambers with complicated hit topology.

Reimplemented in RKTrackRep, and GeaneTrackRep.

Definition at line 56 of file GFAbsTrackRep.cxx.

References Abort().

Referenced by GFSpacepointHitPolicy::detPlane(), and trackProximity().

58  {//TVector3& normVec
59  Abort("extrapolateToPoca()");
60 }
void Abort(std::string method)
virtual const TMatrixT<double>* GFAbsTrackRep::getAuxInfo ( const GFDetPlane )
inlinevirtual

Get auxillary information from the track representation.

AuxInfo is a mechanism which allows creators of track repersentations to hand out any information they like (as long as it is compatible with a TMatrixT<double>). It should be used if setData requires additional information to update the representation, but it can also be used for debugging information if needed. See also the documentation of GFAbsTrackRep::setData().

Reimplemented in RKTrackRep.

Definition at line 342 of file GFAbsTrackRep.h.

Referenced by GFKalman::processHit().

342  { //(const GFDetPlane& pl)
343  return NULL;
344  }
virtual double GFAbsTrackRep::getCharge ( ) const
pure virtual

Implemented in RKTrackRep, and GeaneTrackRep.

Referenced by GFTrack::getCharge().

double GFAbsTrackRep::getChiSqu ( ) const
inline

Definition at line 244 of file GFAbsTrackRep.h.

References fChiSqu.

Referenced by GFTrack::getChiSqu(), and getRedChiSqu().

244  {
245  return fChiSqu;
246  }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
TMatrixT<double> GFAbsTrackRep::getCov ( ) const
inline

Definition at line 198 of file GFAbsTrackRep.h.

References fCov.

Referenced by GFTrack::blowUpCovs(), GFKalman::processHit(), and GFKalman::processTrack().

198  {
199  return fCov;
200  }
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
double GFAbsTrackRep::getCovElem ( int  i,
int  j 
) const
inline

Definition at line 203 of file GFAbsTrackRep.h.

References fCov.

203 {return fCov(i,j);}
Int_t i
Definition: run_full.C:25
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
unsigned int GFAbsTrackRep::getDim ( ) const
inline

returns dimension of state vector

Definition at line 191 of file GFAbsTrackRep.h.

References fDimension.

Referenced by GeaneTrackRep::extrapolateToPoint(), GFKalman::getChi2Hit(), getNDF(), GFTrack::getResiduals(), and GFKalman::processHit().

191 {return fDimension;}
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:85
TMatrixT<double> GFAbsTrackRep::getFirstCov ( ) const
inline

Definition at line 229 of file GFAbsTrackRep.h.

References fFirstCov.

Referenced by GenfitTrack2PndTrack().

229  {
230  return fFirstCov;
231  }
TMatrixT< double > fFirstCov
GFDetPlane GFAbsTrackRep::getFirstPlane ( ) const
inline

Definition at line 232 of file GFAbsTrackRep.h.

References fFirstPlane.

Referenced by GenfitTrack2PndTrack().

232  {
233  return fFirstPlane;
234  }
GFDetPlane fFirstPlane
TMatrixT<double> GFAbsTrackRep::getFirstState ( ) const
inline

Definition at line 226 of file GFAbsTrackRep.h.

References fFirstState.

Referenced by GenfitTrack2PndTrack().

226  {
227  return fFirstState;
228  }
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
TMatrixT<double> GFAbsTrackRep::getLastCov ( ) const
inline

Definition at line 238 of file GFAbsTrackRep.h.

References fLastCov.

Referenced by GenfitTrack2PndTrack().

238  {
239  return fLastCov;
240  }
TMatrixT< double > fLastCov
GFDetPlane GFAbsTrackRep::getLastPlane ( ) const
inline

Definition at line 241 of file GFAbsTrackRep.h.

References fLastPlane.

Referenced by GenfitTrack2PndTrack().

241  {
242  return fLastPlane;
243  }
GFDetPlane fLastPlane
TMatrixT<double> GFAbsTrackRep::getLastState ( ) const
inline

Definition at line 235 of file GFAbsTrackRep.h.

References fLastState.

Referenced by GenfitTrack2PndTrack().

235  {
236  return fLastState;
237  }
TMatrixT< double > fLastState
virtual TVector3 GFAbsTrackRep::getMom ( const GFDetPlane pl)
pure virtual
TVector3 GFAbsTrackRep::getMom ( )
inline
unsigned int GFAbsTrackRep::getNDF ( ) const
inline

Definition at line 252 of file GFAbsTrackRep.h.

References getDim().

Referenced by GFTrack::getNDF(), and getRedChiSqu().

252  {
253  if(fNdf>getDim()) return fNdf-getDim();
254  return 0;
255  }
unsigned int fNdf
Definition: GFAbsTrackRep.h:95
unsigned int getDim() const
returns dimension of state vector
virtual TVector3 GFAbsTrackRep::getPos ( const GFDetPlane pl)
pure virtual
TVector3 GFAbsTrackRep::getPos ( )
inline

Definition at line 220 of file GFAbsTrackRep.h.

References getPos().

Referenced by GeaneTrackRep::extrapolateToLine(), and getPos().

220 {return getPos(fRefPlane);}
GFDetPlane fRefPlane
TVector3 getPos()
virtual void GFAbsTrackRep::getPosMom ( const GFDetPlane pl,
TVector3 &  pos,
TVector3 &  mom 
)
pure virtual

Implemented in RKTrackRep, and GeaneTrackRep.

void GFAbsTrackRep::getPosMomCov ( const GFDetPlane pl,
TVector3 &  pos,
TVector3 &  mom,
TMatrixT< double > &  cov 
)
virtual

method which gets position, momentum and 6x6 covariance matrix

default implementation in cxx file, if a ConcreteTrackRep can not implement this functionality

Reimplemented in RKTrackRep, and GeaneTrackRep.

Definition at line 79 of file GFAbsTrackRep.cxx.

References Abort().

Referenced by getPosMomCov(), and GFTrack::getPosMomCov().

79  {//const GFDetPlane& pl,TVector3& pos,TVector3& mom,TMatrixT<double>& cov
80  Abort("getPosMomCov()");
81 }
void Abort(std::string method)
void GFAbsTrackRep::getPosMomCov ( TVector3 &  pos,
TVector3 &  mom,
TMatrixT< double > &  c 
)
inline

Definition at line 222 of file GFAbsTrackRep.h.

References getPosMomCov().

222  {
224  }
TVector3 pos
Double_t mom
Definition: plot_dirc.C:14
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< double > &cov)
method which gets position, momentum and 6x6 covariance matrix
GFDetPlane fRefPlane
double GFAbsTrackRep::getRedChiSqu ( ) const
inline

returns chi2/ndf

Definition at line 248 of file GFAbsTrackRep.h.

References getChiSqu(), and getNDF().

Referenced by GFTrack::getRedChiSqu().

248  {
249  if(getNDF()>0) return getChiSqu()/getNDF();
250  return 0;
251  }
double getChiSqu() const
unsigned int getNDF() const
const GFDetPlane& GFAbsTrackRep::getReferencePlane ( ) const
inline

Definition at line 295 of file GFAbsTrackRep.h.

References fRefPlane.

Referenced by GFKalman::processHit(), and GFKalman::processTrack().

295 {return fRefPlane;}
GFDetPlane fRefPlane
TMatrixT<double> GFAbsTrackRep::getState ( ) const
inline

Definition at line 195 of file GFAbsTrackRep.h.

References fState.

Referenced by GFTrack::fillGeoTrack(), GFTrack::getResiduals(), GFKalman::processHit(), and GFKalman::processTrack().

195  {
196  return fState;
197  }
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
double GFAbsTrackRep::getStateElem ( int  i) const
inline

Definition at line 202 of file GFAbsTrackRep.h.

References fState.

202 {return fState(i,0);}
Int_t i
Definition: run_full.C:25
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
bool GFAbsTrackRep::getStatusFlag ( )
inline

Definition at line 318 of file GFAbsTrackRep.h.

References fStatusFlag.

Referenced by GFTrack::blowUpCovs(), PndHypMicroWriter::Exec(), PndHypMicroIdealWriter::Exec(), PndHypDKalmanTask::Exec(), GFKalman::fittingPass(), for(), and GFDaf::processTrack().

318  {
319  return fStatusFlag;
320  }
int fStatusFlag
status of track representation: 0 means everything's OK
Definition: GFAbsTrackRep.h:98
virtual bool GFAbsTrackRep::hasAuxInfo ( )
inlinevirtual

See if the track representation has auxillary information stored.

See if auxillary information is stored in the track representation. See the documentation of GFAbsTrackRep::getAuxInfo() for details.

Reimplemented in RKTrackRep.

Definition at line 329 of file GFAbsTrackRep.h.

Referenced by GFDaf::copySmoothing(), GFTools::getBiasedSmoothedData(), GFTools::getSmoothedData(), GFKalman::processHit(), and GFKalman::processTrack().

329  {
330  return false;
331  }
void GFAbsTrackRep::Print ( ) const
virtual

Definition at line 97 of file GFAbsTrackRep.cxx.

References fChiSqu, fCov, fRefPlane, fState, and GFDetPlane::Print().

Referenced by PndLmdBPRungeKuttaTask::Exec(), PndHypDKalmanTask::Exec(), and GFTrack::Print().

97  {
98  std::cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
99  std::cout<<"GFAbsTrackRep::Parameters at reference plane ";
100  fRefPlane.Print();
101  std::cout<<"GFAbsTrackRep::State"<<std::endl;
102  fState.Print();
103  std::cout<<"GFAbsTrackRep::Covariances"<<std::endl;
104  fCov.Print();
105  std::cout<<"GFAbsTrackRep::chi^2"<<std::endl;
106  std::cout<<fChiSqu<<std::endl;
107  std::cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
108 }
GFDetPlane fRefPlane
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
void Print() const
Definition: GFDetPlane.cxx:238
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
virtual GFAbsTrackRep* GFAbsTrackRep::prototype ( ) const
pure virtual

Implemented in RKTrackRep, and GeaneTrackRep.

void GFAbsTrackRep::reset ( )
virtual

Definition at line 84 of file GFAbsTrackRep.cxx.

References fCov, fFirstCov, fFirstState, fLastCov, fLastState, fRefPlane, fState, and GFDetPlane::set().

84  {
85  std::cout<<"GFAbsTrackRep::reset"<<std::endl;
86  TVector3 nullVec(0.,0.,0.);
87  fRefPlane.set(nullVec,nullVec,nullVec);
88  fState.Zero();
89  fCov.Zero();
90  fFirstState.Zero();
91  fFirstCov.Zero();
92  fLastState.Zero();
93  fLastCov.Zero();
94 }
void set(const TVector3 &o, const TVector3 &u, const TVector3 &v)
Definition: GFDetPlane.cxx:83
TMatrixT< double > fLastState
TMatrixT< double > fFirstCov
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
GFDetPlane fRefPlane
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
TMatrixT< double > fLastCov
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
void GFAbsTrackRep::setChiSqu ( double  aChiSqu)
inline

Definition at line 297 of file GFAbsTrackRep.h.

Referenced by GFKalman::fittingPass().

297  {
298  fChiSqu = aChiSqu;
299  }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:94
void GFAbsTrackRep::setCov ( const TMatrixT< double > &  aCov)
inline

Definition at line 273 of file GFAbsTrackRep.h.

Referenced by GFTrack::blowUpCovs().

273  {
274  fCov=aCov;
275  }
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
virtual void GFAbsTrackRep::setData ( const TMatrixT< double > &  st,
const GFDetPlane pl,
const TMatrixT< double > *  cov = NULL,
const TMatrixT< double > *  aux = NULL 
)
inlinevirtual

Puts the track representation in a given state.

This is used to update the track representation after the update of the Kalman filter was calculated.

IMPORTANT: One should be able to set the track representation to arbitraty values using this method. If the track representation needs additional information beside the state vector, the plane and the covariance, it has to be handed over via the "aux" Matrix. GFAbsTrackRep::getAuxInfo() should return the appropriate information. This is mandatory if smoothing is used.

Reimplemented in RKTrackRep.

Definition at line 267 of file GFAbsTrackRep.h.

Referenced by extrapolate(), GFTools::getBiasedSmoothedData(), GFTools::getSmoothedData(), GFKalman::processHit(), and RKTrackRep::setData().

267  {
268  fState=st;
269  fRefPlane=pl;
270  if(cov!=NULL) fCov=*cov;
271  if(aux!=NULL) {;}
272  }
GFDetPlane fRefPlane
TMatrixT< double > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:88
TMatrixT< double > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:91
void GFAbsTrackRep::setFirstCov ( const TMatrixT< double > &  aCov)
inline

Definition at line 279 of file GFAbsTrackRep.h.

279  {
280  fFirstCov = aCov;
281  }
TMatrixT< double > fFirstCov
void GFAbsTrackRep::setFirstPlane ( const GFDetPlane aPlane)
inline

Definition at line 282 of file GFAbsTrackRep.h.

282  {
283  fFirstPlane = aPlane;;
284  }
GFDetPlane fFirstPlane
void GFAbsTrackRep::setFirstState ( const TMatrixT< double > &  aState)
inline

Definition at line 276 of file GFAbsTrackRep.h.

276  {
277  fFirstState = aState;
278  }
TMatrixT< double > fFirstState
state, cov and plane for first and last point in fit
bool GFAbsTrackRep::setInverted ( bool  f = true)
inline

Deprecated. Should be removed soon.

Definition at line 316 of file GFAbsTrackRep.h.

References f.

316 {fInverted=f; return true;}
bool fInverted
specifies the direction of flight of the particle
TFile * f
Definition: bump_analys.C:12
void GFAbsTrackRep::setLastCov ( const TMatrixT< double > &  aCov)
inline

Definition at line 288 of file GFAbsTrackRep.h.

288  {
289  fLastCov = aCov;
290  }
TMatrixT< double > fLastCov
void GFAbsTrackRep::setLastPlane ( const GFDetPlane aPlane)
inline

Definition at line 291 of file GFAbsTrackRep.h.

291  {
292  fLastPlane = aPlane;;
293  }
GFDetPlane fLastPlane
void GFAbsTrackRep::setLastState ( const TMatrixT< double > &  aState)
inline

Definition at line 285 of file GFAbsTrackRep.h.

285  {
286  fLastState = aState;
287  }
TMatrixT< double > fLastState
void GFAbsTrackRep::setNDF ( unsigned int  n)
inline

Definition at line 300 of file GFAbsTrackRep.h.

References n.

Referenced by GFKalman::fittingPass().

300  {
301  fNdf = n;
302  }
int n
unsigned int fNdf
Definition: GFAbsTrackRep.h:95
void GFAbsTrackRep::setStatusFlag ( int  _val)
inline

Definition at line 309 of file GFAbsTrackRep.h.

Referenced by GFKalman::fittingPass(), and GFDaf::processTrack().

309  {
310  fStatusFlag = _val;
311  }
int fStatusFlag
status of track representation: 0 means everything's OK
Definition: GFAbsTrackRep.h:98
double GFAbsTrackRep::stepalong ( double  h,
TVector3 &  point,
TVector3 &  dir 
)
virtual

make step of h cm along the track

There is an emply implementation in GFAbsTrackRep.cxx which will abort (see one of the extrapolate methods above). This can be overwritten, if this feature is needed.

Reimplemented in RKTrackRep.

Definition at line 71 of file GFAbsTrackRep.cxx.

References Abort().

Referenced by trackProximity().

73  {//TVector3& dir){
74  Abort("stepalong()");
75  return -1.;
76 }
void Abort(std::string method)
virtual void GFAbsTrackRep::switchDirection ( )
pure virtual

Implemented in RKTrackRep, and GeaneTrackRep.

Referenced by GFKalman::switchDirection().

Member Data Documentation

double GFAbsTrackRep::fChiSqu
protected

chiSqu of the track fit

Definition at line 94 of file GFAbsTrackRep.h.

Referenced by getChiSqu(), and Print().

TMatrixT<double> GFAbsTrackRep::fCov
protected
unsigned int GFAbsTrackRep::fDimension
protected

Dimensionality of track representation.

Definition at line 85 of file GFAbsTrackRep.h.

Referenced by GeaneTrackRep::extrapolate(), extrapolate(), and getDim().

TMatrixT<double> GFAbsTrackRep::fFirstCov
protected

Definition at line 104 of file GFAbsTrackRep.h.

Referenced by getFirstCov(), and reset().

GFDetPlane GFAbsTrackRep::fFirstPlane
protected

Definition at line 108 of file GFAbsTrackRep.h.

Referenced by getFirstPlane().

TMatrixT<double> GFAbsTrackRep::fFirstState
protected

state, cov and plane for first and last point in fit

Definition at line 103 of file GFAbsTrackRep.h.

Referenced by getFirstState(), and reset().

bool GFAbsTrackRep::fInverted
protected

specifies the direction of flight of the particle

Definition at line 100 of file GFAbsTrackRep.h.

TMatrixT<double> GFAbsTrackRep::fLastCov
protected

Definition at line 107 of file GFAbsTrackRep.h.

Referenced by getLastCov(), and reset().

GFDetPlane GFAbsTrackRep::fLastPlane
protected

Definition at line 109 of file GFAbsTrackRep.h.

Referenced by getLastPlane().

TMatrixT<double> GFAbsTrackRep::fLastState
protected

Definition at line 106 of file GFAbsTrackRep.h.

Referenced by getLastState(), and reset().

unsigned int GFAbsTrackRep::fNdf
protected

Definition at line 95 of file GFAbsTrackRep.h.

GFDetPlane GFAbsTrackRep::fRefPlane
protected
TMatrixT<double> GFAbsTrackRep::fState
protected
int GFAbsTrackRep::fStatusFlag
protected

status of track representation: 0 means everything's OK

Definition at line 98 of file GFAbsTrackRep.h.

Referenced by getStatusFlag().


The documentation for this class was generated from the following files: