Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

TrackFitObject Class Reference

Abstract base class for track objects of kinematic fits. More...

#include <TrackFitObject.h>

Inheritance diagram for TrackFitObject:

Inheritance graph
[legend]
Collaboration diagram for TrackFitObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TrackFitObject (const char *name_=0)
 Default constructor.

 TrackFitObject (const TrackFitObject &rhs)
 Copy Constructor.

TrackFitObjectoperator= (const TrackFitObject &rhs)
 Assignment.

virtual ~TrackFitObject ()
 Destructor.

virtual bool setParam (int ilocal, double par_, bool measured_, bool fixed_=false)
 Set value and measured flag of parameter ilocal; return=success.

virtual bool setParam (int ilocal, double par_)
 Set value of parameter ilocal; return=success.

virtual bool setParameters (int ivertex, const ThreeVector &vertex, const FourVector &momentum, double charge_)=0
 Set parameters such that track passes through a vertex with a given 4-momentum; return=success.

virtual bool setMParam (int ilocal, double mpar_)
 Set measured value of parameter ilocal; return=success.

virtual bool setError (int ilocal, double err_)
 Set error of parameter ilocal; return=success.

virtual bool setCov (int ilocal, int jlocal, double cov_)
 Set covariance of parameters ilocal and jlocal; return=success.

virtual bool setGlobalParNum (int ilocal, int iglobal)
virtual bool fixParam (int ilocal, bool fix=true)
 Fix a parameter (fix=true), or release it (fix=false).

virtual double getParam (int i) const
 Get current value of parameter ilocal.

virtual double getMParam (int i) const
 Get measured value of parameter ilocal.

virtual double getError (int ilocal) const
 Get error of parameter ilocal.

virtual double getCov (int ilocal, int jlocal) const
 Get covariance between parameters ilocal and jlocal.

virtual bool isParamMeasured (int ilocal) const
 Get measured flag for parameter i.

virtual bool isParamFixed (int ilocal) const
 Get fixed flag for parameter i.

virtual int getGlobalParNum (int ilocal) const
 Get global parameter number of parameter ilocal.

virtual int getNPar () const=0
 Get number of parameters of this FitObject.

virtual const char * getName () const
 Get object's name.

virtual void setName (const char *name_)
 Set object's name.

virtual void getTrajectoryPointEx (double s, ThreeVector &p) const=0
 Get point along trajectory into existing 3-vector.

virtual ThreeVector getTrajectoryPoint (double s) const
 Get point along trajectory.

virtual void getVertexEx (int ivertex, ThreeVector &p) const=0
 Get start (i=0) or stop (i=1) vertex into existing 3-vector.

virtual ThreeVector getVertex (int ivertex) const
 Get start (i=0) or stop (i=1) vertex.

virtual void setVertex (int ivertex, const TwoVector &v)=0
 Set start (i=0) or stop (i=1) vertex to a point as close as possible to given point.

virtual void getTrajectoryDerivativeEx (double s, int ilocal, ThreeVector &p) const=0
 Get derivative of trajectory w.r.t. parameter ilocal into existing 3-vector.

virtual ThreeVector getTrajectoryDerivative (double s, int ilocal) const
 Get derivative of trajectory w.r.t. parameter ilocal.

virtual void getVertexDerivativeEx (int ivertex, int ilocal, ThreeVector &p) const=0
 Get derivative of vertex w.r.t. parameter ilocal into existing 3-vector.

virtual ThreeVector getVertexDerivative (int ivertex, int ilocal) const
 Get derivative of vertex w.r.t. parameter ilocal.

virtual void getMomentumAtTrajectoryEx (double s, FourVector &p) const=0
 Get momentum along trajectory into existing 4-vector.

virtual FourVector getMomentumAtTrajectory (double s) const
 Get momentum along trajectory.

virtual void getMomentumEx (int ivertex, FourVector &p) const=0
 Get momentum at vertex into existing 4-vector.

virtual FourVector getMomentum (int ivertex) const
 Get momentum at vertex.

virtual double getCharge () const=0
 Get charge in units of e.

virtual double getMass () const=0
 Get mass in GeV.

virtual void getMomentumDerivativeAtTrajectoryEx (double s, int ilocal, FourVector &p) const=0
 Get momentum along trajectory into existing 4-vector.

virtual FourVector getMomentumDerivativeAtTrajectory (double s, int ilocal) const
 Get momentum along trajectory.

virtual void getMomentumDerivativeEx (int ivertex, int ilocal, FourVector &p) const=0
 Get derivative of momentum w.r.t. parameter ilocal into existing 4-vector.

virtual FourVector getMomentumDerivative (int ivertex, int ilocal) const
 Get derivative of momentum w.r.t. parameter ilocal.

virtual double getArcLength (int ivertex) const=0
 Get s (arclength in r/phi) of vertex ivertex.

virtual void addToGlobCov (double *globvcov, int idim) const
virtual double getChi2 () const
 Get chi squared from measured and fitted parameters.

virtual double getDChi2DParam (int ilocal) const=0
 Get derivative of chi squared w.r.t. parameter ilocal.

virtual double getD2Chi2DParam2 (int ilocal, int jlocal) const=0
 Get second derivative of chi squared w.r.t. parameters ilocal1 and ilocal2.

virtual void addToGlobalChi2DerMatrix (int idim, double *M) const=0
 Add derivatives of chi squared to global covariance matrix.

virtual void addToGlobalDerMatrix (int idim, double c, double *M) const=0
 Add derivatives to global covariance matrix.

virtual JBLHelix getTangentialHelix (double s)=0
 Get helix that is tangential at a certain arc length s.

virtual std::ostream & print (std::ostream &os) const
 print object to ostream

virtual void invalidateCache ()
 Invalidate the cache.

virtual bool fixVertexParam (int ivertex, bool fix=true)=0
 Fix parameter(s) pertaining to a vertex, or release it.

virtual bool releaseVertexParam (int ivertex)
 Release parameter(s) pertaining to a vertex.

virtual void printCov (std::ostream &os) const
 Print Covariance matrix.


Static Public Member Functions

double setBfield (double bfield_)
 Set the B field for all tracks.

double getBfield ()
 Get the B field for all tracks (in Tesla).


Static Public Attributes

double bfield = 1.14
 Global B field in Tesla(!).


Protected Types

enum  { NPARMAX = 8 }
 Maximum number of parameters. More...


Protected Member Functions

virtual void initCov ()
 Init covariance matrix to dummy values.

virtual void checkCov ()
 Check covariance matrix to dummy values.

virtual bool calculateCovInv () const
 Calculate the inverse of the covariance matrix.

virtual void calculateChi2 () const
 Calculate chi2.

virtual void copy (const TrackFitObject &source)
 Copy another TrackFitObject.


Protected Attributes

double par [NPARMAX]
 fit parameters

double mpar [NPARMAX]
 measured parameters

double err [NPARMAX]
 errors

bool measured [NPARMAX]
 measured flag

bool fixed [NPARMAX]
 fixed flag

int globalParNum [NPARMAX]
 global paramter number for each parameter

double cov [NPARMAX][NPARMAX]
 local covariance matrix

double covinv [NPARMAX][NPARMAX]
 inverse of local covariance matrix

bool cachevalid
 flag for valid cache

bool covinvvalid
 flag for valid inverse covariance matrix

double chi2
 chi^2

double resid [NPARMAX]
 residuals

bool chi2contr [NPARMAX]
 contributes to chi2?

char * name
 object name (name string must be allocated and deleted outside object!)


Detailed Description

Abstract base class for track objects of kinematic fits.

A TrackFitObject has usually 5 track parameters, e.g. (kappa, phi0, theta, dca, z0) for a helix, plus one or two parameters for a start and a possible stop arc length, and a mass. Therefore, the base class provides space to store NPARMAX=8 parameters.

A TrackFitObject is able to calculate a point on its trajectory for a given arclength s, a tangent vector at this point, and a momentum. In general, it will need to know the b-field (assumed to be along z) for this. The b-field can be set as static value for the whole TrackFitObject class.

A TrackFitObject can also return a JBLHelix object that represents a tangential helix at a certain arc length s. The helix object is able to find a point where the helix comes close to another helix, which is needed to determine starting values for fits.

Author:Benno List, Jenny List

Date
2007/09/13 13:33:06
Author
blist

Changelog:

Definition at line 60 of file TrackFitObject.h.


Member Enumeration Documentation

anonymous enum [protected]
 

Maximum number of parameters.

Enumeration values:
NPARMAX 

Definition at line 301 of file TrackFitObject.h.


Constructor & Destructor Documentation

TrackFitObject::TrackFitObject const char *  name_ = 0  ) 
 

Default constructor.

Parameters:
name_  Optional name

Definition at line 26 of file TrackFitObject.C.

References cov, covinv, err, fixed, globalParNum, measured, mpar, NPARMAX, par, and setName().

TrackFitObject::TrackFitObject const TrackFitObject rhs  ) 
 

Copy Constructor.

Parameters:
rhs  Source object

Definition at line 39 of file TrackFitObject.C.

References copy().

TrackFitObject::~TrackFitObject  )  [virtual]
 

Destructor.

Definition at line 68 of file TrackFitObject.C.

References name.


Member Function Documentation

virtual void TrackFitObject::addToGlobalChi2DerMatrix int  idim,
double *  M
const [pure virtual]
 

Add derivatives of chi squared to global covariance matrix.

Implements BaseFitObject.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

virtual void TrackFitObject::addToGlobalDerMatrix int  idim,
double  c,
double *  M
const [pure virtual]
 

Add derivatives to global covariance matrix.

Parameters:
idim  Dimension of global derivative matrix
c  Constant by which multiply contribution
M  Existing global derivative matrix

Implements BaseFitObject.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

void TrackFitObject::addToGlobCov double *  globvcov,
int  idim
const [virtual]
 

Add covariance matrix elements to global covariance matrix of size idim x idim

Parameters:
glcov  Covariance matrix
idim  Dimension of covariance matrix

Implements BaseFitObject.

Reimplemented in NeutralParticleTrack.

Definition at line 254 of file TrackFitObject.C.

References cov, getGlobalParNum(), getNPar(), isParamFixed(), isParamMeasured(), and NPARMAX.

void TrackFitObject::calculateChi2  )  const [protected, virtual]
 

Calculate chi2.

Definition at line 359 of file TrackFitObject.C.

References calculateCovInv(), chi2, chi2contr, covinv, covinvvalid, getNPar(), isParamFixed(), isParamMeasured(), mpar, par, and resid.

Referenced by getChi2(), NeutralParticleTrack::updateCache(), and ChargedParticleTrack::updateCache().

bool TrackFitObject::calculateCovInv  )  const [protected, virtual]
 

Calculate the inverse of the covariance matrix.

Definition at line 333 of file TrackFitObject.C.

References cov, covinv, covinvvalid, dsinv(), getNPar(), isParamMeasured(), and NPARMAX.

Referenced by calculateChi2(), ChargedParticleTrack::ChargedParticleTrack(), and checkCov().

void TrackFitObject::checkCov  )  [protected, virtual]
 

Check covariance matrix to dummy values.

Definition at line 284 of file TrackFitObject.C.

References calculateCovInv(), cov, covinvvalid, getNPar(), and isParamMeasured().

Referenced by NeutralParticleTrack::initCov(), and ChargedParticleTrack::initCov().

void TrackFitObject::copy const TrackFitObject source  )  [protected, virtual]
 

Copy another TrackFitObject.

Parameters:
source  Source object

Definition at line 49 of file TrackFitObject.C.

References cachevalid, cov, covinvvalid, err, fixed, globalParNum, measured, mpar, name, NPARMAX, par, and setName().

Referenced by operator=(), and TrackFitObject().

bool TrackFitObject::fixParam int  ilocal,
bool  fix = true
[virtual]
 

Fix a parameter (fix=true), or release it (fix=false).

Parameters:
ilocal  Local parameter number
fix  fix if true, release if false

Implements BaseFitObject.

Definition at line 146 of file TrackFitObject.C.

References fixed, and NPARMAX.

Referenced by NeutralParticleTrack::fixVertexParam(), ChargedParticleTrack::fixVertexParam(), and K0Event::genEvent().

virtual bool TrackFitObject::fixVertexParam int  ivertex,
bool  fix = true
[pure virtual]
 

Fix parameter(s) pertaining to a vertex, or release it.

Parameters:
ivertex  Vertex number: 0=start, 1=stop
fix  fix if true, release if false

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by K0Event::fitEvent(), H1K0Event2::fitEvent(), H1K0Event::fitEvent(), K0Event::genEvent(), and releaseVertexParam().

virtual double TrackFitObject::getArcLength int  ivertex  )  const [pure virtual]
 

Get s (arclength in r/phi) of vertex ivertex.

Parameters:
ivertex  Vertex number: 0=start, 1=stop

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

double TrackFitObject::getBfield  )  [inline, static]
 

Get the B field for all tracks (in Tesla).

Definition at line 340 of file TrackFitObject.h.

References bfield.

virtual double TrackFitObject::getCharge  )  const [pure virtual]
 

Get charge in units of e.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

double TrackFitObject::getChi2  )  const [virtual]
 

Get chi squared from measured and fitted parameters.

Implements BaseFitObject.

Definition at line 328 of file TrackFitObject.C.

References calculateChi2(), and chi2.

double TrackFitObject::getCov int  ilocal,
int  jlocal
const [virtual]
 

Get covariance between parameters ilocal and jlocal.

Parameters:
ilocal  Local parameter number 1
jlocal  Local parameter number 2

Implements BaseFitObject.

Definition at line 170 of file TrackFitObject.C.

References cov, and NPARMAX.

virtual double TrackFitObject::getD2Chi2DParam2 int  ilocal,
int  jlocal
const [pure virtual]
 

Get second derivative of chi squared w.r.t. parameters ilocal1 and ilocal2.

Parameters:
ilocal  Local parameter number 1
jlocal  Local parameter number 2

Implements BaseFitObject.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

virtual double TrackFitObject::getDChi2DParam int  ilocal  )  const [pure virtual]
 

Get derivative of chi squared w.r.t. parameter ilocal.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

double TrackFitObject::getError int  ilocal  )  const [virtual]
 

Get error of parameter ilocal.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 165 of file TrackFitObject.C.

References cov, and NPARMAX.

Referenced by main().

int TrackFitObject::getGlobalParNum int  ilocal  )  const [virtual]
 

Get global parameter number of parameter ilocal.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 150 of file TrackFitObject.C.

References getNPar(), and globalParNum.

Referenced by TrackMomentumConstraint::add1stDerivativesToMatrix(), addToGlobCov(), NeutralParticleTrack::addToGlobCov(), and VertexConstraint::getDerivatives().

virtual double TrackFitObject::getMass  )  const [pure virtual]
 

Get mass in GeV.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

FourVector TrackFitObject::getMomentum int  ivertex  )  const [virtual]
 

Get momentum at vertex.

Parameters:
i  Vertex number: 0=start, 1=stop

Definition at line 232 of file TrackFitObject.C.

References getMomentumEx().

Referenced by H1K0Event::H1K0Event(), H1K0Event2::H1K0Event2(), main(), and print().

FourVector TrackFitObject::getMomentumAtTrajectory double  s  )  const [virtual]
 

Get momentum along trajectory.

Parameters:
s  Arc length

Definition at line 226 of file TrackFitObject.C.

References getMomentumAtTrajectoryEx().

virtual void TrackFitObject::getMomentumAtTrajectoryEx double  s,
FourVector p
const [pure virtual]
 

Get momentum along trajectory into existing 4-vector.

Parameters:
s  Arc length
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getMomentumAtTrajectory().

FourVector TrackFitObject::getMomentumDerivative int  ivertex,
int  ilocal
const [virtual]
 

Get derivative of momentum w.r.t. parameter ilocal.

Parameters:
i  Vertex number: 0=start, 1=stop
ilocal  Local parameter number

Definition at line 246 of file TrackFitObject.C.

References getMomentumDerivativeEx().

FourVector TrackFitObject::getMomentumDerivativeAtTrajectory double  s,
int  ilocal
const [virtual]
 

Get momentum along trajectory.

Parameters:
s  Arc length
ilocal  Local parameter number

Definition at line 238 of file TrackFitObject.C.

References getMomentumDerivativeAtTrajectoryEx().

virtual void TrackFitObject::getMomentumDerivativeAtTrajectoryEx double  s,
int  ilocal,
FourVector p
const [pure virtual]
 

Get momentum along trajectory into existing 4-vector.

Parameters:
s  Arc length
ilocal  Local parameter number
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getMomentumDerivativeAtTrajectory().

virtual void TrackFitObject::getMomentumDerivativeEx int  ivertex,
int  ilocal,
FourVector p
const [pure virtual]
 

Get derivative of momentum w.r.t. parameter ilocal into existing 4-vector.

Parameters:
ivertex  Vertex number: 0=start, 1=stop
ilocal  Local parameter number
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getMomentumDerivative().

virtual void TrackFitObject::getMomentumEx int  ivertex,
FourVector p
const [pure virtual]
 

Get momentum at vertex into existing 4-vector.

Parameters:
ivertex  Vertex number: 0=start, 1=stop
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getMomentum().

double TrackFitObject::getMParam int  i  )  const [virtual]
 

Get measured value of parameter ilocal.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 159 of file TrackFitObject.C.

References isParamMeasured(), mpar, and NPARMAX.

const char * TrackFitObject::getName  )  const [virtual]
 

Get object's name.

Reimplemented from BaseFitObject.

Definition at line 118 of file TrackFitObject.C.

References name.

Referenced by print().

virtual int TrackFitObject::getNPar  )  const [pure virtual]
 

Get number of parameters of this FitObject.

Implements BaseFitObject.

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by TrackMomentumConstraint::add1stDerivativesToMatrix(), addToGlobCov(), calculateChi2(), calculateCovInv(), checkCov(), VertexConstraint::getDerivatives(), TTVertexConstraint::getDerivatives(), getGlobalParNum(), initCov(), and printCov().

double TrackFitObject::getParam int  i  )  const [virtual]
 

Get current value of parameter ilocal.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 155 of file TrackFitObject.C.

References NPARMAX, and par.

Referenced by K0Event::createSmearedChargedTrack(), and main().

virtual JBLHelix TrackFitObject::getTangentialHelix double  s  )  [pure virtual]
 

Get helix that is tangential at a certain arc length s.

Parameters:
s  Arc length

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

ThreeVector TrackFitObject::getTrajectoryDerivative double  s,
int  ilocal
const [virtual]
 

Get derivative of trajectory w.r.t. parameter ilocal.

Parameters:
s  Arc length
ilocal  Local parameter number

Definition at line 210 of file TrackFitObject.C.

References getTrajectoryDerivativeEx().

virtual void TrackFitObject::getTrajectoryDerivativeEx double  s,
int  ilocal,
ThreeVector p
const [pure virtual]
 

Get derivative of trajectory w.r.t. parameter ilocal into existing 3-vector.

Parameters:
s  Arc length
ilocal  Local parameter number
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getTrajectoryDerivative().

ThreeVector TrackFitObject::getTrajectoryPoint double  s  )  const [virtual]
 

Get point along trajectory.

Parameters:
s  Arc length

Definition at line 198 of file TrackFitObject.C.

References getTrajectoryPointEx().

Referenced by main().

virtual void TrackFitObject::getTrajectoryPointEx double  s,
ThreeVector p
const [pure virtual]
 

Get point along trajectory into existing 3-vector.

Parameters:
s  Arc length
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getTrajectoryPoint().

ThreeVector TrackFitObject::getVertex int  ivertex  )  const [virtual]
 

Get start (i=0) or stop (i=1) vertex.

Parameters:
i  vertex number: 0=start, 1=stop

Definition at line 204 of file TrackFitObject.C.

References getVertexEx().

Referenced by VertexConstraint::getValue(), TTVertexConstraint::getValue(), main(), and print().

ThreeVector TrackFitObject::getVertexDerivative int  ivertex,
int  ilocal
const [virtual]
 

Get derivative of vertex w.r.t. parameter ilocal.

Parameters:
i  vertex number: 0=start, 1=stop
ilocal  Local parameter number

Definition at line 218 of file TrackFitObject.C.

References getVertexDerivativeEx().

Referenced by VertexConstraint::getDerivatives().

virtual void TrackFitObject::getVertexDerivativeEx int  ivertex,
int  ilocal,
ThreeVector p
const [pure virtual]
 

Get derivative of vertex w.r.t. parameter ilocal into existing 3-vector.

Parameters:
ivertex  vertex number: 0=start, 1=stop
ilocal  Local parameter number
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getVertexDerivative().

virtual void TrackFitObject::getVertexEx int  ivertex,
ThreeVector p
const [pure virtual]
 

Get start (i=0) or stop (i=1) vertex into existing 3-vector.

Parameters:
ivertex  Vertex number (0: start, 1: stop)
p  Target 3-vector

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

Referenced by getVertex().

void TrackFitObject::initCov  )  [protected, virtual]
 

Init covariance matrix to dummy values.

Definition at line 274 of file TrackFitObject.C.

References cov, covinvvalid, and getNPar().

Referenced by ChargedParticleTrack::ChargedParticleTrack(), NeutralParticleTrack::initCov(), ChargedParticleTrack::initCov(), and NeutralParticleTrack::NeutralParticleTrack().

void TrackFitObject::invalidateCache  )  [virtual]
 

Invalidate the cache.

Definition at line 194 of file TrackFitObject.C.

References cachevalid.

Referenced by setCov(), setError(), setMParam(), setParam(), NeutralParticleTrack::setParam(), and ChargedParticleTrack::setParam().

bool TrackFitObject::isParamFixed int  ilocal  )  const [virtual]
 

Get fixed flag for parameter i.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 181 of file TrackFitObject.C.

References fixed, and NPARMAX.

Referenced by TrackMomentumConstraint::add1stDerivativesToMatrix(), addToGlobCov(), NeutralParticleTrack::addToGlobCov(), calculateChi2(), VertexConstraint::getDerivatives(), setGlobalParNum(), NeutralParticleTrack::setParameters(), and ChargedParticleTrack::setParameters().

bool TrackFitObject::isParamMeasured int  ilocal  )  const [virtual]
 

Get measured flag for parameter i.

Parameters:
ilocal  Local parameter number

Implements BaseFitObject.

Definition at line 176 of file TrackFitObject.C.

References measured, and NPARMAX.

Referenced by addToGlobCov(), NeutralParticleTrack::addToGlobCov(), calculateChi2(), calculateCovInv(), checkCov(), and getMParam().

TrackFitObject & TrackFitObject::operator= const TrackFitObject rhs  ) 
 

Assignment.

Parameters:
rhs  Source object

Definition at line 44 of file TrackFitObject.C.

References copy().

std::ostream & TrackFitObject::print std::ostream &  os  )  const [virtual]
 

print object to ostream

Parameters:
os  Output stream

Implements BaseFitObject.

Definition at line 186 of file TrackFitObject.C.

References getMomentum(), getName(), getVertex(), and BaseFitObject::printParams().

Referenced by operator<<().

void TrackFitObject::printCov std::ostream &  os  )  const [virtual]
 

Print Covariance matrix.

Parameters:
os  Output stream

Definition at line 381 of file TrackFitObject.C.

References cov, getNPar(), BaseFitObject::getParamName(), and name.

bool TrackFitObject::releaseVertexParam int  ivertex  )  [virtual]
 

Release parameter(s) pertaining to a vertex.

Parameters:
ivertex  Vertex number: 0=start, 1=stop

Definition at line 377 of file TrackFitObject.C.

References fixVertexParam().

double TrackFitObject::setBfield double  bfield_  )  [static]
 

Set the B field for all tracks.

Parameters:
bfield_  New Value of B field (in Tesla)

Definition at line 136 of file TrackFitObject.C.

References bfield.

Referenced by main().

bool TrackFitObject::setCov int  ilocal,
int  jlocal,
double  cov_
[virtual]
 

Set covariance of parameters ilocal and jlocal; return=success.

Parameters:
ilocal  Local parameter number
jlocal  Local parameter number
cov_  New error value

Implements BaseFitObject.

Definition at line 108 of file TrackFitObject.C.

References cov, covinvvalid, invalidateCache(), and NPARMAX.

bool TrackFitObject::setError int  ilocal,
double  err_
[virtual]
 

Set error of parameter ilocal; return=success.

Parameters:
ilocal  Local parameter number
err_  New error value

Implements BaseFitObject.

Definition at line 99 of file TrackFitObject.C.

References cov, covinvvalid, invalidateCache(), and NPARMAX.

Referenced by K0Event::createSmearedChargedTrack().

bool TrackFitObject::setGlobalParNum int  ilocal,
int  iglobal
[virtual]
 

Set number of parameter ilocal in global list return true signals OK

Parameters:
ilocal  Local parameter number
iglobal  Global parameter number

Implements BaseFitObject.

Definition at line 140 of file TrackFitObject.C.

References globalParNum, isParamFixed(), and NPARMAX.

bool TrackFitObject::setMParam int  ilocal,
double  mpar_
[virtual]
 

Set measured value of parameter ilocal; return=success.

Parameters:
i  Local parameter number
mpar_  New parameter value

Implements BaseFitObject.

Definition at line 90 of file TrackFitObject.C.

References invalidateCache(), mpar, and NPARMAX.

Referenced by ChargedParticleTrack::ChargedParticleTrack(), and NeutralParticleTrack::NeutralParticleTrack().

void TrackFitObject::setName const char *  name_  )  [virtual]
 

Set object's name.

Parameters:
name_  Pointer to new name string

Reimplemented from BaseFitObject.

Definition at line 122 of file TrackFitObject.C.

References name.

Referenced by copy(), K0Event::genEvent(), and TrackFitObject().

bool TrackFitObject::setParam int  ilocal,
double  par_
[virtual]
 

Set value of parameter ilocal; return=success.

Parameters:
i  Local parameter number
par_  New parameter value

Implements BaseFitObject.

Reimplemented in ChargedParticleTrack, and NeutralParticleTrack.

Definition at line 82 of file TrackFitObject.C.

References invalidateCache(), NPARMAX, and par.

bool TrackFitObject::setParam int  ilocal,
double  par_,
bool  measured_,
bool  fixed_ = false
[virtual]
 

Set value and measured flag of parameter ilocal; return=success.

Parameters:
i  Local parameter number
par_  New parameter value
measured_  New "measured" flag
fixed_  New "fixed" flag

Implements BaseFitObject.

Reimplemented in ChargedParticleTrack, and NeutralParticleTrack.

Definition at line 73 of file TrackFitObject.C.

References fixed, invalidateCache(), measured, and NPARMAX.

virtual bool TrackFitObject::setParameters int  ivertex,
const ThreeVector vertex,
const FourVector momentum,
double  charge_
[pure virtual]
 

Set parameters such that track passes through a vertex with a given 4-momentum; return=success.

Parameters:
ivertex  Vertex number: 0=start, 1=stop
vertex  Vertex position
momentum  Four-momentum
charge_  Charge (signed, in units of e)

Implemented in ChargedParticleTrack, and NeutralParticleTrack.

virtual void TrackFitObject::setVertex int  ivertex,
const TwoVector v
[pure virtual]
 

Set start (i=0) or stop (i=1) vertex to a point as close as possible to given point.

Parameters:
ivertex  Vertex number: 0=start, 1=stop
v  Vertex position

Implemented in ChargedParticleTrack, and NeutralParticleTrack.


Member Data Documentation

double TrackFitObject::bfield = 1.14 [static]
 

Global B field in Tesla(!).

Definition at line 133 of file TrackFitObject.C.

Referenced by ChargedParticleTrack::ChargedParticleTrack(), K0Event::createSmearedChargedTrack(), getBfield(), setBfield(), ChargedParticleTrack::setParameters(), and ChargedParticleTrack::updateCache().

bool TrackFitObject::cachevalid [mutable, protected]
 

flag for valid cache

Definition at line 320 of file TrackFitObject.h.

Referenced by copy(), NeutralParticleTrack::getMomentumAtTrajectoryEx(), ChargedParticleTrack::getMomentumAtTrajectoryEx(), NeutralParticleTrack::getMomentumDerivativeAtTrajectoryEx(), ChargedParticleTrack::getMomentumDerivativeAtTrajectoryEx(), NeutralParticleTrack::getTrajectoryDerivativeEx(), ChargedParticleTrack::getTrajectoryDerivativeEx(), NeutralParticleTrack::getTrajectoryPointEx(), ChargedParticleTrack::getTrajectoryPointEx(), invalidateCache(), NeutralParticleTrack::setVertex(), ChargedParticleTrack::setVertex(), NeutralParticleTrack::updateCache(), and ChargedParticleTrack::updateCache().

double TrackFitObject::chi2 [mutable, protected]
 

chi^2

Definition at line 325 of file TrackFitObject.h.

Referenced by calculateChi2(), and getChi2().

bool TrackFitObject::chi2contr[NPARMAX] [mutable, protected]
 

contributes to chi2?

Definition at line 327 of file TrackFitObject.h.

Referenced by calculateChi2().

double TrackFitObject::cov[NPARMAX][NPARMAX] [protected]
 

local covariance matrix

Definition at line 316 of file TrackFitObject.h.

Referenced by addToGlobCov(), NeutralParticleTrack::addToGlobCov(), calculateCovInv(), checkCov(), copy(), getCov(), getError(), initCov(), NeutralParticleTrack::initCov(), ChargedParticleTrack::initCov(), printCov(), setCov(), setError(), and TrackFitObject().

double TrackFitObject::covinv[NPARMAX][NPARMAX] [mutable, protected]
 

inverse of local covariance matrix

Definition at line 318 of file TrackFitObject.h.

Referenced by calculateChi2(), calculateCovInv(), and TrackFitObject().

bool TrackFitObject::covinvvalid [mutable, protected]
 

flag for valid inverse covariance matrix

Definition at line 322 of file TrackFitObject.h.

Referenced by calculateChi2(), calculateCovInv(), checkCov(), copy(), initCov(), NeutralParticleTrack::initCov(), ChargedParticleTrack::initCov(), setCov(), and setError().

double TrackFitObject::err[NPARMAX] [protected]
 

errors

Definition at line 308 of file TrackFitObject.h.

Referenced by copy(), and TrackFitObject().

bool TrackFitObject::fixed[NPARMAX] [protected]
 

fixed flag

Definition at line 312 of file TrackFitObject.h.

Referenced by copy(), fixParam(), isParamFixed(), setParam(), NeutralParticleTrack::setParam(), ChargedParticleTrack::setParam(), and TrackFitObject().

int TrackFitObject::globalParNum[NPARMAX] [protected]
 

global paramter number for each parameter

Definition at line 314 of file TrackFitObject.h.

Referenced by copy(), getGlobalParNum(), setGlobalParNum(), and TrackFitObject().

bool TrackFitObject::measured[NPARMAX] [protected]
 

measured flag

Definition at line 310 of file TrackFitObject.h.

Referenced by copy(), isParamMeasured(), setParam(), NeutralParticleTrack::setParam(), ChargedParticleTrack::setParam(), and TrackFitObject().

double TrackFitObject::mpar[NPARMAX] [protected]
 

measured parameters

Definition at line 306 of file TrackFitObject.h.

Referenced by calculateChi2(), copy(), getMParam(), setMParam(), and TrackFitObject().

char* TrackFitObject::name [protected]
 

object name (name string must be allocated and deleted outside object!)

Definition at line 329 of file TrackFitObject.h.

Referenced by copy(), getName(), printCov(), setName(), and ~TrackFitObject().

double TrackFitObject::par[NPARMAX] [protected]
 

fit parameters

Definition at line 304 of file TrackFitObject.h.

Referenced by calculateChi2(), copy(), NeutralParticleTrack::getArcLength(), ChargedParticleTrack::getArcLength(), NeutralParticleTrack::getMass(), ChargedParticleTrack::getMass(), NeutralParticleTrack::getMomentumDerivativeAtTrajectoryEx(), ChargedParticleTrack::getMomentumDerivativeAtTrajectoryEx(), NeutralParticleTrack::getMomentumDerivativeEx(), ChargedParticleTrack::getMomentumDerivativeEx(), NeutralParticleTrack::getMomentumEx(), ChargedParticleTrack::getMomentumEx(), ChargedParticleTrack::getNormalS(), getParam(), NeutralParticleTrack::getTangentialHelix(), ChargedParticleTrack::getTangentialHelix(), NeutralParticleTrack::getVertexDerivativeEx(), ChargedParticleTrack::getVertexDerivativeEx(), NeutralParticleTrack::getVertexEx(), ChargedParticleTrack::getVertexEx(), setParam(), NeutralParticleTrack::setParam(), ChargedParticleTrack::setParam(), ChargedParticleTrack::setParameters(), NeutralParticleTrack::setVertex(), ChargedParticleTrack::setVertex(), TrackFitObject(), NeutralParticleTrack::updateCache(), and ChargedParticleTrack::updateCache().

double TrackFitObject::resid[NPARMAX] [mutable, protected]
 

residuals

Definition at line 326 of file TrackFitObject.h.

Referenced by calculateChi2().


The documentation for this class was generated from the following files:
Generated on Fri Sep 14 17:38:38 2007 for Kinfit by doxygen 1.3.2