CbmRoot
Loading...
Searching...
No Matches
CbmTofTracklet Class Reference

Provides information on attaching a TofHit to a TofTrack. More...

#include <CbmTofTracklet.h>

Inheritance diagram for CbmTofTracklet:
[legend]
Collaboration diagram for CbmTofTracklet:
[legend]

Public Member Functions

 CbmTofTracklet ()
 
virtual ~CbmTofTracklet ()
 
virtual void PrintInfo ()
 
int32_t GetPidHypo () const
 
int32_t GetNofHits () const
 
int32_t GetHitIndex (int32_t ind) const
 
double GetT0 () const
 
double GetTt () const
 
double GetT0Err () const
 
double GetTtErr () const
 
double GetT0TtCov () const
 
double GetTheta () const
 
double GetPhi () const
 
int32_t GetStationHitIndex (int32_t iSm) const
 
int32_t GetTofHitIndex (int32_t ind) const
 
void SetTofHitIndex (int32_t ind, int32_t i)
 
CbmTofHitGetTofHitPointer (int32_t ind)
 
int32_t GetTofDetIndex (int32_t ind) const
 
const std::vector< int32_t > & GetTofHitInd () const
 
const double * GetPoint (int32_t n)
 
const double * GetFitPoint (int32_t n)
 
double GetTrackDx () const
 
double GetTrackDy () const
 
double GetTrackLength () const
 
CbmTofTrackletParamGetTrackParameter ()
 
double GetTrackX () const
 
double GetTrackY () const
 
double GetTrackTx () const
 
double GetTrackTy () const
 
double GetDistance () const
 
double GetTime () const
 
double UpdateTt ()
 
double UpdateT0 ()
 
double GetTex (CbmTofHit *pHit)
 
int32_t GetFirstInd (int32_t iSmType)
 
double GetZ0x ()
 
double GetZ0y ()
 
double GetR0 ()
 
double GetFitX (double Z)
 
double GetFitY (double Z)
 
double GetFitT (double R)
 
double GetRefVel (uint32_t N)
 
double GetChiSq () const
 
int32_t GetNDF () const
 
const FairTrackParam * GetParamFirst () const
 
const FairTrackParam * GetParamLast () const
 
virtual void GetFairTrackParamLast ()
 
virtual double GetMatChi2 (int32_t iSm)
 
void SetTofHitIndex (int32_t tofHitIndex, int32_t iDet, CbmTofHit *pHit)
 
void SetTofHitIndex (int32_t tofHitIndex, int32_t iDet, CbmTofHit *pHit, double chi2)
 
void SetTofHitInd (const std::vector< int32_t > &tofHitInd)
 
void AddTofHitIndex (int32_t tofHitIndex, int32_t iDet, CbmTofHit *pHit)
 
void AddTofHitIndex (int32_t tofHitIndex, int32_t iDet, CbmTofHit *pHit, double chi2)
 
void ReplaceTofHitIndex (int32_t tofHitIndex, int32_t iDet, CbmTofHit *pHit, double chi2)
 
void RemoveTofHitIndex (int32_t, int32_t iDet, CbmTofHit *, double)
 
virtual double GetXdif (int32_t iSmType, CbmTofHit *pHit)
 
virtual double GetYdif (int32_t iSmType, CbmTofHit *pHit)
 
virtual double GetTdif (int32_t iSmType, CbmTofHit *pHit)
 
virtual double Dist3D (CbmTofHit *pHit0, CbmTofHit *pHit1)
 
virtual bool ContainsAddr (int32_t iAddr)
 
virtual int32_t HitIndexOfAddr (int32_t iAddr)
 
virtual CbmTofHitHitPointerOfAddr (int32_t iAddr)
 
void SetTrackParameter (CbmTofTrackletParam *par)
 
void SetTrackLength (double trackLength)
 
void SetPidHypo (int32_t pid)
 
void SetDistance (double distance)
 
void SetTime (double val)
 
void SetTt (double val)
 
void SetT0 (double val)
 
void SetT0Err (double val)
 
void SetTtErr (double val)
 
void SetT0TtCov (double val)
 
void SetChiSq (double chiSq)
 
void SetNDF (int32_t ndf)
 
void SetParamFirst (const FairTrackParam *par)
 
void SetParamLast (const FairTrackParam *par)
 
void SetParamLast (const CbmTofTrackletParam *par)
 
void Clear (Option_t *option="")
 
 CbmTofTracklet (const CbmTofTracklet &)
 

Private Member Functions

CbmTofTrackletoperator= (const CbmTofTracklet &)
 
 ClassDef (CbmTofTracklet, 3)
 

Private Attributes

double fTrackLength
 
int32_t fPidHypo
 
double fDistance
 
double fTime
 
double fTt
 
double fT0
 
double fT0Err
 
double fTtErr
 
double fT0TtCov
 
double fChiSq
 
int32_t fNDF
 
CbmTofTrackletParam fTrackPar
 
FairTrackParam fParamFirst
 
FairTrackParam fParamLast
 
std::vector< int32_t > fTofHit
 
std::vector< int32_t > fTofDet
 
std::vector< double > fMatChi
 
std::vector< CbmTofHitfhit
 
double fP [4]
 

Detailed Description

Provides information on attaching a TofHit to a TofTrack.

Author
nh

Definition at line 30 of file CbmTofTracklet.h.

Constructor & Destructor Documentation

◆ CbmTofTracklet() [1/2]

CbmTofTracklet::CbmTofTracklet ( )

Constructor

Definition at line 25 of file CbmTofTracklet.cxx.

◆ ~CbmTofTracklet()

CbmTofTracklet::~CbmTofTracklet ( )
virtual

Constructor with parameters

Parameters
trackIndexArray index of global track
hitIndexArray index of TOF hit
trackLengthTrack length from primary vertex to TOF
trackParParameters of track at TOF
pidHypoPID hypothesis for track extrapolation Destructor

Definition at line 71 of file CbmTofTracklet.cxx.

◆ CbmTofTracklet() [2/2]

CbmTofTracklet::CbmTofTracklet ( const CbmTofTracklet & t)

Definition at line 48 of file CbmTofTracklet.cxx.

Member Function Documentation

◆ AddTofHitIndex() [1/2]

void CbmTofTracklet::AddTofHitIndex ( int32_t tofHitIndex,
int32_t iDet,
CbmTofHit * pHit )
inline

◆ AddTofHitIndex() [2/2]

void CbmTofTracklet::AddTofHitIndex ( int32_t tofHitIndex,
int32_t iDet,
CbmTofHit * pHit,
double chi2 )
inline

Definition at line 170 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ ClassDef()

CbmTofTracklet::ClassDef ( CbmTofTracklet ,
3  )
private

Assignment operator

◆ Clear()

void CbmTofTracklet::Clear ( Option_t * option = "")

Definition at line 516 of file CbmTofTracklet.cxx.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ ContainsAddr()

bool CbmTofTracklet::ContainsAddr ( int32_t iAddr)
virtual

◆ Dist3D()

◆ GetChiSq()

◆ GetDistance()

double CbmTofTracklet::GetDistance ( ) const
inline

Normalized distance from hit to track

Definition at line 107 of file CbmTofTracklet.h.

References fDistance.

◆ GetFairTrackParamLast()

◆ GetFirstInd()

int32_t CbmTofTracklet::GetFirstInd ( int32_t iSmType)

Definition at line 136 of file CbmTofTracklet.cxx.

References fTofDet, and fTofHit.

◆ GetFitPoint()

const double * CbmTofTracklet::GetFitPoint ( int32_t n)

Definition at line 490 of file CbmTofTracklet.cxx.

References fhit, fP, GetFitX(), and GetFitY().

Referenced by CbmEvDisTracks::Exec(), and CbmTsDisTofTracklets::GotoEvent().

◆ GetFitT()

◆ GetFitX()

◆ GetFitY()

◆ GetHitIndex()

int32_t CbmTofTracklet::GetHitIndex ( int32_t ind) const
inline

◆ GetMatChi2()

double CbmTofTracklet::GetMatChi2 ( int32_t iSm)
virtual

Definition at line 125 of file CbmTofTracklet.cxx.

References fMatChi, fTofDet, and fTofHit.

Referenced by CbmTofTrackFinderNN::DoFind(), and CbmTofAnaTestbeam::FillHistos().

◆ GetNDF()

int32_t CbmTofTracklet::GetNDF ( ) const
inline

Definition at line 123 of file CbmTofTracklet.h.

References fNDF.

Referenced by CbmTofTrackFinderNN::DoFind().

◆ GetNofHits()

◆ GetParamFirst()

const FairTrackParam * CbmTofTracklet::GetParamFirst ( ) const
inline

Definition at line 125 of file CbmTofTracklet.h.

References fParamFirst.

◆ GetParamLast()

const FairTrackParam * CbmTofTracklet::GetParamLast ( ) const
inline

Definition at line 126 of file CbmTofTracklet.h.

References fParamLast.

◆ GetPhi()

double CbmTofTracklet::GetPhi ( ) const
inline

◆ GetPidHypo()

int32_t CbmTofTracklet::GetPidHypo ( ) const
inline

PID hypothesis for track extrapolation to TOF

Definition at line 50 of file CbmTofTracklet.h.

References fPidHypo.

Referenced by CbmEvDisTracks::Exec(), and CbmTsDisTofTracklets::GotoEvent().

◆ GetPoint()

const double * CbmTofTracklet::GetPoint ( int32_t n)

Definition at line 480 of file CbmTofTracklet.cxx.

References fhit, fP, and CbmPixelHit::GetX().

Referenced by CbmEvDisTracks::Exec(), and CbmTsDisTofTracklets::GotoEvent().

◆ GetR0()

◆ GetRefVel()

double CbmTofTracklet::GetRefVel ( uint32_t N)

Definition at line 542 of file CbmTofTracklet.cxx.

References fhit, and GetTime().

Referenced by CbmTofFindTracks::FillHistograms().

◆ GetStationHitIndex()

int32_t CbmTofTracklet::GetStationHitIndex ( int32_t iSm) const
inline

Definition at line 65 of file CbmTofTracklet.h.

References fTofDet, and fTofHit.

Referenced by CbmTofTrackFinderNN::DoFind(), and CbmTofFindTracks::FillHistograms().

◆ GetT0()

double CbmTofTracklet::GetT0 ( ) const
inline

◆ GetT0Err()

double CbmTofTracklet::GetT0Err ( ) const
inline

Definition at line 60 of file CbmTofTracklet.h.

References fT0Err.

Referenced by CbmTofFindTracks::FillHistograms().

◆ GetT0TtCov()

double CbmTofTracklet::GetT0TtCov ( ) const
inline

Definition at line 62 of file CbmTofTracklet.h.

References fT0TtCov.

◆ GetTdif()

double CbmTofTracklet::GetTdif ( int32_t iSmType,
CbmTofHit * pHit )
virtual

◆ GetTex()

double CbmTofTracklet::GetTex ( CbmTofHit * pHit)

◆ GetTheta()

double CbmTofTracklet::GetTheta ( ) const
inline

◆ GetTime()

double CbmTofTracklet::GetTime ( ) const
inline

◆ GetTofDetIndex()

◆ GetTofHitInd()

const std::vector< int32_t > & CbmTofTracklet::GetTofHitInd ( ) const
inline

Definition at line 77 of file CbmTofTracklet.h.

References fTofHit.

◆ GetTofHitIndex()

int32_t CbmTofTracklet::GetTofHitIndex ( int32_t ind) const
inline

◆ GetTofHitPointer()

◆ GetTrackDx()

double CbmTofTracklet::GetTrackDx ( ) const
inline

Error of track x coordinate at TOF

Definition at line 83 of file CbmTofTracklet.h.

References fTrackPar, CbmTofTrackletParam::GetCovariance(), and sqrt().

◆ GetTrackDy()

double CbmTofTracklet::GetTrackDy ( ) const
inline

Error of track x coordinate at TOF

Definition at line 86 of file CbmTofTracklet.h.

References fTrackPar, CbmTofTrackletParam::GetCovariance(), and sqrt().

◆ GetTrackLength()

double CbmTofTracklet::GetTrackLength ( ) const
inline

Track length from primary vertex to TOF

Definition at line 89 of file CbmTofTracklet.h.

References fTrackLength.

◆ GetTrackParameter()

◆ GetTrackTx()

double CbmTofTracklet::GetTrackTx ( ) const
inline

Track x slope

Definition at line 101 of file CbmTofTracklet.h.

References fTrackPar, and CbmTofTrackletParam::GetTx().

Referenced by CbmTofExtendTracks::ExecExtend(), and CbmTofAnaTestbeam::FillHistos().

◆ GetTrackTy()

double CbmTofTracklet::GetTrackTy ( ) const
inline

Track y slope

Definition at line 104 of file CbmTofTracklet.h.

References fTrackPar, and CbmTofTrackletParam::GetTy().

Referenced by CbmTofExtendTracks::ExecExtend(), and CbmTofAnaTestbeam::FillHistos().

◆ GetTrackX()

double CbmTofTracklet::GetTrackX ( ) const
inline

Track x position at TOF

Definition at line 95 of file CbmTofTracklet.h.

References fTrackPar, and CbmTofTrackletParam::GetX().

◆ GetTrackY()

double CbmTofTracklet::GetTrackY ( ) const
inline

Track y position at TOF

Definition at line 98 of file CbmTofTracklet.h.

References fTrackPar, and CbmTofTrackletParam::GetY().

◆ GetTt()

◆ GetTtErr()

double CbmTofTracklet::GetTtErr ( ) const
inline

◆ GetXdif()

double CbmTofTracklet::GetXdif ( int32_t iSmType,
CbmTofHit * pHit )
virtual

◆ GetYdif()

double CbmTofTracklet::GetYdif ( int32_t iSmType,
CbmTofHit * pHit )
virtual

◆ GetZ0x()

double CbmTofTracklet::GetZ0x ( )

◆ GetZ0y()

double CbmTofTracklet::GetZ0y ( )

◆ HitIndexOfAddr()

int32_t CbmTofTracklet::HitIndexOfAddr ( int32_t iAddr)
virtual

Definition at line 464 of file CbmTofTracklet.cxx.

References fhit, and fTofHit.

Referenced by CbmTofAnaTestbeam::FillHistos().

◆ HitPointerOfAddr()

CbmTofHit * CbmTofTracklet::HitPointerOfAddr ( int32_t iAddr)
virtual

Definition at line 472 of file CbmTofTracklet.cxx.

References fhit, and fTofHit.

Referenced by CbmTofAnaTestbeam::FillHistos().

◆ operator=()

CbmTofTracklet & CbmTofTracklet::operator= ( const CbmTofTracklet & )
private

◆ PrintInfo()

void CbmTofTracklet::PrintInfo ( )
virtual

◆ RemoveTofHitIndex()

void CbmTofTracklet::RemoveTofHitIndex ( int32_t ,
int32_t iDet,
CbmTofHit * ,
double  )
inline

◆ ReplaceTofHitIndex()

void CbmTofTracklet::ReplaceTofHitIndex ( int32_t tofHitIndex,
int32_t iDet,
CbmTofHit * pHit,
double chi2 )
inline

Definition at line 182 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

Referenced by CbmTofTrackFinderNN::DoFind().

◆ SetChiSq()

void CbmTofTracklet::SetChiSq ( double chiSq)
inline

Definition at line 232 of file CbmTofTracklet.h.

References fChiSq.

Referenced by CbmTofTrackFinderNN::Line3Dfit().

◆ SetDistance()

void CbmTofTracklet::SetDistance ( double distance)
inline

Set normalized distance from hit to track

Definition at line 224 of file CbmTofTracklet.h.

References fDistance.

◆ SetNDF()

void CbmTofTracklet::SetNDF ( int32_t ndf)
inline

Definition at line 233 of file CbmTofTracklet.h.

References fNDF.

◆ SetParamFirst()

void CbmTofTracklet::SetParamFirst ( const FairTrackParam * par)
inline

Definition at line 234 of file CbmTofTracklet.h.

References fParamFirst.

◆ SetParamLast() [1/2]

◆ SetParamLast() [2/2]

void CbmTofTracklet::SetParamLast ( const FairTrackParam * par)
inline

Definition at line 235 of file CbmTofTracklet.h.

References fParamLast.

◆ SetPidHypo()

void CbmTofTracklet::SetPidHypo ( int32_t pid)
inline

Set PID hypothesis for track extrapolation to TOF

Definition at line 221 of file CbmTofTracklet.h.

References fPidHypo.

◆ SetT0()

void CbmTofTracklet::SetT0 ( double val)
inline

Definition at line 227 of file CbmTofTracklet.h.

References fT0.

Referenced by CbmTofTrackletTools::FitTt().

◆ SetT0Err()

void CbmTofTracklet::SetT0Err ( double val)
inline

Definition at line 228 of file CbmTofTracklet.h.

References fT0Err.

Referenced by CbmTofTrackletTools::FitTt().

◆ SetT0TtCov()

void CbmTofTracklet::SetT0TtCov ( double val)
inline

Definition at line 230 of file CbmTofTracklet.h.

References fT0TtCov.

Referenced by CbmTofTrackletTools::FitTt().

◆ SetTime()

void CbmTofTracklet::SetTime ( double val)
inline

◆ SetTofHitInd()

void CbmTofTracklet::SetTofHitInd ( const std::vector< int32_t > & tofHitInd)
inline

Definition at line 156 of file CbmTofTracklet.h.

References fTofHit.

◆ SetTofHitIndex() [1/3]

void CbmTofTracklet::SetTofHitIndex ( int32_t ind,
int32_t i )
inline

◆ SetTofHitIndex() [2/3]

void CbmTofTracklet::SetTofHitIndex ( int32_t tofHitIndex,
int32_t iDet,
CbmTofHit * pHit )
inline

Set TOF hit index

Definition at line 133 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ SetTofHitIndex() [3/3]

void CbmTofTracklet::SetTofHitIndex ( int32_t tofHitIndex,
int32_t iDet,
CbmTofHit * pHit,
double chi2 )
inline

Definition at line 144 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ SetTrackLength()

void CbmTofTracklet::SetTrackLength ( double trackLength)
inline

Set track length

Definition at line 218 of file CbmTofTracklet.h.

References fTrackLength.

◆ SetTrackParameter()

void CbmTofTracklet::SetTrackParameter ( CbmTofTrackletParam * par)
inline

Set track parameter

Definition at line 215 of file CbmTofTracklet.h.

References fTrackPar.

◆ SetTt()

void CbmTofTracklet::SetTt ( double val)
inline

◆ SetTtErr()

void CbmTofTracklet::SetTtErr ( double val)
inline

Definition at line 229 of file CbmTofTracklet.h.

References fTtErr.

Referenced by CbmTofTrackletTools::FitTt().

◆ UpdateT0()

◆ UpdateTt()

double CbmTofTracklet::UpdateTt ( )

Definition at line 294 of file CbmTofTracklet.cxx.

References fhit, fTt, and GetTime().

Member Data Documentation

◆ fChiSq

double CbmTofTracklet::fChiSq
private

Definition at line 253 of file CbmTofTracklet.h.

Referenced by GetChiSq(), and SetChiSq().

◆ fDistance

double CbmTofTracklet::fDistance
private

Definition at line 246 of file CbmTofTracklet.h.

Referenced by GetDistance(), and SetDistance().

◆ fhit

◆ fMatChi

std::vector<double> CbmTofTracklet::fMatChi
private

◆ fNDF

int32_t CbmTofTracklet::fNDF
private

Definition at line 254 of file CbmTofTracklet.h.

Referenced by GetNDF(), and SetNDF().

◆ fP

double CbmTofTracklet::fP[4]
private

Definition at line 262 of file CbmTofTracklet.h.

Referenced by GetFitPoint(), and GetPoint().

◆ fParamFirst

FairTrackParam CbmTofTracklet::fParamFirst
private

Definition at line 256 of file CbmTofTracklet.h.

Referenced by GetParamFirst(), and SetParamFirst().

◆ fParamLast

FairTrackParam CbmTofTracklet::fParamLast
private

Definition at line 257 of file CbmTofTracklet.h.

Referenced by GetFairTrackParamLast(), GetParamLast(), SetParamLast(), and SetParamLast().

◆ fPidHypo

int32_t CbmTofTracklet::fPidHypo
private

Definition at line 245 of file CbmTofTracklet.h.

Referenced by GetPidHypo(), and SetPidHypo().

◆ fT0

double CbmTofTracklet::fT0
private

Definition at line 249 of file CbmTofTracklet.h.

Referenced by GetFitT(), GetT0(), SetT0(), and UpdateT0().

◆ fT0Err

double CbmTofTracklet::fT0Err
private

Definition at line 250 of file CbmTofTracklet.h.

Referenced by GetT0Err(), SetT0Err(), and UpdateT0().

◆ fT0TtCov

double CbmTofTracklet::fT0TtCov
private

Definition at line 252 of file CbmTofTracklet.h.

Referenced by GetT0TtCov(), SetT0TtCov(), and UpdateT0().

◆ fTime

double CbmTofTracklet::fTime
private

Definition at line 247 of file CbmTofTracklet.h.

Referenced by GetTime(), and SetTime().

◆ fTofDet

◆ fTofHit

◆ fTrackLength

double CbmTofTracklet::fTrackLength
private

Copy Constructor

Definition at line 244 of file CbmTofTracklet.h.

Referenced by GetTrackLength(), and SetTrackLength().

◆ fTrackPar

◆ fTt

double CbmTofTracklet::fTt
private

Definition at line 248 of file CbmTofTracklet.h.

Referenced by GetFitT(), GetTdif(), GetTex(), GetTt(), SetTt(), UpdateT0(), and UpdateTt().

◆ fTtErr

double CbmTofTracklet::fTtErr
private

Definition at line 251 of file CbmTofTracklet.h.

Referenced by GetTtErr(), SetTtErr(), and UpdateT0().


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