LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
genf::GFAbsTrackRep Class Referenceabstract

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

#include "GFAbsTrackRep.h"

Inheritance diagram for genf::GFAbsTrackRep:
genf::RKTrackRep genf::SlTrackRep

Public Member Functions

virtual GFAbsTrackRepclone () const =0
 
virtual GFAbsTrackRepprototype () const =0
 
virtual double extrapolate (const GFDetPlane &plane, TMatrixT< Double_t > &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 void stepalong (double h)
 make step of h cm along the track More...
 
virtual double extrapolate (const GFDetPlane &plane, TMatrixT< Double_t > &statePred, TMatrixT< Double_t > &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 (std::ostream &out=std::cout) const
 
const TMatrixT< Double_t > & getState () const
 
const TMatrixT< Double_t > & 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_t > &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_t > &c)
 
TMatrixT< Double_t > getFirstState () const
 
TMatrixT< Double_t > getFirstCov () const
 
GFDetPlane getFirstPlane () const
 
TMatrixT< Double_t > getLastState () const
 
TMatrixT< Double_t > 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_t > &st, const GFDetPlane &pl, const TMatrixT< Double_t > *cov=NULL)
 
void setCov (const TMatrixT< Double_t > &aCov)
 
void setFirstState (const TMatrixT< Double_t > &aState)
 
void setFirstCov (const TMatrixT< Double_t > &aCov)
 
void setFirstPlane (const GFDetPlane &aPlane)
 
void setLastState (const TMatrixT< Double_t > &aState)
 
void setLastCov (const TMatrixT< Double_t > &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 ()
 

Protected Attributes

unsigned int fDimension
 Dimensionality of track representation. More...
 
TMatrixT< Double_t > fState
 The vector of track parameters. More...
 
TMatrixT< Double_t > 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_t > fFirstState
 state, cov and plane for first and last point in fit More...
 
TMatrixT< Double_t > fFirstCov
 
TMatrixT< Double_t > fLastState
 
TMatrixT< Double_t > fLastCov
 
GFDetPlane fFirstPlane
 
GFDetPlane fLastPlane
 
GFDetPlane fRefPlane
 

Private Member Functions

void Abort (std::string method)
 
virtual void Print (Option_t *) const
 

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:

  • A track representation is a specific parameterization of a trajectory. It contains the parameters that describe the track at some point and code for the extrapolation of the track parameters through space. The actual extrapolation code is not part of genfit but has to be supplied in some additional package (e.g. GEANE). LSLTrackRep is a very basic example of a track representation.
  • A Track is a collection of RecoHits (see GFAbsRecoHit) plus a collection of track representation objects. The hits can be from different detectors. There can be several representations of the same track. This makes it possible to perform several fits in parallel, for example to compare different parameterizations or to fit different particle hypotheses.

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

Provides:

  • Matrix objects to store track parameters
  • ... and covariances
  • interface to track extrapolation code

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 81 of file GFAbsTrackRep.h.

Constructor & Destructor Documentation

genf::GFAbsTrackRep::GFAbsTrackRep ( )

Definition at line 23 of file GFAbsTrackRep.cxx.

24  : fDimension(5)
25  , fState(5, 1)
26  , fCov(5, 5)
27  , fChiSqu(0)
28  , fNdf(0)
29  , fStatusFlag(0)
30  , fInverted(false)
31  , fFirstState(5, 1)
32  , fFirstCov(5, 5)
33  , fLastState(5, 1)
34  , fLastCov(5, 5)
35 {}
bool fInverted
specifies the direction of flight of the particle
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:86
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
TMatrixT< Double_t > fFirstCov
unsigned int fNdf
Definition: GFAbsTrackRep.h:96
TMatrixT< Double_t > fLastState
TMatrixT< Double_t > fLastCov
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
Definition: GFAbsTrackRep.h:99
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
genf::GFAbsTrackRep::GFAbsTrackRep ( int  dim)

Definition at line 37 of file GFAbsTrackRep.cxx.

38  : fDimension(dim)
39  , fState(dim, 1)
40  , fCov(dim, dim)
41  , fChiSqu(0)
42  , fNdf(0)
43  , fStatusFlag(0)
44  , fInverted(false)
45  , fFirstState(dim, 1)
46  , fFirstCov(dim, dim)
47  , fLastState(dim, 1)
48  , fLastCov(dim, dim)
49 {}
bool fInverted
specifies the direction of flight of the particle
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:86
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
TMatrixT< Double_t > fFirstCov
unsigned int fNdf
Definition: GFAbsTrackRep.h:96
TMatrixT< Double_t > fLastState
TMatrixT< Double_t > fLastCov
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
Definition: GFAbsTrackRep.h:99
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
genf::GFAbsTrackRep::~GFAbsTrackRep ( )
virtual

Definition at line 51 of file GFAbsTrackRep.cxx.

51 {}

Member Function Documentation

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

Definition at line 69 of file GFAbsTrackRep.cxx.

References GFException::setFatal().

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

70 {
71  std::cerr << method << " as implemented in " << __FILE__
72  << " was called. This means that this feature was used "
73  << "in a track rep which didnt overwrite this method. " << std::endl
74  << "C++ throw;" << std::endl;
75  //system call abort
76  throw GFException("genf::GFAbsTrackRep: " + method + "() not implemented", __LINE__, __FILE__)
77  .setFatal();
78 }
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:47
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition: GFException.h:75
void genf::GFAbsTrackRep::addChiSqu ( double  aChiSqu)
inline

Definition at line 264 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processHit().

264 { fChiSqu += aChiSqu; }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
void genf::GFAbsTrackRep::addNDF ( unsigned int  n)
inline

Definition at line 265 of file GFAbsTrackRep.h.

References n.

Referenced by genf::GFKalman::processHit().

265 { fNdf += n; }
unsigned int fNdf
Definition: GFAbsTrackRep.h:96
Char_t n[5]
virtual GFAbsTrackRep* genf::GFAbsTrackRep::clone ( ) const
pure virtual

Implemented in genf::RKTrackRep, and genf::SlTrackRep.

Referenced by genf::GFTrack::operator=().

double genf::GFAbsTrackRep::extrapolate ( const GFDetPlane plane,
TMatrixT< Double_t > &  statePred 
)
virtual

returns the tracklength spanned in this extrapolation

Reimplemented in genf::RKTrackRep.

Definition at line 63 of file GFAbsTrackRep.cxx.

References fDimension.

Referenced by extrapolate(), genf::GFKalman::getChi2Hit(), genf::GFTrack::getResiduals(), genf::GFKalman::processHit(), and genf::GFDaf::processTrack().

64 {
65  TMatrixT<Double_t> cov(fDimension, fDimension);
66  return extrapolate(plane, statePred, cov);
67 }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:86
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< Double_t > &statePred)
returns the tracklength spanned in this extrapolation
virtual double genf::GFAbsTrackRep::extrapolate ( const GFDetPlane plane,
TMatrixT< Double_t > &  statePred,
TMatrixT< Double_t > &  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 genf::RKTrackRep.

double genf::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 53 of file GFAbsTrackRep.cxx.

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

54 {
55  TMatrixT<Double_t> statePred(fDimension, 1);
56  TMatrixT<Double_t> covPred(fDimension, fDimension);
57  double retVal = extrapolate(plane, statePred, covPred);
58  setData(statePred, plane, &covPred);
59  return retVal;
60 }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:86
virtual void setData(const TMatrixT< Double_t > &st, const GFDetPlane &pl, const TMatrixT< Double_t > *cov=NULL)
virtual double extrapolate(const GFDetPlane &plane, TMatrixT< Double_t > &statePred)
returns the tracklength spanned in this extrapolation
void genf::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 genf::RKTrackRep, and genf::SlTrackRep.

Definition at line 87 of file GFAbsTrackRep.cxx.

References Abort().

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

92 {
93  Abort("extrapolateToLine()");
94 }
void Abort(std::string method)
void genf::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.

Reimplemented in genf::RKTrackRep, and genf::SlTrackRep.

Definition at line 80 of file GFAbsTrackRep.cxx.

References Abort().

Referenced by genf::GFSpacepointHitPolicy::detPlane().

83 {
84  Abort("extrapolateToPoca()");
85 }
void Abort(std::string method)
virtual double genf::GFAbsTrackRep::getCharge ( ) const
pure virtual
double genf::GFAbsTrackRep::getChiSqu ( ) const
inline

Definition at line 223 of file GFAbsTrackRep.h.

References fChiSqu.

Referenced by genf::GFTrack::getChiSqu(), getRedChiSqu(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().

223 { return fChiSqu; }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
const TMatrixT<Double_t>& genf::GFAbsTrackRep::getCov ( ) const
inline
double genf::GFAbsTrackRep::getCovElem ( int  i,
int  j 
) const
inline

Definition at line 190 of file GFAbsTrackRep.h.

References fCov, getCharge(), getMom(), getPos(), getPosMom(), and getPosMomCov().

190 { return fCov(i, j); }
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
unsigned int genf::GFAbsTrackRep::getDim ( ) const
inline

returns dimension of state vector

Definition at line 182 of file GFAbsTrackRep.h.

References fDimension, and Print().

Referenced by genf::GFKalman::getChi2Hit(), getNDF(), genf::GFTrack::getResiduals(), genf::GFKalman::processHit(), and genf::GFDaf::processTrack().

182 { return fDimension; }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:86
TMatrixT<Double_t> genf::GFAbsTrackRep::getFirstCov ( ) const
inline

Definition at line 218 of file GFAbsTrackRep.h.

References fFirstCov.

218 { return fFirstCov; }
TMatrixT< Double_t > fFirstCov
GFDetPlane genf::GFAbsTrackRep::getFirstPlane ( ) const
inline

Definition at line 219 of file GFAbsTrackRep.h.

References fFirstPlane.

219 { return fFirstPlane; }
GFDetPlane fFirstPlane
TMatrixT<Double_t> genf::GFAbsTrackRep::getFirstState ( ) const
inline

Definition at line 217 of file GFAbsTrackRep.h.

References fFirstState.

217 { return fFirstState; }
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
TMatrixT<Double_t> genf::GFAbsTrackRep::getLastCov ( ) const
inline

Definition at line 221 of file GFAbsTrackRep.h.

References fLastCov.

221 { return fLastCov; }
TMatrixT< Double_t > fLastCov
GFDetPlane genf::GFAbsTrackRep::getLastPlane ( ) const
inline

Definition at line 222 of file GFAbsTrackRep.h.

References fLastPlane.

Referenced by trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().

222 { return fLastPlane; }
TMatrixT<Double_t> genf::GFAbsTrackRep::getLastState ( ) const
inline

Definition at line 220 of file GFAbsTrackRep.h.

References fLastState.

220 { return fLastState; }
TMatrixT< Double_t > fLastState
virtual TVector3 genf::GFAbsTrackRep::getMom ( const GFDetPlane pl)
pure virtual
TVector3 genf::GFAbsTrackRep::getMom ( )
inline
unsigned int genf::GFAbsTrackRep::getNDF ( ) const
inline

Definition at line 230 of file GFAbsTrackRep.h.

References getDim().

Referenced by genf::GFTrack::getNDF(), getRedChiSqu(), trkf::Track3DKalman::produce(), and trkf::Track3DKalmanSPS::produce().

231  {
232  if (fNdf > getDim()) return fNdf - getDim();
233  return 0;
234  }
unsigned int fNdf
Definition: GFAbsTrackRep.h:96
unsigned int getDim() const
returns dimension of state vector
virtual TVector3 genf::GFAbsTrackRep::getPos ( const GFDetPlane pl)
pure virtual
TVector3 genf::GFAbsTrackRep::getPos ( )
inline
virtual void genf::GFAbsTrackRep::getPosMom ( const GFDetPlane pl,
TVector3 &  pos,
TVector3 &  mom 
)
pure virtual

Implemented in genf::RKTrackRep, and genf::SlTrackRep.

Referenced by getCovElem().

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

method which gets position, momentum and 6x6 covariance matrix

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

Definition at line 101 of file GFAbsTrackRep.cxx.

References Abort().

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

105 {
106  Abort("getPosMomCov()");
107 }
void Abort(std::string method)
void genf::GFAbsTrackRep::getPosMomCov ( TVector3 &  pos,
TVector3 &  mom,
TMatrixT< Double_t > &  c 
)
inline

Definition at line 212 of file GFAbsTrackRep.h.

References getPosMomCov().

213  {
214  getPosMomCov(fRefPlane, pos, mom, c);
215  }
virtual void getPosMomCov(const GFDetPlane &pl, TVector3 &pos, TVector3 &mom, TMatrixT< Double_t > &cov)
method which gets position, momentum and 6x6 covariance matrix
double genf::GFAbsTrackRep::getRedChiSqu ( ) const
inline

returns chi2/ndf

Definition at line 225 of file GFAbsTrackRep.h.

References getChiSqu(), and getNDF().

Referenced by genf::GFTrack::getRedChiSqu().

226  {
227  if (getNDF() > 0) return getChiSqu() / getNDF();
228  return 0;
229  }
unsigned int getNDF() const
double getChiSqu() const
const GFDetPlane& genf::GFAbsTrackRep::getReferencePlane ( ) const
inline
const TMatrixT<Double_t>& genf::GFAbsTrackRep::getState ( ) const
inline
double genf::GFAbsTrackRep::getStateElem ( int  i) const
inline

Definition at line 189 of file GFAbsTrackRep.h.

References fState.

189 { return fState(i, 0); }
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
bool genf::GFAbsTrackRep::getStatusFlag ( )
inline
void genf::GFAbsTrackRep::Print ( std::ostream &  out = std::cout) const
virtual

Definition at line 122 of file GFAbsTrackRep.cxx.

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

Referenced by getDim(), and genf::GFTrack::Print().

123 {
124  out << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
125  out << "GFAbsTrackRep::Parameters at reference plane ";
126  fRefPlane.Print(out);
127  out << "GFAbsTrackRep::State" << std::endl;
128  PrintROOTmatrix(out, fState);
129  out << "GFAbsTrackRep::Covariances" << std::endl;
130  PrintROOTmatrix(out, fCov);
131  out << "GFAbsTrackRep::chi^2" << std::endl;
132  out << fChiSqu << std::endl;
133  out << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
134 }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
void PrintROOTmatrix(std::ostream &out, const TMatrixT< T > &m)
Small utility functions which print some ROOT objects into an output stream.
Definition: GFException.h:133
void Print(std::ostream &out=std::cout) const
Definition: GFDetPlane.cxx:228
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
virtual void genf::GFAbsTrackRep::Print ( Option_t *  ) const
inlineprivatevirtual

Definition at line 284 of file GFAbsTrackRep.h.

285  {
286  throw std::logic_error(std::string(__func__) + "::Print(Option_t*) not available");
287  }
virtual GFAbsTrackRep* genf::GFAbsTrackRep::prototype ( ) const
pure virtual

Implemented in genf::RKTrackRep, and genf::SlTrackRep.

void genf::GFAbsTrackRep::reset ( )
virtual

Definition at line 109 of file GFAbsTrackRep.cxx.

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

Referenced by getStatusFlag().

110 {
111  std::cout << "GFAbsTrackRep::reset" << std::endl;
112  TVector3 nullVec(0., 0., 0.);
113  fRefPlane.set(nullVec, nullVec, nullVec);
114  fState.Zero();
115  fCov.Zero();
116  fFirstState.Zero();
117  fFirstCov.Zero();
118  fLastState.Zero();
119  fLastCov.Zero();
120 }
void set(const TVector3 &o, const TVector3 &u, const TVector3 &v)
Definition: GFDetPlane.cxx:86
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
TMatrixT< Double_t > fFirstCov
TMatrixT< Double_t > fLastState
TMatrixT< Double_t > fLastCov
TMatrixT< Double_t > fFirstState
state, cov and plane for first and last point in fit
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
void genf::GFAbsTrackRep::setChiSqu ( double  aChiSqu)
inline

Definition at line 262 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::fittingPass().

262 { fChiSqu = aChiSqu; }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:95
void genf::GFAbsTrackRep::setCov ( const TMatrixT< Double_t > &  aCov)
inline

Definition at line 244 of file GFAbsTrackRep.h.

Referenced by genf::GFDaf::blowUpCovs(), genf::GFKalman::blowUpCovs(), and genf::GFKalman::blowUpCovsDiag().

244 { fCov = aCov; }
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
virtual void genf::GFAbsTrackRep::setData ( const TMatrixT< Double_t > &  st,
const GFDetPlane pl,
const TMatrixT< Double_t > *  cov = NULL 
)
inlinevirtual

Definition at line 236 of file GFAbsTrackRep.h.

Referenced by extrapolate(), genf::GFKalman::processHit(), genf::GFDaf::processTrack(), genf::RKTrackRep::setData(), and genf::RKTrackRep::switchDirection().

239  {
240  fState = st;
241  fRefPlane = pl;
242  if (cov != NULL) fCov = *cov;
243  }
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:92
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:89
void genf::GFAbsTrackRep::setFirstCov ( const TMatrixT< Double_t > &  aCov)
inline

Definition at line 246 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

246 { fFirstCov = aCov; }
TMatrixT< Double_t > fFirstCov
void genf::GFAbsTrackRep::setFirstPlane ( const GFDetPlane aPlane)
inline

Definition at line 247 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

248  {
249  fFirstPlane = aPlane;
250  ;
251  }
GFDetPlane fFirstPlane
void genf::GFAbsTrackRep::setFirstState ( const TMatrixT< Double_t > &  aState)
inline

Definition at line 245 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

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

Deprecated. Should be removed soon.

Definition at line 271 of file GFAbsTrackRep.h.

References f.

272  {
273  fInverted = f;
274  return true;
275  }
bool fInverted
specifies the direction of flight of the particle
TFile f
Definition: plotHisto.C:6
void genf::GFAbsTrackRep::setLastCov ( const TMatrixT< Double_t > &  aCov)
inline

Definition at line 253 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

253 { fLastCov = aCov; }
TMatrixT< Double_t > fLastCov
void genf::GFAbsTrackRep::setLastPlane ( const GFDetPlane aPlane)
inline

Definition at line 254 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

255  {
256  fLastPlane = aPlane;
257  ;
258  }
void genf::GFAbsTrackRep::setLastState ( const TMatrixT< Double_t > &  aState)
inline

Definition at line 252 of file GFAbsTrackRep.h.

Referenced by genf::GFKalman::processTrack().

252 { fLastState = aState; }
TMatrixT< Double_t > fLastState
void genf::GFAbsTrackRep::setNDF ( unsigned int  n)
inline

Definition at line 263 of file GFAbsTrackRep.h.

References n.

Referenced by genf::GFKalman::fittingPass().

263 { fNdf = n; }
unsigned int fNdf
Definition: GFAbsTrackRep.h:96
Char_t n[5]
void genf::GFAbsTrackRep::setStatusFlag ( int  _val)
inline

Definition at line 266 of file GFAbsTrackRep.h.

References switchDirection().

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

266 { fStatusFlag = _val; }
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
Definition: GFAbsTrackRep.h:99
void genf::GFAbsTrackRep::stepalong ( double  h)
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.

Definition at line 96 of file GFAbsTrackRep.cxx.

References Abort().

97 {
98  Abort("stepalong()");
99 }
void Abort(std::string method)
virtual void genf::GFAbsTrackRep::switchDirection ( )
pure virtual

Member Data Documentation

double genf::GFAbsTrackRep::fChiSqu
protected

chiSqu of the track fit

Definition at line 95 of file GFAbsTrackRep.h.

Referenced by getChiSqu(), and Print().

TMatrixT<Double_t> genf::GFAbsTrackRep::fCov
protected
unsigned int genf::GFAbsTrackRep::fDimension
protected

Dimensionality of track representation.

Definition at line 86 of file GFAbsTrackRep.h.

Referenced by genf::SlTrackRep::extrapolate(), extrapolate(), and getDim().

TMatrixT<Double_t> genf::GFAbsTrackRep::fFirstCov
protected

Definition at line 105 of file GFAbsTrackRep.h.

Referenced by getFirstCov(), and reset().

GFDetPlane genf::GFAbsTrackRep::fFirstPlane
protected

Definition at line 109 of file GFAbsTrackRep.h.

Referenced by getFirstPlane().

TMatrixT<Double_t> genf::GFAbsTrackRep::fFirstState
protected

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

Definition at line 104 of file GFAbsTrackRep.h.

Referenced by getFirstState(), and reset().

bool genf::GFAbsTrackRep::fInverted
protected

specifies the direction of flight of the particle

Definition at line 101 of file GFAbsTrackRep.h.

TMatrixT<Double_t> genf::GFAbsTrackRep::fLastCov
protected

Definition at line 108 of file GFAbsTrackRep.h.

Referenced by getLastCov(), and reset().

GFDetPlane genf::GFAbsTrackRep::fLastPlane
protected

Definition at line 110 of file GFAbsTrackRep.h.

Referenced by getLastPlane().

TMatrixT<Double_t> genf::GFAbsTrackRep::fLastState
protected

Definition at line 107 of file GFAbsTrackRep.h.

Referenced by getLastState(), genf::RKTrackRep::getMomLast(), and reset().

unsigned int genf::GFAbsTrackRep::fNdf
protected

Definition at line 96 of file GFAbsTrackRep.h.

int genf::GFAbsTrackRep::fStatusFlag
protected

status of track representation: 0 means everything's OK

Definition at line 99 of file GFAbsTrackRep.h.

Referenced by getStatusFlag().


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