CbmRoot
CbmStsFitPerformanceTask Class Reference

#include <CbmStsFitPerformanceTask.h>

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

Public Member Functions

 CbmStsFitPerformanceTask (const char *name="CbmStsFitPerformanceTask", Int_t iVerbose=1)
 
 ~CbmStsFitPerformanceTask ()
 
InitStatus Init ()
 
InitStatus ReInit ()
 
void Exec (Option_t *option)
 
void Finish ()
 
void FillMCStateVectors (CbmStsPoint *point, Double_t mc[], Bool_t out=0)
 
void FillMCStateVectors (CbmMvdPoint *point, Double_t mc[], Bool_t out=0)
 
void FillTrackHisto (const Double_t mc[6], CbmStsTrack *track, TH1D *hist[10])
 
void FillVertexHisto (TVector3 &mc, CbmVertex *V, TH1D *hist[8])
 
Bool_t IsLong (CbmStsTrack *track)
 
void DoTrackAnalysis (const bool ok=1)
 
void DoVertexAnalysis (const bool ok=1)
 
void DoD0Analysis (const bool ok=1)
 
Double_t GetCharge (CbmMCTrack *mcTrack)
 

Protected Member Functions

void CreateTrackHisto (TH1D *hist[10], const char *name, const char *title)
 
void CreateVertexHisto (TH1D *hist[9], const char *name, const char *title)
 
void CreateD0Histo (TH1D *hist[14], const char *name, const char *title)
 
 ClassDef (CbmStsFitPerformanceTask, 1)
 

Protected Attributes

Int_t fEvent
 
Bool_t fVertexAnalysis
 
Bool_t fD0Analysis
 
Bool_t fTrackAnalysis
 
TClonesArray * fMCTrackArray
 MCTracks. More...
 
TClonesArray * fStsPointArray
 StsPoints. More...
 
TClonesArray * fMvdPointArray
 StsPoints. More...
 
TClonesArray * fRecStsTrackArray
 Reconstructed StsTracks. More...
 
TClonesArray * fStsHitArray
 Sts hits. More...
 
TClonesArray * fMvdHitArray
 Sts hits. More...
 
CbmVertexfPrimaryVertex
 Primary vertex. More...
 
TClonesArray * fSTSTrackMatch
 Related MC tracks. More...
 
TH1D * fhChi2
 
TH1D * fhProb
 
TH1D * fhDP
 
TH2D * fhDP2
 
TH1D * fhDsP
 
TH2D * fhDsP2
 
TH1D * fhZMCf
 
TH1D * fhZMCl
 
TH1D * fhZRecof
 
TH1D * fhZRecol
 
TH2D * fhRes_vs_Mom_f
 
TH2D * fhRes_vs_Mom_l
 
TH2D * fhExtraTracks2ndMVD
 
TH1D * fhFrst [10]
 
TH1D * fhMid [10]
 
TH1D * fhLast [10]
 
TH1D * fhImp [10]
 
TH1D * fhImpPi [10]
 
TH1D * fhVfit [10]
 
TH1D * fhVtx [9]
 
TH1D * fhV [13][9]
 
TH2D * fhPq
 
TH1D * fhD0 [4][14]
 
TH1D * fhHitDensity [10]
 
TH1D * fhTrackDensity [8]
 
TH1D * fhTrackDensity0L
 
TDirectory * histodir
 
CbmStsKFTrackFitter fFitter
 

Private Member Functions

 CbmStsFitPerformanceTask (const CbmStsFitPerformanceTask &)
 
void operator= (const CbmStsFitPerformanceTask &)
 

Detailed Description

Constructor & Destructor Documentation

◆ CbmStsFitPerformanceTask() [1/2]

CbmStsFitPerformanceTask::CbmStsFitPerformanceTask ( const char *  name = "CbmStsFitPerformanceTask",
Int_t  iVerbose = 1 
)

Standard constructor

Definition at line 152 of file CbmStsFitPerformanceTask.cxx.

◆ ~CbmStsFitPerformanceTask()

CbmStsFitPerformanceTask::~CbmStsFitPerformanceTask ( )

Destructor

Definition at line 224 of file CbmStsFitPerformanceTask.cxx.

◆ CbmStsFitPerformanceTask() [2/2]

CbmStsFitPerformanceTask::CbmStsFitPerformanceTask ( const CbmStsFitPerformanceTask )
private

Member Function Documentation

◆ ClassDef()

CbmStsFitPerformanceTask::ClassDef ( CbmStsFitPerformanceTask  ,
 
)
protected

◆ CreateD0Histo()

void CbmStsFitPerformanceTask::CreateD0Histo ( TH1D *  hist[14],
const char *  name,
const char *  title 
)
protected

Definition at line 118 of file CbmStsFitPerformanceTask.cxx.

References i.

Referenced by Init().

◆ CreateTrackHisto()

void CbmStsFitPerformanceTask::CreateTrackHisto ( TH1D *  hist[10],
const char *  name,
const char *  title 
)
protected

Definition at line 62 of file CbmStsFitPerformanceTask.cxx.

References i.

Referenced by Init().

◆ CreateVertexHisto()

void CbmStsFitPerformanceTask::CreateVertexHisto ( TH1D *  hist[9],
const char *  name,
const char *  title 
)
protected

Definition at line 90 of file CbmStsFitPerformanceTask.cxx.

References i.

Referenced by Init().

◆ DoD0Analysis()

void CbmStsFitPerformanceTask::DoD0Analysis ( const bool  ok = 1)
inline

Definition at line 80 of file CbmStsFitPerformanceTask.h.

References fD0Analysis.

◆ DoTrackAnalysis()

void CbmStsFitPerformanceTask::DoTrackAnalysis ( const bool  ok = 1)
inline

Definition at line 78 of file CbmStsFitPerformanceTask.h.

References fTrackAnalysis.

◆ DoVertexAnalysis()

void CbmStsFitPerformanceTask::DoVertexAnalysis ( const bool  ok = 1)
inline

Definition at line 79 of file CbmStsFitPerformanceTask.h.

References fVertexAnalysis.

◆ Exec()

void CbmStsFitPerformanceTask::Exec ( Option_t *  option)

Execute task

Definition at line 426 of file CbmStsFitPerformanceTask.cxx.

References CbmStsKFSecondaryVertexFinder::AddTrack(), CbmKFMath::CopyTrackParam2TC(), d, CbmStsKFTrackFitter::DoFit(), CbmStsKFTrackFitter::Extrapolate(), fabs(), fD0Analysis, fEvent, fFitter, fhChi2, fhD0, fhDP, fhDP2, fhDsP, fhDsP2, fhFrst, fhHitDensity, fhImp, fhImpPi, fhLast, fhPq, fhProb, fhTrackDensity, fhTrackDensity0L, fhV, fhVtx, fhZMCf, fhZMCl, fhZRecof, fhZRecol, FillMCStateVectors(), FillTrackHisto(), FillVertexHisto(), CbmPVFinderKF::FindPrimaryVertex(), finite(), CbmStsKFSecondaryVertexFinder::Fit(), CbmStsKFTrackFitter::FitToVertex(), fMCTrackArray, fMvdHitArray, fMvdPointArray, fPrimaryVertex, fRecStsTrackArray, fStsHitArray, fStsPointArray, fSTSTrackMatch, fTrackAnalysis, fVertexAnalysis, CbmHit::GetAddress(), GetCharge(), CbmVertex::GetChi2(), CbmTrack::GetChiSq(), CbmVertex::GetCovariance(), CbmPixelHit::GetDx(), CbmPixelHit::GetDxy(), CbmPixelHit::GetDy(), CbmTrack::GetHitIndex(), CbmStsKFSecondaryVertexFinder::GetMass(), CbmMCTrack::GetMotherId(), CbmStsTrack::GetMvdHitIndex(), CbmTrack::GetNDF(), CbmVertex::GetNDF(), CbmStsTrack::GetNofMvdHits(), CbmStsTrack::GetNofStsHits(), CbmMCTrack::GetP(), CbmTrack::GetParamFirst(), CbmTrack::GetParamLast(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetPx(), CbmMCTrack::GetPy(), CbmMCTrack::GetPz(), CbmHit::GetRefId(), CbmMvdHit::GetRefIndex(), CbmMCTrack::GetStartVertex(), CbmMCTrack::GetStartX(), CbmMCTrack::GetStartY(), CbmMCTrack::GetStartZ(), CbmMvdHit::GetStationNr(), CbmStsSetup::GetStationNumber(), CbmStsKFSecondaryVertexFinder::GetVertex(), CbmVertex::GetX(), CbmPixelHit::GetX(), CbmVertex::GetY(), CbmPixelHit::GetY(), CbmVertex::GetZ(), i, CbmKFMath::indexS(), CbmKF::Instance(), CbmStsSetup::Instance(), CbmKFMath::invS(), IsLong(), m, CbmKF::MvdStationIDMap, nMCTracks, nStsHits, CbmStsKFSecondaryVertexFinder::SetMassConstraint(), CbmTrack::SetParamFirst(), CbmStsKFSecondaryVertexFinder::SetTopoConstraint(), sqrt(), CbmKF::StsStationIDMap, and v.

◆ FillMCStateVectors() [1/2]

void CbmStsFitPerformanceTask::FillMCStateVectors ( CbmMvdPoint point,
Double_t  mc[],
Bool_t  out = 0 
)

◆ FillMCStateVectors() [2/2]

void CbmStsFitPerformanceTask::FillMCStateVectors ( CbmStsPoint point,
Double_t  mc[],
Bool_t  out = 0 
)

This function fill state vectors t[], mc[] and covariance matrix c[] from the given FairTrackParam object and related CbmStsPoint object.

Parameters
inis set to 1 if in values of position and momentum are considered.

Definition at line 958 of file CbmStsFitPerformanceTask.cxx.

References fabs(), fMCTrackArray, GetCharge(), CbmStsPoint::MomentumOut(), and CbmStsPoint::PositionOut().

Referenced by Exec().

◆ FillTrackHisto()

void CbmStsFitPerformanceTask::FillTrackHisto ( const Double_t  mc[6],
CbmStsTrack track,
TH1D *  hist[10] 
)

This function fills track pulls and residuals at certain z-position

Definition at line 894 of file CbmStsFitPerformanceTask.cxx.

References CbmKFMath::CopyTrackParam2TC(), CbmStsKFTrackFitter::Extrapolate(), fabs(), fFitter, finite(), i, and sqrt().

Referenced by Exec().

◆ FillVertexHisto()

void CbmStsFitPerformanceTask::FillVertexHisto ( TVector3 &  mc,
CbmVertex V,
TH1D *  hist[8] 
)

This function fills vertex pulls and residuals

Definition at line 936 of file CbmStsFitPerformanceTask.cxx.

References CbmVertex::GetChi2(), CbmVertex::GetCovariance(), CbmVertex::GetNDF(), CbmVertex::GetNTracks(), CbmVertex::GetX(), CbmVertex::GetY(), CbmVertex::GetZ(), and sqrt().

Referenced by Exec().

◆ Finish()

void CbmStsFitPerformanceTask::Finish ( )

Finish task

Definition at line 889 of file CbmStsFitPerformanceTask.cxx.

References histodir, and writedir2current().

◆ GetCharge()

Double_t CbmStsFitPerformanceTask::GetCharge ( CbmMCTrack mcTrack)

Definition at line 1016 of file CbmStsFitPerformanceTask.cxx.

References CbmMCTrack::GetPdgCode().

Referenced by Exec(), and FillMCStateVectors().

◆ Init()

◆ IsLong()

Bool_t CbmStsFitPerformanceTask::IsLong ( CbmStsTrack track)

Returns 1 if track has >=8 measurements and stMaxID-stMinID>=4

Definition at line 1029 of file CbmStsFitPerformanceTask.cxx.

References fStsHitArray, CbmStsAddress::GetAddress(), CbmTrack::GetHitIndex(), and CbmStsTrack::GetNofStsHits().

Referenced by Exec().

◆ operator=()

void CbmStsFitPerformanceTask::operator= ( const CbmStsFitPerformanceTask )
private

◆ ReInit()

InitStatus CbmStsFitPerformanceTask::ReInit ( )

Member Data Documentation

◆ fD0Analysis

Bool_t CbmStsFitPerformanceTask::fD0Analysis
protected

Definition at line 90 of file CbmStsFitPerformanceTask.h.

Referenced by DoD0Analysis(), and Exec().

◆ fEvent

Int_t CbmStsFitPerformanceTask::fEvent
protected

Definition at line 89 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fFitter

CbmStsKFTrackFitter CbmStsFitPerformanceTask::fFitter
protected

Definition at line 131 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), FillTrackHisto(), and ReInit().

◆ fhChi2

TH1D* CbmStsFitPerformanceTask::fhChi2
protected

Definition at line 101 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhD0

TH1D* CbmStsFitPerformanceTask::fhD0[4][14]
protected

Definition at line 124 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhDP

TH1D* CbmStsFitPerformanceTask::fhDP
protected

Definition at line 103 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhDP2

TH2D* CbmStsFitPerformanceTask::fhDP2
protected

Definition at line 104 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhDsP

TH1D* CbmStsFitPerformanceTask::fhDsP
protected

Definition at line 105 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhDsP2

TH2D* CbmStsFitPerformanceTask::fhDsP2
protected

Definition at line 106 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhExtraTracks2ndMVD

TH2D* CbmStsFitPerformanceTask::fhExtraTracks2ndMVD
protected

Definition at line 113 of file CbmStsFitPerformanceTask.h.

Referenced by Init().

◆ fhFrst

TH1D* CbmStsFitPerformanceTask::fhFrst[10]
protected

Definition at line 115 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhHitDensity

TH1D* CbmStsFitPerformanceTask::fhHitDensity[10]
protected

Definition at line 126 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhImp

TH1D* CbmStsFitPerformanceTask::fhImp[10]
protected

Definition at line 118 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhImpPi

TH1D* CbmStsFitPerformanceTask::fhImpPi[10]
protected

Definition at line 119 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhLast

TH1D* CbmStsFitPerformanceTask::fhLast[10]
protected

Definition at line 117 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhMid

TH1D* CbmStsFitPerformanceTask::fhMid[10]
protected

Definition at line 116 of file CbmStsFitPerformanceTask.h.

Referenced by Init().

◆ fhPq

TH2D* CbmStsFitPerformanceTask::fhPq
protected

Definition at line 123 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhProb

TH1D* CbmStsFitPerformanceTask::fhProb
protected

Definition at line 102 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhRes_vs_Mom_f

TH2D* CbmStsFitPerformanceTask::fhRes_vs_Mom_f
protected

Definition at line 111 of file CbmStsFitPerformanceTask.h.

Referenced by Init().

◆ fhRes_vs_Mom_l

TH2D * CbmStsFitPerformanceTask::fhRes_vs_Mom_l
protected

Definition at line 111 of file CbmStsFitPerformanceTask.h.

Referenced by Init().

◆ fhTrackDensity

TH1D* CbmStsFitPerformanceTask::fhTrackDensity[8]
protected

Definition at line 127 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhTrackDensity0L

TH1D* CbmStsFitPerformanceTask::fhTrackDensity0L
protected

Definition at line 128 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhV

TH1D* CbmStsFitPerformanceTask::fhV[13][9]
protected

Definition at line 122 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhVfit

TH1D* CbmStsFitPerformanceTask::fhVfit[10]
protected

Definition at line 120 of file CbmStsFitPerformanceTask.h.

Referenced by Init().

◆ fhVtx

TH1D* CbmStsFitPerformanceTask::fhVtx[9]
protected

Definition at line 121 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhZMCf

TH1D* CbmStsFitPerformanceTask::fhZMCf
protected

Definition at line 108 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhZMCl

TH1D * CbmStsFitPerformanceTask::fhZMCl
protected

Definition at line 108 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhZRecof

TH1D* CbmStsFitPerformanceTask::fhZRecof
protected

Definition at line 109 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fhZRecol

TH1D * CbmStsFitPerformanceTask::fhZRecol
protected

Definition at line 109 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and Init().

◆ fMCTrackArray

TClonesArray* CbmStsFitPerformanceTask::fMCTrackArray
protected

MCTracks.

Definition at line 92 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), FillMCStateVectors(), and ReInit().

◆ fMvdHitArray

TClonesArray* CbmStsFitPerformanceTask::fMvdHitArray
protected

Sts hits.

Definition at line 97 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fMvdPointArray

TClonesArray* CbmStsFitPerformanceTask::fMvdPointArray
protected

StsPoints.

Definition at line 94 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fPrimaryVertex

CbmVertex* CbmStsFitPerformanceTask::fPrimaryVertex
protected

Primary vertex.

Definition at line 98 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fRecStsTrackArray

TClonesArray* CbmStsFitPerformanceTask::fRecStsTrackArray
protected

Reconstructed StsTracks.

Definition at line 95 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fStsHitArray

TClonesArray* CbmStsFitPerformanceTask::fStsHitArray
protected

Sts hits.

Definition at line 96 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), IsLong(), and ReInit().

◆ fStsPointArray

TClonesArray* CbmStsFitPerformanceTask::fStsPointArray
protected

StsPoints.

Definition at line 93 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fSTSTrackMatch

TClonesArray* CbmStsFitPerformanceTask::fSTSTrackMatch
protected

Related MC tracks.

Definition at line 99 of file CbmStsFitPerformanceTask.h.

Referenced by Exec(), and ReInit().

◆ fTrackAnalysis

Bool_t CbmStsFitPerformanceTask::fTrackAnalysis
protected

Definition at line 90 of file CbmStsFitPerformanceTask.h.

Referenced by DoTrackAnalysis(), and Exec().

◆ fVertexAnalysis

Bool_t CbmStsFitPerformanceTask::fVertexAnalysis
protected

Definition at line 90 of file CbmStsFitPerformanceTask.h.

Referenced by DoVertexAnalysis(), and Exec().

◆ histodir

TDirectory* CbmStsFitPerformanceTask::histodir
protected

Definition at line 130 of file CbmStsFitPerformanceTask.h.

Referenced by Finish(), and Init().


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