#include <CbmTrackingTrdQa.h>
|
static const int | fgkNpdg = 6 |
|
static const char * | fgkIdxName [fgkNpdg] = {"e", "#mu", "#pi", "K", "#bf{p}", "any"} |
|
static const char * | fgkIdxSymb [fgkNpdg] = {"e", "mu", "pi", "K", "p", "x"} |
|
Definition at line 38 of file CbmTrackingTrdQa.h.
◆ CbmTrackingTrdQa() [1/3]
CbmTrackingTrdQa::CbmTrackingTrdQa |
( |
Int_t | iVerbose = 1 | ) |
|
◆ CbmTrackingTrdQa() [2/3]
CbmTrackingTrdQa::CbmTrackingTrdQa |
( |
Int_t | minHits, |
|
|
Double_t | quota, |
|
|
Int_t | iVerbose ) |
Standard constructor
- Parameters
-
minHits | Minimal number of TrdHits for considered MCTracks |
quota | True/all hits for track to be considered reconstructed |
iVerbose | Verbosity level |
Definition at line 104 of file CbmTrackingTrdQa.cxx.
◆ ~CbmTrackingTrdQa()
CbmTrackingTrdQa::~CbmTrackingTrdQa |
( |
| ) |
|
|
virtual |
◆ CbmTrackingTrdQa() [3/3]
◆ ClassDef()
◆ CollectMcEvents()
void CbmTrackingTrdQa::CollectMcEvents |
( |
TClonesArray * | Matches | ) |
|
|
private |
◆ CreateHistos()
void CbmTrackingTrdQa::CreateHistos |
( |
| ) |
|
|
private |
Create histograms
Definition at line 682 of file CbmTrackingTrdQa.cxx.
References fgkNpdg, fHistoList, fhNhClones, fhNhGhosts, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpEffAll, fhNpEffPrim, fhNpEffSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhPidPtY, fhPResPrim, fhPResPrimSts0, fhPResPrimSts1, fhPResPrimSts2, fhPResPrimSts3, fhPtAccAll, fhPtAccPrim, fhPtAccSec, fhPtEffAll, fhPtEffPrim, fhPtEffSec, fhPtRecAll, fhPtRecPrim, fhPtRecSec, fhPtResPrim, fhStationEffXY, fhZAccSec, fhZEffSec, fhZRecSec, fOutFolder, fTrdNstations, Idx2Name(), and Idx2Symb().
Referenced by Init().
◆ DivideHistos()
void CbmTrackingTrdQa::DivideHistos |
( |
TH1 * | histo1, |
|
|
TH1 * | histo2, |
|
|
TH1 * | histo3, |
|
|
Option_t * | opt = "" ) |
|
private |
Divide histograms (reco/all) with correct error for the efficiency
- Parameters
-
histo1 | reconstructed tracks |
histo2 | all tracks (normalisation) |
histo3 | efficiency |
opt | histogram dimension, for 2D use opt = "2D" |
Definition at line 967 of file CbmTrackingTrdQa.cxx.
Referenced by Finish().
◆ Exec()
void CbmTrackingTrdQa::Exec |
( |
Option_t * | opt | ) |
|
|
virtual |
Execution
Definition at line 123 of file CbmTrackingTrdQa.cxx.
References CbmTrackingTrdQa::McTrackInfo::fGlobalTrackMatch, fGlobalTracks, CbmTrackingTrdQa::McTrackInfo::fHitMap, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhPidPtY, fhPResPrim, fhPResPrimSts0, fhPResPrimSts1, fhPResPrimSts2, fhPResPrimSts3, fhPtAccAll, fhPtAccPrim, fhPtAccSec, fhPtRecAll, fhPtRecPrim, fhPtRecSec, fhPtResPrim, fhStationEffXY, fhZAccSec, fhZRecSec, FillHitMap(), FillTrackMatchMap(), CbmTrackingTrdQa::McTrackInfo::fIsAccepted, CbmTrackingTrdQa::McTrackInfo::fIsFast, CbmTrackingTrdQa::McTrackInfo::fIsLong, CbmTrackingTrdQa::McTrackInfo::fIsPrimary, fMcTrackInfoMap, fMCTracks, fMinStations, fNAccAll, fNAccFast, fNAccFastLong, fNAccPrim, fNAccSec, fNAll, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecFast, fNRecFastLong, fNRecPrim, fNRecSec, CbmTrackingTrdQa::McTrackInfo::fNtimesReconstructed, CbmTrackingTrdQa::McTrackInfo::fP, CbmTrackingTrdQa::McTrackInfo::fPdg, CbmTrackingTrdQa::McTrackInfo::fPt, CbmTrackingTrdQa::McTrackInfo::fQuali, fQuota, CbmTrackingTrdQa::McTrackInfo::fStsTrackMatch, fStsTrackMatches, fStsTracks, fTargetPos, fTime, fTimer, fTimeSlice, fTrdNstations, fTrdPoints, CbmTrackingTrdQa::McTrackInfo::fTrdTrackMatch, fTrdTrackMatches, fTrdTracks, CbmTrackingTrdQa::McTrackInfo::fY, fYCM, CbmMCDataArray::Get(), CbmMatch::GetLinks(), CbmTimeSlice::GetMatch(), getMcTrackInfo(), CbmMCTrack::GetMomentum(), CbmTrack::GetNofHits(), CbmTrackMatchNew::GetNofTrueHits(), CbmTrackMatchNew::GetNofWrongHits(), CbmGlobalTrack::GetParamFirst(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetRapidity(), CbmMCTrack::GetStartVertex(), CbmStsTrack::GetTotalNofHits(), CbmTrdTrackingInterface::GetTrackingStationIndex(), CbmTrdTrackingInterface::Instance(), nMCTracks, nStsHits, Pdg2Idx(), CbmLink::SetIndex(), CbmMCDataArray::Size(), and sqrt().
◆ FillHitMap()
void CbmTrackingTrdQa::FillHitMap |
( |
| ) |
|
|
private |
Fill a map from MCTrack index to number of corresponding TrdHits
Definition at line 825 of file CbmTrackingTrdQa.cxx.
References CbmTrackingTrdQa::McTrackInfo::fHitMap, fTrdHitMatch, fTrdHits, fTrdPoints, CbmMCDataArray::Get(), CbmTrdHit::GetClassType(), CbmMatch::GetMatchedLink(), getMcTrackInfo(), CbmMatch::GetNofLinks(), CbmTrdTrackingInterface::GetTrackingStationIndex(), CbmTrdTrackingInterface::Instance(), and CbmLink::SetIndex().
Referenced by Exec().
◆ FillTrackMatchMap()
void CbmTrackingTrdQa::FillTrackMatchMap |
( |
Int_t & | nRec, |
|
|
Int_t & | nGhosts, |
|
|
Int_t & | nClones ) |
|
private |
Fill a map from MCTrack index to matched GlobalTrack index
- Parameters
-
nRec | Number of reconstructed tracks (return) |
nGhosts | Number of ghost tracks (return) |
nClones | Number of clone tracks (return) |
Definition at line 865 of file CbmTrackingTrdQa.cxx.
References CbmTrackingTrdQa::McTrackInfo::fGlobalTrackMatch, fGlobalTracks, fhNhClones, fhNhGhosts, CbmTrackingTrdQa::McTrackInfo::fIsAccepted, CbmTrackingTrdQa::McTrackInfo::fMatchedNHitsAll, CbmTrackingTrdQa::McTrackInfo::fMatchedNHitsTrue, fMcTrackInfoMap, CbmTrackingTrdQa::McTrackInfo::fNtimesReconstructed, CbmTrackingTrdQa::McTrackInfo::fQuali, fQuota, CbmTrackingTrdQa::McTrackInfo::fStsTrackMatch, CbmTrackingTrdQa::McTrackInfo::fTrdTrackMatch, fTrdTrackMatches, fTrdTracks, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), getMcTrackInfo(), CbmTrack::GetNofHits(), CbmMatch::GetNofLinks(), CbmTrackMatchNew::GetNofTrueHits(), CbmGlobalTrack::GetStsTrackIndex(), CbmGlobalTrack::GetTrdTrackIndex(), and CbmLink::SetFile().
Referenced by Exec().
◆ Finish()
void CbmTrackingTrdQa::Finish |
( |
| ) |
|
|
privatevirtual |
Finish
Definition at line 546 of file CbmTrackingTrdQa.cxx.
References DivideHistos(), fgkNpdg, fhNhClones, fhNhGhosts, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpEffAll, fhNpEffPrim, fhNpEffSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhPidPtY, fhPtAccAll, fhPtAccPrim, fhPtAccSec, fhPtEffAll, fhPtEffPrim, fhPtEffSec, fhPtRecAll, fhPtRecPrim, fhPtRecSec, fhZAccSec, fhZEffSec, fhZRecSec, fNAccAll, fNAccFast, fNAccFastLong, fNAccPrim, fNAccSec, fNAll, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecFast, fNRecFastLong, fNRecPrim, fNRecSec, fOutFolder, and fTime.
◆ GetGeometry()
InitStatus CbmTrackingTrdQa::GetGeometry |
( |
| ) |
|
|
private |
◆ getMcTrackInfo()
◆ GetTargetPosition()
void CbmTrackingTrdQa::GetTargetPosition |
( |
| ) |
|
|
private |
◆ Idx2Name()
const char * CbmTrackingTrdQa::Idx2Name |
( |
int | idx | ) |
|
|
staticprivate |
◆ Idx2Pdg()
int CbmTrackingTrdQa::Idx2Pdg |
( |
int | idx | ) |
|
|
staticprivate |
◆ Idx2Symb()
const char * CbmTrackingTrdQa::Idx2Symb |
( |
int | idx | ) |
|
|
staticprivate |
◆ Init()
InitStatus CbmTrackingTrdQa::Init |
( |
| ) |
|
|
virtual |
Initialisation
Definition at line 433 of file CbmTrackingTrdQa.cxx.
References CreateHistos(), fGlobalTracks, fManager, fMcManager, fMCTracks, fMinStations, fQuota, fStsTrackMatches, fStsTracks, fTargetPos, fTimeSlice, fTrdHitMatch, fTrdHits, fTrdNstations, fTrdPoints, fTrdTrackMatches, fTrdTracks, GetGeometry(), CbmMCDataManager::InitBranch(), and Reset().
◆ operator=()
◆ Pdg2Idx()
int CbmTrackingTrdQa::Pdg2Idx |
( |
int | pdg | ) |
|
|
staticprivate |
◆ ReInit()
InitStatus CbmTrackingTrdQa::ReInit |
( |
| ) |
|
|
virtual |
◆ Reset()
void CbmTrackingTrdQa::Reset |
( |
| ) |
|
|
private |
Reset histograms and counters
Definition at line 810 of file CbmTrackingTrdQa.cxx.
References fHistoList, fNAccAll, fNAccFast, fNAccFastLong, fNAccPrim, fNAccSec, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecFast, fNRecFastLong, fNRecPrim, and fNRecSec.
Referenced by Init().
◆ SetParContainers()
void CbmTrackingTrdQa::SetParContainers |
( |
| ) |
|
|
virtual |
◆ SetYcm()
void CbmTrackingTrdQa::SetYcm |
( |
double | ycm | ) |
|
|
inline |
Set rapidity of CM for the collision such that tracks are represented in CM
Definition at line 55 of file CbmTrackingTrdQa.h.
References fYCM.
◆ fgkIdxName
const char * CbmTrackingTrdQa::fgkIdxName = {"e", "#mu", "#pi", "K", "#bf{p}", "any"} |
|
staticprivate |
◆ fgkIdxSymb
const char * CbmTrackingTrdQa::fgkIdxSymb = {"e", "mu", "pi", "K", "p", "x"} |
|
staticprivate |
◆ fgkNpdg
const int CbmTrackingTrdQa::fgkNpdg = 6 |
|
staticprivate |
◆ fGlobalTracks
TClonesArray* CbmTrackingTrdQa::fGlobalTracks = nullptr |
|
private |
◆ fHistoList
TList* CbmTrackingTrdQa::fHistoList = nullptr |
|
private |
◆ fhNhClones
TH1F* CbmTrackingTrdQa::fhNhClones = nullptr |
|
private |
◆ fhNhGhosts
TH1F* CbmTrackingTrdQa::fhNhGhosts = nullptr |
|
private |
◆ fhNpAccAll
TH1F* CbmTrackingTrdQa::fhNpAccAll = nullptr |
|
private |
◆ fhNpAccPrim
TH1F* CbmTrackingTrdQa::fhNpAccPrim = nullptr |
|
private |
◆ fhNpAccSec
TH1F* CbmTrackingTrdQa::fhNpAccSec = nullptr |
|
private |
◆ fhNpEffAll
TH1F* CbmTrackingTrdQa::fhNpEffAll = nullptr |
|
private |
◆ fhNpEffPrim
TH1F* CbmTrackingTrdQa::fhNpEffPrim = nullptr |
|
private |
◆ fhNpEffSec
TH1F* CbmTrackingTrdQa::fhNpEffSec = nullptr |
|
private |
◆ fhNpRecAll
TH1F* CbmTrackingTrdQa::fhNpRecAll = nullptr |
|
private |
◆ fhNpRecPrim
TH1F* CbmTrackingTrdQa::fhNpRecPrim = nullptr |
|
private |
◆ fhNpRecSec
TH1F* CbmTrackingTrdQa::fhNpRecSec = nullptr |
|
private |
◆ fhPidPtY
std::map<const char*, std::array<TH2F*, fgkNpdg> > CbmTrackingTrdQa::fhPidPtY |
|
private |
◆ fhPidXY
std::array<TH2F*, fgkNpdg> CbmTrackingTrdQa::fhPidXY |
|
private |
◆ fhPResPrim
TH1F* CbmTrackingTrdQa::fhPResPrim = nullptr |
|
private |
◆ fhPResPrimSts0
TH1F* CbmTrackingTrdQa::fhPResPrimSts0 = nullptr |
|
private |
◆ fhPResPrimSts1
TH1F* CbmTrackingTrdQa::fhPResPrimSts1 = nullptr |
|
private |
◆ fhPResPrimSts2
TH1F* CbmTrackingTrdQa::fhPResPrimSts2 = nullptr |
|
private |
◆ fhPResPrimSts3
TH1F* CbmTrackingTrdQa::fhPResPrimSts3 = nullptr |
|
private |
◆ fhPtAccAll
TH1F* CbmTrackingTrdQa::fhPtAccAll = nullptr |
|
private |
◆ fhPtAccPrim
TH1F* CbmTrackingTrdQa::fhPtAccPrim = nullptr |
|
private |
◆ fhPtAccSec
TH1F* CbmTrackingTrdQa::fhPtAccSec = nullptr |
|
private |
◆ fhPtEffAll
TH1F* CbmTrackingTrdQa::fhPtEffAll = nullptr |
|
private |
◆ fhPtEffPrim
TH1F* CbmTrackingTrdQa::fhPtEffPrim = nullptr |
|
private |
◆ fhPtEffSec
TH1F* CbmTrackingTrdQa::fhPtEffSec = nullptr |
|
private |
◆ fhPtRecAll
TH1F* CbmTrackingTrdQa::fhPtRecAll = nullptr |
|
private |
◆ fhPtRecPrim
TH1F* CbmTrackingTrdQa::fhPtRecPrim = nullptr |
|
private |
◆ fhPtRecSec
TH1F* CbmTrackingTrdQa::fhPtRecSec = nullptr |
|
private |
◆ fhPtResPrim
TH1F* CbmTrackingTrdQa::fhPtResPrim = nullptr |
|
private |
◆ fhStationEffXY
std::vector<CbmQaHist<TProfile2D> > CbmTrackingTrdQa::fhStationEffXY |
|
private |
◆ fhZAccSec
TH1F* CbmTrackingTrdQa::fhZAccSec = nullptr |
|
private |
◆ fhZEffSec
TH1F* CbmTrackingTrdQa::fhZEffSec = nullptr |
|
private |
◆ fhZRecSec
TH1F* CbmTrackingTrdQa::fhZRecSec = nullptr |
|
private |
◆ fManager
FairRootManager* CbmTrackingTrdQa::fManager = nullptr |
|
private |
◆ fMcManager
◆ fMcTrackInfoMap
◆ fMCTracks
◆ fMinStations
Int_t CbmTrackingTrdQa::fMinStations = 4 |
|
private |
◆ fNAccAll
Int_t CbmTrackingTrdQa::fNAccAll = 0 |
|
private |
◆ fNAccFast
Int_t CbmTrackingTrdQa::fNAccFast = 0 |
|
private |
◆ fNAccFastLong
Int_t CbmTrackingTrdQa::fNAccFastLong = 0 |
|
private |
◆ fNAccPrim
Int_t CbmTrackingTrdQa::fNAccPrim = 0 |
|
private |
◆ fNAccSec
Int_t CbmTrackingTrdQa::fNAccSec = 0 |
|
private |
◆ fNAll
Int_t CbmTrackingTrdQa::fNAll = 0 |
|
private |
◆ fNClones
Int_t CbmTrackingTrdQa::fNClones = 0 |
|
private |
◆ fNEvents
Int_t CbmTrackingTrdQa::fNEvents = 0 |
|
private |
◆ fNEventsFailed
Int_t CbmTrackingTrdQa::fNEventsFailed = 0 |
|
private |
◆ fNGhosts
Int_t CbmTrackingTrdQa::fNGhosts = 0 |
|
private |
◆ fNRecAll
Int_t CbmTrackingTrdQa::fNRecAll = 0 |
|
private |
◆ fNRecFast
Int_t CbmTrackingTrdQa::fNRecFast = 0 |
|
private |
◆ fNRecFastLong
Int_t CbmTrackingTrdQa::fNRecFastLong = 0 |
|
private |
◆ fNRecPrim
Int_t CbmTrackingTrdQa::fNRecPrim = 0 |
|
private |
◆ fNRecSec
Int_t CbmTrackingTrdQa::fNRecSec = 0 |
|
private |
◆ fOutFolder
TFolder CbmTrackingTrdQa::fOutFolder = {"TrackingTrdQa", "TrackingTrdQa"} |
|
private |
◆ fQuota
Double_t CbmTrackingTrdQa::fQuota = 0.7 |
|
private |
◆ fStsTrackMatches
TClonesArray* CbmTrackingTrdQa::fStsTrackMatches = nullptr |
|
private |
◆ fStsTracks
TClonesArray* CbmTrackingTrdQa::fStsTracks = nullptr |
|
private |
◆ fTargetPos
TVector3 CbmTrackingTrdQa::fTargetPos = {0., 0., 0.} |
|
private |
◆ fTime
Double_t CbmTrackingTrdQa::fTime = 0. |
|
private |
◆ fTimer
TStopwatch CbmTrackingTrdQa::fTimer = {} |
|
private |
◆ fTimeSlice
◆ fTrdHitMatch
TClonesArray* CbmTrackingTrdQa::fTrdHitMatch = nullptr |
|
private |
◆ fTrdHits
TClonesArray* CbmTrackingTrdQa::fTrdHits = nullptr |
|
private |
◆ fTrdNstations
Int_t CbmTrackingTrdQa::fTrdNstations = 0 |
|
private |
◆ fTrdPoints
◆ fTrdTrackMatches
TClonesArray* CbmTrackingTrdQa::fTrdTrackMatches = nullptr |
|
private |
◆ fTrdTracks
TClonesArray* CbmTrackingTrdQa::fTrdTracks = nullptr |
|
private |
◆ fYCM
float CbmTrackingTrdQa::fYCM = 0. |
|
private |
The documentation for this class was generated from the following files: