StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
TrackFitter Class Reference

Public Member Functions

std::shared_ptr< genfit::Track > getTrack ()
 
 TrackFitter (FwdTrackerConfig _mConfig, TString geoCache)
 Construct a new Track Fitter object. More...
 
void setup ()
 Setup the tracker object Load geometry Setup Material Effects Setup the magnetic field Setup the fitter Setup the fit planes.
 
genfit::SharedPlanePtr getFstPlane (FwdHit *h)
 Get the Fst Plane object for a given hit. More...
 
TMatrixDSym CovMatPlane (KiTrack::IHit *h)
 Convert the 3x3 covmat to 2x2 by dropping z. More...
 
genfit::MeasuredStateOnPlane projectToFst (size_t fstPlane, std::shared_ptr< genfit::Track > fitTrack)
 Get projection to given FST plane. More...
 
genfit::MeasuredStateOnPlane projectToFtt (size_t iFttPlane, std::shared_ptr< genfit::Track > fitTrack)
 Get projection to given FTT plane. More...
 
bool setupTrack (Seed_t trackSeed)
 setup the track from the given seed and optional primary vertex More...
 
void performFit (std::shared_ptr< genfit::Track > t)
 performs the fit on a track More...
 
long long fitTrack (Seed_t trackSeed, TVector3 *seedMomentum=0)
 Primary track fitting routine. More...
 

Public Attributes

vector< genfit::SharedPlanePtr > mFTTPlanes
 
vector< genfit::SharedPlanePtr > mFSTPlanes
 
vector< genfit::SharedPlanePtr > mFSTPlanesInner
 
vector< genfit::SharedPlanePtr > mFSTPlanesOuter
 

Protected Attributes

std::unique_ptr
< genfit::AbsBField > 
mBField
 
FwdTrackerConfig mConfig
 
TString mGeoCache
 
std::unique_ptr
< genfit::AbsKalmanFitter > 
mFitter = nullptr
 
const int mPdgPiPlus = 211
 
const int mPdgPiMinus = -211
 
const int mPdgPositron = 11
 
const int mPdgElectron = -11
 
const int mPdgMuon = 13
 
const int mPdgAntiMuon = -13
 
vector< double > mFSTZLocations
 
vector< double > mFTTZLocations
 
std::shared_ptr< genfit::Track > mFitTrack
 

Detailed Description

Definition at line 34 of file TrackFitter.h.

Constructor & Destructor Documentation

TrackFitter::TrackFitter ( FwdTrackerConfig  _mConfig,
TString  geoCache 
)
inline

Construct a new Track Fitter object.

Parameters
_mConfig: Config object
geoCache: Geometry cache filename

Definition at line 48 of file TrackFitter.h.

Member Function Documentation

TMatrixDSym TrackFitter::CovMatPlane ( KiTrack::IHit *  h)
inline

Convert the 3x3 covmat to 2x2 by dropping z.

Parameters
h: hit with cov matrix
Returns
TMatrixDSym : cov matrix 2x2

Definition at line 253 of file TrackFitter.h.

long long TrackFitter::fitTrack ( Seed_t  trackSeed,
TVector3 *  seedMomentum = 0 
)
inline

Primary track fitting routine.

Parameters
trackSeed:
Vertex: Primary Vertex
seedMomentum: seed momentum (can be from MC)
Returns
void : the results can be accessed via the getTrack() method

Definition at line 478 of file TrackFitter.h.

genfit::SharedPlanePtr TrackFitter::getFstPlane ( FwdHit h)
inline

Get the Fst Plane object for a given hit.

Parameters
h: hit
Returns
genfit::SharedPlanePtr

Definition at line 221 of file TrackFitter.h.

void TrackFitter::performFit ( std::shared_ptr< genfit::Track >  t)
inline

performs the fit on a track

Parameters
t: track to fit

Definition at line 423 of file TrackFitter.h.

genfit::MeasuredStateOnPlane TrackFitter::projectToFst ( size_t  fstPlane,
std::shared_ptr< genfit::Track >  fitTrack 
)
inline

Get projection to given FST plane.

Parameters
fstPlane: plane index
fitTrack: track to project
Returns
genfit::MeasuredStateOnPlane

Definition at line 269 of file TrackFitter.h.

genfit::MeasuredStateOnPlane TrackFitter::projectToFtt ( size_t  iFttPlane,
std::shared_ptr< genfit::Track >  fitTrack 
)
inline

Get projection to given FTT plane.

Parameters
fttPlane: plane index
fitTrack: track to project
Returns
genfit::MeasuredStateOnPlane

Definition at line 291 of file TrackFitter.h.

bool TrackFitter::setupTrack ( Seed_t  trackSeed)
inline

setup the track from the given seed and optional primary vertex

Parameters
trackSeed: seed points
seedMom: seed momentum
seedPos: seed position
Vertex: primary vertex

Definition at line 311 of file TrackFitter.h.


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