LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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::GeaneTrackRep2 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 85 of file GFAbsTrackRep.h.

Constructor & Destructor Documentation

genf::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 }
bool fInverted
specifies the direction of flight of the particle
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:99
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:90
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:96
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
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:93
genf::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 }
bool fInverted
specifies the direction of flight of the particle
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:99
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:90
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:96
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
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:93
genf::GFAbsTrackRep::~GFAbsTrackRep ( )
virtual

Definition at line 31 of file GFAbsTrackRep.cxx.

31 {}

Member Function Documentation

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

Definition at line 47 of file GFAbsTrackRep.cxx.

References GFException::setFatal().

Referenced by extrapolateToLine(), extrapolateToPoint(), getPosMomCov(), getStatusFlag(), 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 GFException("genf::GFAbsTrackRep: " + method + "() not implemented", __LINE__, __FILE__).setFatal();
54 }
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:50
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition: GFException.h:80
void genf::GFAbsTrackRep::addChiSqu ( double  aChiSqu)
inline

Definition at line 293 of file GFAbsTrackRep.h.

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

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

Definition at line 296 of file GFAbsTrackRep.h.

References n.

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

296  {
297  fNdf += n;
298  }
Char_t n[5]
virtual GFAbsTrackRep* genf::GFAbsTrackRep::clone ( ) const
pure virtual
double genf::GFAbsTrackRep::extrapolate ( const GFDetPlane plane,
TMatrixT< Double_t > &  statePred 
)
virtual

returns the tracklength spanned in this extrapolation

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

Definition at line 42 of file GFAbsTrackRep.cxx.

References fDimension.

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

42  {
43  TMatrixT<Double_t> cov(fDimension,fDimension);
44  return extrapolate(plane,statePred,cov);
45 }
unsigned int fDimension
Dimensionality of track representation.
Definition: GFAbsTrackRep.h:90
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, and genf::GeaneTrackRep2.

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 33 of file GFAbsTrackRep.cxx.

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

33  {
34  TMatrixT<Double_t> statePred(fDimension,1);
35  TMatrixT<Double_t> 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:90
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, genf::GeaneTrackRep2, and genf::SlTrackRep.

Definition at line 62 of file GFAbsTrackRep.cxx.

References Abort().

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

66  {
67  Abort("extrapolateToLine()");
68 }
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, genf::GeaneTrackRep2, and genf::SlTrackRep.

Definition at line 56 of file GFAbsTrackRep.cxx.

References Abort().

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

58  {
59  Abort("extrapolateToPoca()");
60 }
void Abort(std::string method)
virtual double genf::GFAbsTrackRep::getCharge ( ) const
pure virtual
double genf::GFAbsTrackRep::getChiSqu ( ) const
inline

Definition at line 245 of file GFAbsTrackRep.h.

References fChiSqu.

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

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

Definition at line 202 of file GFAbsTrackRep.h.

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

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

returns dimension of state vector

Definition at line 194 of file GFAbsTrackRep.h.

References fDimension, and Print().

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

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

Definition at line 230 of file GFAbsTrackRep.h.

References fFirstCov.

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

Definition at line 233 of file GFAbsTrackRep.h.

References fFirstPlane.

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

Definition at line 227 of file GFAbsTrackRep.h.

References fFirstState.

227  {
228  return fFirstState;
229  }
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 239 of file GFAbsTrackRep.h.

References fLastCov.

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

Definition at line 242 of file GFAbsTrackRep.h.

References fLastPlane.

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

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

Definition at line 236 of file GFAbsTrackRep.h.

References fLastState.

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

Definition at line 253 of file GFAbsTrackRep.h.

References getDim().

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

253  {
254  if(fNdf>getDim()) return fNdf-getDim();
255  return 0;
256  }
unsigned int getDim() const
returns dimension of state vector
virtual TVector3 genf::GFAbsTrackRep::getPos ( const GFDetPlane pl)
pure virtual
virtual void genf::GFAbsTrackRep::getPosMom ( const GFDetPlane pl,
TVector3 &  pos,
TVector3 &  mom 
)
pure virtual
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

Reimplemented in genf::GeaneTrackRep2.

Definition at line 75 of file GFAbsTrackRep.cxx.

References Abort().

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

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

Definition at line 223 of file GFAbsTrackRep.h.

References getPosMomCov().

223  {
224  getPosMomCov(fRefPlane,pos,mom,c);
225  }
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 249 of file GFAbsTrackRep.h.

References getChiSqu(), and getNDF().

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

249  {
250  if(getNDF()>0) return getChiSqu()/getNDF();
251  return 0;
252  }
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 201 of file GFAbsTrackRep.h.

References fState.

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

Definition at line 93 of file GFAbsTrackRep.cxx.

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

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

93  {
94  out << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
95  out <<"GFAbsTrackRep::Parameters at reference plane ";
96  fRefPlane.Print(out);
97  out <<"GFAbsTrackRep::State"<<std::endl;
98  PrintROOTmatrix(out, fState);
99  out <<"GFAbsTrackRep::Covariances"<<std::endl;
100  PrintROOTmatrix(out, fCov);
101  out <<"GFAbsTrackRep::chi^2"<<std::endl;
102  out <<fChiSqu<<std::endl;
103  out << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
104 }
double fChiSqu
chiSqu of the track fit
Definition: GFAbsTrackRep.h:99
void PrintROOTmatrix(std::ostream &out, const TMatrixT< T > &m)
Small utility functions which print some ROOT objects into an output stream.
Definition: GFException.h:132
void Print(std::ostream &out=std::cout) const
Definition: GFDetPlane.cxx:242
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:96
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:93
virtual void genf::GFAbsTrackRep::Print ( Option_t *  ) const
inlineprivatevirtual

Definition at line 317 of file GFAbsTrackRep.h.

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

Definition at line 80 of file GFAbsTrackRep.cxx.

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

Referenced by getStatusFlag().

80  {
81  std::cout<<"GFAbsTrackRep::reset"<<std::endl;
82  TVector3 nullVec(0.,0.,0.);
83  fRefPlane.set(nullVec,nullVec,nullVec);
84  fState.Zero();
85  fCov.Zero();
86  fFirstState.Zero();
87  fFirstCov.Zero();
88  fLastState.Zero();
89  fLastCov.Zero();
90 }
void set(const TVector3 &o, const TVector3 &u, const TVector3 &v)
Definition: GFDetPlane.cxx:85
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:96
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:93
void genf::GFAbsTrackRep::setChiSqu ( double  aChiSqu)
inline

Definition at line 287 of file GFAbsTrackRep.h.

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

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

Definition at line 263 of file GFAbsTrackRep.h.

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

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

Definition at line 258 of file GFAbsTrackRep.h.

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

258  {
259  fState=st;
260  fRefPlane=pl;
261  if(cov!=NULL) fCov=*cov;
262  }
TMatrixT< Double_t > fCov
The covariance matrix.
Definition: GFAbsTrackRep.h:96
TMatrixT< Double_t > fState
The vector of track parameters.
Definition: GFAbsTrackRep.h:93
void genf::GFAbsTrackRep::setFirstCov ( const TMatrixT< Double_t > &  aCov)
inline

Definition at line 269 of file GFAbsTrackRep.h.

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

Definition at line 272 of file GFAbsTrackRep.h.

272  {
273  fFirstPlane = aPlane;;
274  }
GFDetPlane fFirstPlane
void genf::GFAbsTrackRep::setFirstState ( const TMatrixT< Double_t > &  aState)
inline

Definition at line 266 of file GFAbsTrackRep.h.

266  {
267  fFirstState = aState;
268  }
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 306 of file GFAbsTrackRep.h.

References f.

306 {fInverted=f; return true;}
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 278 of file GFAbsTrackRep.h.

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

Definition at line 281 of file GFAbsTrackRep.h.

281  {
282  fLastPlane = aPlane;;
283  }
void genf::GFAbsTrackRep::setLastState ( const TMatrixT< Double_t > &  aState)
inline

Definition at line 275 of file GFAbsTrackRep.h.

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

Definition at line 290 of file GFAbsTrackRep.h.

References n.

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

290  {
291  fNdf = n;
292  }
Char_t n[5]
void genf::GFAbsTrackRep::setStatusFlag ( int  _val)
inline

Definition at line 299 of file GFAbsTrackRep.h.

References switchDirection().

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

299  {
300  fStatusFlag = _val;
301  }
int fStatusFlag
status of track representation: 0 means everything&#39;s OK
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 71 of file GFAbsTrackRep.cxx.

References Abort().

71  {
72  Abort("stepalong()");
73 }
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 99 of file GFAbsTrackRep.h.

Referenced by getChiSqu(), and Print().

unsigned int genf::GFAbsTrackRep::fDimension
protected

Dimensionality of track representation.

Definition at line 90 of file GFAbsTrackRep.h.

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

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

Definition at line 109 of file GFAbsTrackRep.h.

Referenced by getFirstCov(), and reset().

GFDetPlane genf::GFAbsTrackRep::fFirstPlane
protected

Definition at line 113 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 108 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 105 of file GFAbsTrackRep.h.

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

Definition at line 112 of file GFAbsTrackRep.h.

Referenced by getLastCov(), and reset().

GFDetPlane genf::GFAbsTrackRep::fLastPlane
protected

Definition at line 114 of file GFAbsTrackRep.h.

Referenced by getLastPlane().

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

Definition at line 111 of file GFAbsTrackRep.h.

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

unsigned int genf::GFAbsTrackRep::fNdf
protected

Definition at line 100 of file GFAbsTrackRep.h.

int genf::GFAbsTrackRep::fStatusFlag
protected

status of track representation: 0 means everything's OK

Definition at line 103 of file GFAbsTrackRep.h.

Referenced by getStatusFlag().


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