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 29 of file CbmTofTracklet.h.

Constructor & Destructor Documentation

◆ CbmTofTracklet() [1/2]

CbmTofTracklet::CbmTofTracklet ( )

◆ ~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)

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 169 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ ClassDef()

CbmTofTracklet::ClassDef ( CbmTofTracklet ,
3  )
private

Assignment operator

References CbmTofTracklet().

◆ Clear()

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

Definition at line 518 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 106 of file CbmTofTracklet.h.

References fDistance.

◆ GetFairTrackParamLast()

void CbmTofTracklet::GetFairTrackParamLast ( )
virtual

Definition at line 112 of file CbmTofTracklet.cxx.

References fParamLast, and fTrackPar.

◆ 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 492 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 122 of file CbmTofTracklet.h.

References fNDF.

Referenced by CbmTofTrackFinderNN::DoFind().

◆ GetNofHits()

◆ GetParamFirst()

const FairTrackParam * CbmTofTracklet::GetParamFirst ( ) const
inline

Definition at line 124 of file CbmTofTracklet.h.

References fParamFirst.

◆ GetParamLast()

const FairTrackParam * CbmTofTracklet::GetParamLast ( ) const
inline

Definition at line 125 of file CbmTofTracklet.h.

References fParamLast.

◆ GetPhi()

double CbmTofTracklet::GetPhi ( ) const
inline

Definition at line 63 of file CbmTofTracklet.h.

References fTrackPar.

◆ GetPidHypo()

int32_t CbmTofTracklet::GetPidHypo ( ) const
inline

PID hypothesis for track extrapolation to TOF

Definition at line 49 of file CbmTofTracklet.h.

References fPidHypo.

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

◆ GetPoint()

const double * CbmTofTracklet::GetPoint ( int32_t n)

Definition at line 482 of file CbmTofTracklet.cxx.

References fhit, and fP.

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

◆ GetR0()

◆ GetRefVel()

double CbmTofTracklet::GetRefVel ( uint32_t N)

Definition at line 544 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 64 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 59 of file CbmTofTracklet.h.

References fT0Err.

Referenced by CbmTofFindTracks::FillHistograms().

◆ GetT0TtCov()

double CbmTofTracklet::GetT0TtCov ( ) const
inline

Definition at line 61 of file CbmTofTracklet.h.

References fT0TtCov.

◆ GetTdif()

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

◆ GetTex()

double CbmTofTracklet::GetTex ( CbmTofHit * pHit)

Definition at line 166 of file CbmTofTracklet.cxx.

References Dist3D(), fhit, fTrackPar, fTt, GetTime(), and CbmHit::GetZ().

Referenced by CbmTofTrackFinderNN::DoFind().

◆ GetTheta()

double CbmTofTracklet::GetTheta ( ) const
inline

Definition at line 62 of file CbmTofTracklet.h.

References fTrackPar, and sqrt().

◆ GetTime()

double CbmTofTracklet::GetTime ( ) const
inline

◆ GetTofDetIndex()

◆ GetTofHitInd()

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

Definition at line 76 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 82 of file CbmTofTracklet.h.

References fTrackPar, and sqrt().

◆ GetTrackDy()

double CbmTofTracklet::GetTrackDy ( ) const
inline

Error of track x coordinate at TOF

Definition at line 85 of file CbmTofTracklet.h.

References fTrackPar, and sqrt().

◆ GetTrackLength()

double CbmTofTracklet::GetTrackLength ( ) const
inline

Track length from primary vertex to TOF

Definition at line 88 of file CbmTofTracklet.h.

References fTrackLength.

◆ GetTrackParameter()

◆ GetTrackTx()

double CbmTofTracklet::GetTrackTx ( ) const
inline

Track x slope

Definition at line 100 of file CbmTofTracklet.h.

References fTrackPar.

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

◆ GetTrackTy()

double CbmTofTracklet::GetTrackTy ( ) const
inline

Track y slope

Definition at line 103 of file CbmTofTracklet.h.

References fTrackPar.

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

◆ GetTrackX()

double CbmTofTracklet::GetTrackX ( ) const
inline

Track x position at TOF

Definition at line 94 of file CbmTofTracklet.h.

References fTrackPar.

◆ GetTrackY()

double CbmTofTracklet::GetTrackY ( ) const
inline

Track y position at TOF

Definition at line 97 of file CbmTofTracklet.h.

References fTrackPar.

◆ 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 ( )

Definition at line 146 of file CbmTofTracklet.cxx.

References fTrackPar.

Referenced by CbmTofFindTracks::FillHistograms().

◆ GetZ0y()

double CbmTofTracklet::GetZ0y ( )

Definition at line 153 of file CbmTofTracklet.cxx.

References fTrackPar.

Referenced by CbmTofFindTracks::FillHistograms().

◆ HitIndexOfAddr()

int32_t CbmTofTracklet::HitIndexOfAddr ( int32_t iAddr)
virtual

Definition at line 466 of file CbmTofTracklet.cxx.

References fhit, and fTofHit.

Referenced by CbmTofAnaTestbeam::FillHistos().

◆ HitPointerOfAddr()

CbmTofHit * CbmTofTracklet::HitPointerOfAddr ( int32_t iAddr)
virtual

Definition at line 474 of file CbmTofTracklet.cxx.

References fhit, and fTofHit.

Referenced by CbmTofAnaTestbeam::FillHistos().

◆ operator=()

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

References CbmTofTracklet().

◆ 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 181 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

Referenced by CbmTofTrackFinderNN::DoFind().

◆ SetChiSq()

void CbmTofTracklet::SetChiSq ( double chiSq)
inline

Definition at line 231 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 223 of file CbmTofTracklet.h.

References fDistance.

◆ SetNDF()

void CbmTofTracklet::SetNDF ( int32_t ndf)
inline

Definition at line 232 of file CbmTofTracklet.h.

References fNDF.

◆ SetParamFirst()

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

Definition at line 233 of file CbmTofTracklet.h.

References fParamFirst.

◆ SetParamLast() [1/2]

◆ SetParamLast() [2/2]

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

Definition at line 234 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 220 of file CbmTofTracklet.h.

References fPidHypo.

◆ SetT0()

void CbmTofTracklet::SetT0 ( double val)
inline

Definition at line 226 of file CbmTofTracklet.h.

References fT0.

Referenced by CbmTofTrackletTools::FitTt().

◆ SetT0Err()

void CbmTofTracklet::SetT0Err ( double val)
inline

Definition at line 227 of file CbmTofTracklet.h.

References fT0Err.

Referenced by CbmTofTrackletTools::FitTt().

◆ SetT0TtCov()

void CbmTofTracklet::SetT0TtCov ( double val)
inline

Definition at line 229 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 155 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 132 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 143 of file CbmTofTracklet.h.

References fhit, fMatChi, fTofDet, and fTofHit.

◆ SetTrackLength()

void CbmTofTracklet::SetTrackLength ( double trackLength)
inline

Set track length

Definition at line 217 of file CbmTofTracklet.h.

References fTrackLength.

◆ SetTrackParameter()

void CbmTofTracklet::SetTrackParameter ( CbmTofTrackletParam * par)
inline

Set track parameter

Definition at line 214 of file CbmTofTracklet.h.

References fTrackPar.

◆ SetTt()

void CbmTofTracklet::SetTt ( double val)
inline

◆ SetTtErr()

void CbmTofTracklet::SetTtErr ( double val)
inline

Definition at line 228 of file CbmTofTracklet.h.

References fTtErr.

Referenced by CbmTofTrackletTools::FitTt().

◆ UpdateT0()

double CbmTofTracklet::UpdateT0 ( )

◆ UpdateTt()

double CbmTofTracklet::UpdateTt ( )

Definition at line 296 of file CbmTofTracklet.cxx.

References fhit, fTt, and GetTime().

Member Data Documentation

◆ fChiSq

double CbmTofTracklet::fChiSq
private

Definition at line 252 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetChiSq(), and SetChiSq().

◆ fDistance

double CbmTofTracklet::fDistance
private

Definition at line 245 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetDistance(), and SetDistance().

◆ fhit

◆ fMatChi

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

◆ fNDF

int32_t CbmTofTracklet::fNDF
private

Definition at line 253 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetNDF(), and SetNDF().

◆ fP

double CbmTofTracklet::fP[4]
private

Definition at line 261 of file CbmTofTracklet.h.

Referenced by GetFitPoint(), and GetPoint().

◆ fParamFirst

FairTrackParam CbmTofTracklet::fParamFirst
private

Definition at line 255 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetParamFirst(), and SetParamFirst().

◆ fParamLast

FairTrackParam CbmTofTracklet::fParamLast
private

◆ fPidHypo

int32_t CbmTofTracklet::fPidHypo
private

Definition at line 244 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetPidHypo(), and SetPidHypo().

◆ fT0

double CbmTofTracklet::fT0
private

Definition at line 248 of file CbmTofTracklet.h.

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

◆ fT0Err

double CbmTofTracklet::fT0Err
private

Definition at line 249 of file CbmTofTracklet.h.

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

◆ fT0TtCov

double CbmTofTracklet::fT0TtCov
private

Definition at line 251 of file CbmTofTracklet.h.

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

◆ fTime

double CbmTofTracklet::fTime
private

Definition at line 246 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetTime(), and SetTime().

◆ fTofDet

◆ fTofHit

◆ fTrackLength

double CbmTofTracklet::fTrackLength
private

Copy Constructor

Definition at line 243 of file CbmTofTracklet.h.

Referenced by CbmTofTracklet(), CbmTofTracklet(), GetTrackLength(), and SetTrackLength().

◆ fTrackPar

◆ fTt

double CbmTofTracklet::fTt
private

◆ fTtErr

double CbmTofTracklet::fTtErr
private

Definition at line 250 of file CbmTofTracklet.h.

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


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