CbmRoot
CbmStsFindTracksQa Class Reference

#include <CbmStsFindTracksQa.h>

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

Public Member Functions

 CbmStsFindTracksQa (Int_t iVerbose=1)
 
 CbmStsFindTracksQa (Int_t minHits, Double_t quota, Int_t iVerbose)
 
virtual ~CbmStsFindTracksQa ()
 
virtual void SetParContainers ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 

Private Member Functions

virtual void Finish ()
 
InitStatus GetGeometry ()
 
void GetTargetPosition ()
 
void CreateHistos ()
 
void Reset ()
 
void FillHitMap (CbmEvent *event)
 
void FillMatchMap (CbmEvent *event, Int_t &nRec, Int_t &nGhosts, Int_t &nClones)
 
void DivideHistos (TH1 *histo1, TH1 *histo2, TH1 *histo3)
 
void ProcessEvent (CbmEvent *event=NULL)
 
 CbmStsFindTracksQa (const CbmStsFindTracksQa &)
 
CbmStsFindTracksQa operator= (const CbmStsFindTracksQa &)
 
 ClassDef (CbmStsFindTracksQa, 2)
 

Private Attributes

std::map< Int_t, std::map< Int_t, Int_t > > fHitMap
 
std::map< Int_t, Int_t > fMatchMap
 
std::map< Int_t, Double_t > fQualiMap
 
TClonesArray * fEvents
 
CbmMCDataArrayfMCTracks
 Event. More...
 
CbmMCDataArrayfStsPoints
 MCtrack. More...
 
TClonesArray * fStsHits
 StsPoints. More...
 
TClonesArray * fStsHitMatch
 StsHits. More...
 
TClonesArray * fStsTracks
 StsHitMatch. More...
 
TClonesArray * fMatches
 StsTrack. More...
 
Bool_t fLegacy
 StsTrackMatch. More...
 
TVector3 fTargetPos
 
CbmStsSetupfSetup
 
Int_t fNStations
 
Int_t fMinStations
 
Double_t fQuota
 
TH1F * fhMomAccAll
 
TH1F * fhMomRecAll
 
TH1F * fhMomEffAll
 
TH1F * fhMomAccPrim
 
TH1F * fhMomRecPrim
 
TH1F * fhMomEffPrim
 
TH1F * fhMomAccSec
 
TH1F * fhMomRecSec
 
TH1F * fhMomEffSec
 
TH1F * fhNpAccAll
 
TH1F * fhNpRecAll
 
TH1F * fhNpEffAll
 
TH1F * fhNpAccPrim
 
TH1F * fhNpRecPrim
 
TH1F * fhNpEffPrim
 
TH1F * fhNpAccSec
 
TH1F * fhNpRecSec
 
TH1F * fhNpEffSec
 
TH1F * fhZAccSec
 
TH1F * fhZRecSec
 
TH1F * fhZEffSec
 
TH1F * fhNhClones
 
TH1F * fhNhGhosts
 
TList * fHistoList
 
Int_t fNAccAll
 
Int_t fNAccPrim
 
Int_t fNAccRef
 
Int_t fNAccSec
 
Int_t fNRecAll
 
Int_t fNRecPrim
 
Int_t fNRecRef
 
Int_t fNRecSec
 
Int_t fNGhosts
 
Int_t fNClones
 
Int_t fNEvents
 
Int_t fNEventsFailed
 
Double_t fTime
 
TStopwatch fTimer
 

Detailed Description

Definition at line 27 of file CbmStsFindTracksQa.h.

Constructor & Destructor Documentation

◆ CbmStsFindTracksQa() [1/3]

CbmStsFindTracksQa::CbmStsFindTracksQa ( Int_t  iVerbose = 1)

Default constructor

Definition at line 42 of file CbmStsFindTracksQa.cxx.

◆ CbmStsFindTracksQa() [2/3]

CbmStsFindTracksQa::CbmStsFindTracksQa ( Int_t  minHits,
Double_t  quota,
Int_t  iVerbose 
)

Standard constructor

Parameters
minHitsMinimal number of StsHits for considered MCTracks
quotaTrue/all hits for track to be considered reconstructed
iVerboseVerbosity level

Definition at line 103 of file CbmStsFindTracksQa.cxx.

◆ ~CbmStsFindTracksQa()

CbmStsFindTracksQa::~CbmStsFindTracksQa ( )
virtual

Destructor

Definition at line 165 of file CbmStsFindTracksQa.cxx.

References fHistoList.

◆ CbmStsFindTracksQa() [3/3]

CbmStsFindTracksQa::CbmStsFindTracksQa ( const CbmStsFindTracksQa )
private

Member Function Documentation

◆ ClassDef()

CbmStsFindTracksQa::ClassDef ( CbmStsFindTracksQa  ,
 
)
private

◆ CreateHistos()

◆ DivideHistos()

void CbmStsFindTracksQa::DivideHistos ( TH1 *  histo1,
TH1 *  histo2,
TH1 *  histo3 
)
private

Divide histograms (reco/all) with correct error for the efficiency

Parameters
histo1reconstructed tracks
histo2all tracks (normalisation)
histo3efficiency

Definition at line 826 of file CbmStsFindTracksQa.cxx.

Referenced by Finish().

◆ Exec()

void CbmStsFindTracksQa::Exec ( Option_t *  opt)
virtual

Execution

Definition at line 174 of file CbmStsFindTracksQa.cxx.

References fEvents, and ProcessEvent().

◆ FillHitMap()

void CbmStsFindTracksQa::FillHitMap ( CbmEvent event)
private

Fill a map from MCTrack index to number of corresponding StsHits

Definition at line 714 of file CbmStsFindTracksQa.cxx.

References eventNumber, fHitMap, fSetup, fStsHitMatch, fStsHits, fStsPoints, CbmMCDataArray::Get(), CbmHit::GetAddress(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmStsSetup::GetStationNumber(), and kStsHit.

Referenced by ProcessEvent().

◆ FillMatchMap()

void CbmStsFindTracksQa::FillMatchMap ( CbmEvent event,
Int_t &  nRec,
Int_t &  nGhosts,
Int_t &  nClones 
)
private

Fill a map from MCTrack index to matched StsTrack index

Parameters
nRecNumber of reconstructed tracks (return)
nGhostsNumber of ghost tracks (return)
nClonesNumber of clone tracks (return)

Definition at line 746 of file CbmStsFindTracksQa.cxx.

References fhNhClones, fhNhGhosts, fMatches, fMatchMap, fQualiMap, fQuota, fStsTracks, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmStsTrack::GetNofStsHits(), CbmTrackMatchNew::GetNofTrueHits(), and kStsTrack.

Referenced by ProcessEvent().

◆ Finish()

◆ GetGeometry()

InitStatus CbmStsFindTracksQa::GetGeometry ( )
private

Read the geometry parameters

Definition at line 533 of file CbmStsFindTracksQa.cxx.

References fNStations, CbmStsSetup::GetNofStations(), GetTargetPosition(), and CbmStsSetup::Instance().

Referenced by Init(), and ReInit().

◆ GetTargetPosition()

void CbmStsFindTracksQa::GetTargetPosition ( )
private

Get the target node from the geometry

Definition at line 547 of file CbmStsFindTracksQa.cxx.

References fTargetPos, and pos.

Referenced by GetGeometry().

◆ Init()

◆ operator=()

CbmStsFindTracksQa CbmStsFindTracksQa::operator= ( const CbmStsFindTracksQa )
private

◆ ProcessEvent()

◆ ReInit()

InitStatus CbmStsFindTracksQa::ReInit ( )
virtual

Reinitialisation

Definition at line 273 of file CbmStsFindTracksQa.cxx.

References fMinStations, fNStations, fQuota, fTargetPos, and GetGeometry().

◆ Reset()

void CbmStsFindTracksQa::Reset ( )
private

Reset histograms and counters

Definition at line 700 of file CbmStsFindTracksQa.cxx.

References fHistoList, fNAccAll, fNAccPrim, fNAccRef, fNAccSec, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecPrim, fNRecRef, and fNRecSec.

Referenced by Init().

◆ SetParContainers()

void CbmStsFindTracksQa::SetParContainers ( )
virtual

Set parameter containers

Definition at line 198 of file CbmStsFindTracksQa.cxx.

Member Data Documentation

◆ fEvents

TClonesArray* CbmStsFindTracksQa::fEvents
private

Pointers to data arrays

Definition at line 125 of file CbmStsFindTracksQa.h.

Referenced by Exec(), and Init().

◆ fHistoList

TList* CbmStsFindTracksQa::fHistoList
private

List of histograms

Definition at line 161 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), Reset(), and ~CbmStsFindTracksQa().

◆ fHitMap

std::map<Int_t, std::map<Int_t, Int_t> > CbmStsFindTracksQa::fHitMap
private

Map from MCTrack index to number of attached StsHits in each station

Definition at line 113 of file CbmStsFindTracksQa.h.

Referenced by FillHitMap(), and ProcessEvent().

◆ fhMomAccAll

TH1F* CbmStsFindTracksQa::fhMomAccAll
private

Histograms

Definition at line 150 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhMomAccPrim

TH1F* CbmStsFindTracksQa::fhMomAccPrim
private

Definition at line 151 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhMomAccSec

TH1F* CbmStsFindTracksQa::fhMomAccSec
private

Definition at line 152 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhMomEffAll

TH1F * CbmStsFindTracksQa::fhMomEffAll
private

Definition at line 150 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhMomEffPrim

TH1F * CbmStsFindTracksQa::fhMomEffPrim
private

Definition at line 151 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhMomEffSec

TH1F * CbmStsFindTracksQa::fhMomEffSec
private

Definition at line 152 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhMomRecAll

TH1F * CbmStsFindTracksQa::fhMomRecAll
private

Definition at line 150 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhMomRecPrim

TH1F * CbmStsFindTracksQa::fhMomRecPrim
private

Definition at line 151 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhMomRecSec

TH1F * CbmStsFindTracksQa::fhMomRecSec
private

Definition at line 152 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNhClones

TH1F* CbmStsFindTracksQa::fhNhClones
private

Definition at line 157 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), FillMatchMap(), and Finish().

◆ fhNhGhosts

TH1F * CbmStsFindTracksQa::fhNhGhosts
private

Definition at line 157 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), FillMatchMap(), and Finish().

◆ fhNpAccAll

TH1F* CbmStsFindTracksQa::fhNpAccAll
private

Definition at line 153 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNpAccPrim

TH1F* CbmStsFindTracksQa::fhNpAccPrim
private

Definition at line 154 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNpAccSec

TH1F* CbmStsFindTracksQa::fhNpAccSec
private

Definition at line 155 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNpEffAll

TH1F * CbmStsFindTracksQa::fhNpEffAll
private

Definition at line 153 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhNpEffPrim

TH1F * CbmStsFindTracksQa::fhNpEffPrim
private

Definition at line 154 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhNpEffSec

TH1F * CbmStsFindTracksQa::fhNpEffSec
private

Definition at line 155 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhNpRecAll

TH1F * CbmStsFindTracksQa::fhNpRecAll
private

Definition at line 153 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNpRecPrim

TH1F * CbmStsFindTracksQa::fhNpRecPrim
private

Definition at line 154 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhNpRecSec

TH1F * CbmStsFindTracksQa::fhNpRecSec
private

Definition at line 155 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhZAccSec

TH1F* CbmStsFindTracksQa::fhZAccSec
private

Definition at line 156 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fhZEffSec

TH1F * CbmStsFindTracksQa::fhZEffSec
private

Definition at line 156 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), and Finish().

◆ fhZRecSec

TH1F * CbmStsFindTracksQa::fhZRecSec
private

Definition at line 156 of file CbmStsFindTracksQa.h.

Referenced by CreateHistos(), Finish(), and ProcessEvent().

◆ fLegacy

Bool_t CbmStsFindTracksQa::fLegacy
private

StsTrackMatch.

Flag for legacy mode (event-by-event w/o event objects)

Definition at line 134 of file CbmStsFindTracksQa.h.

◆ fMatches

TClonesArray* CbmStsFindTracksQa::fMatches
private

StsTrack.

Definition at line 131 of file CbmStsFindTracksQa.h.

Referenced by FillMatchMap(), Init(), and ProcessEvent().

◆ fMatchMap

std::map<Int_t, Int_t> CbmStsFindTracksQa::fMatchMap
private

Map from MCTrack index to matched StsTrack index

Definition at line 117 of file CbmStsFindTracksQa.h.

Referenced by FillMatchMap(), and ProcessEvent().

◆ fMCTracks

CbmMCDataArray* CbmStsFindTracksQa::fMCTracks
private

Event.

Definition at line 126 of file CbmStsFindTracksQa.h.

Referenced by Init(), and ProcessEvent().

◆ fMinStations

Int_t CbmStsFindTracksQa::fMinStations
private

Task parameters

Definition at line 145 of file CbmStsFindTracksQa.h.

Referenced by Init(), ProcessEvent(), and ReInit().

◆ fNAccAll

Int_t CbmStsFindTracksQa::fNAccAll
private

Counters

Definition at line 165 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNAccPrim

Int_t CbmStsFindTracksQa::fNAccPrim
private

Definition at line 165 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNAccRef

Int_t CbmStsFindTracksQa::fNAccRef
private

Definition at line 165 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNAccSec

Int_t CbmStsFindTracksQa::fNAccSec
private

Definition at line 165 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNClones

Int_t CbmStsFindTracksQa::fNClones
private

Definition at line 167 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNEvents

Int_t CbmStsFindTracksQa::fNEvents
private

Definition at line 168 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNEventsFailed

Int_t CbmStsFindTracksQa::fNEventsFailed
private

Number of events with success

Definition at line 169 of file CbmStsFindTracksQa.h.

◆ fNGhosts

Int_t CbmStsFindTracksQa::fNGhosts
private

Definition at line 167 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNRecAll

Int_t CbmStsFindTracksQa::fNRecAll
private

Definition at line 166 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNRecPrim

Int_t CbmStsFindTracksQa::fNRecPrim
private

Definition at line 166 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNRecRef

Int_t CbmStsFindTracksQa::fNRecRef
private

Definition at line 166 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNRecSec

Int_t CbmStsFindTracksQa::fNRecSec
private

Definition at line 166 of file CbmStsFindTracksQa.h.

Referenced by Finish(), ProcessEvent(), and Reset().

◆ fNStations

Int_t CbmStsFindTracksQa::fNStations
private

Definition at line 140 of file CbmStsFindTracksQa.h.

Referenced by GetGeometry(), Init(), and ReInit().

◆ fQualiMap

std::map<Int_t, Double_t> CbmStsFindTracksQa::fQualiMap
private

Map from MCTrack index to percentage of matched hits

Definition at line 121 of file CbmStsFindTracksQa.h.

Referenced by FillMatchMap(), and ProcessEvent().

◆ fQuota

Double_t CbmStsFindTracksQa::fQuota
private

Definition at line 146 of file CbmStsFindTracksQa.h.

Referenced by FillMatchMap(), Init(), ProcessEvent(), and ReInit().

◆ fSetup

CbmStsSetup* CbmStsFindTracksQa::fSetup
private

Definition at line 139 of file CbmStsFindTracksQa.h.

Referenced by FillHitMap(), and Init().

◆ fStsHitMatch

TClonesArray* CbmStsFindTracksQa::fStsHitMatch
private

StsHits.

Definition at line 129 of file CbmStsFindTracksQa.h.

Referenced by FillHitMap(), and Init().

◆ fStsHits

TClonesArray* CbmStsFindTracksQa::fStsHits
private

StsPoints.

Definition at line 128 of file CbmStsFindTracksQa.h.

Referenced by FillHitMap(), and Init().

◆ fStsPoints

CbmMCDataArray* CbmStsFindTracksQa::fStsPoints
private

MCtrack.

Definition at line 127 of file CbmStsFindTracksQa.h.

Referenced by FillHitMap(), and Init().

◆ fStsTracks

TClonesArray* CbmStsFindTracksQa::fStsTracks
private

StsHitMatch.

Definition at line 130 of file CbmStsFindTracksQa.h.

Referenced by FillMatchMap(), Init(), and ProcessEvent().

◆ fTargetPos

TVector3 CbmStsFindTracksQa::fTargetPos
private

Geometry parameters

Definition at line 138 of file CbmStsFindTracksQa.h.

Referenced by GetTargetPosition(), Init(), ProcessEvent(), and ReInit().

◆ fTime

Double_t CbmStsFindTracksQa::fTime
private

Number of events with failure

Definition at line 170 of file CbmStsFindTracksQa.h.

Referenced by Finish(), and ProcessEvent().

◆ fTimer

TStopwatch CbmStsFindTracksQa::fTimer
private

Total real time used for good events Timer

Definition at line 173 of file CbmStsFindTracksQa.h.

Referenced by ProcessEvent().


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