CbmRoot
|
#include <CbmStsFindTracksQa.h>
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 |
CbmMCDataArray * | fMCTracks |
Event. More... | |
CbmMCDataArray * | fStsPoints |
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 |
CbmStsSetup * | fSetup |
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 |
Definition at line 27 of file CbmStsFindTracksQa.h.
CbmStsFindTracksQa::CbmStsFindTracksQa | ( | Int_t | iVerbose = 1 | ) |
Default constructor
Definition at line 42 of file CbmStsFindTracksQa.cxx.
CbmStsFindTracksQa::CbmStsFindTracksQa | ( | Int_t | minHits, |
Double_t | quota, | ||
Int_t | iVerbose | ||
) |
Standard constructor
minHits | Minimal number of StsHits for considered MCTracks |
quota | True/all hits for track to be considered reconstructed |
iVerbose | Verbosity level |
Definition at line 103 of file CbmStsFindTracksQa.cxx.
|
virtual |
|
private |
|
private |
|
private |
Create histograms
Definition at line 602 of file CbmStsFindTracksQa.cxx.
References fHistoList, fhMomAccAll, fhMomAccPrim, fhMomAccSec, fhMomEffAll, fhMomEffPrim, fhMomEffSec, fhMomRecAll, fhMomRecPrim, fhMomRecSec, fhNhClones, fhNhGhosts, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpEffAll, fhNpEffPrim, fhNpEffSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhZAccSec, fhZEffSec, and fhZRecSec.
Referenced by Init().
|
private |
Divide histograms (reco/all) with correct error for the efficiency
histo1 | reconstructed tracks |
histo2 | all tracks (normalisation) |
histo3 | efficiency |
Definition at line 826 of file CbmStsFindTracksQa.cxx.
Referenced by Finish().
|
virtual |
Execution
Definition at line 174 of file CbmStsFindTracksQa.cxx.
References fEvents, and ProcessEvent().
|
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().
|
private |
Fill a map from MCTrack index to matched StsTrack index
nRec | Number of reconstructed tracks (return) |
nGhosts | Number of ghost tracks (return) |
nClones | Number 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().
|
privatevirtual |
Finish
Definition at line 477 of file CbmStsFindTracksQa.cxx.
References DivideHistos(), fHistoList, fhMomAccAll, fhMomAccPrim, fhMomAccSec, fhMomEffAll, fhMomEffPrim, fhMomEffSec, fhMomRecAll, fhMomRecPrim, fhMomRecSec, fhNhClones, fhNhGhosts, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpEffAll, fhNpEffPrim, fhNpEffSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhZAccSec, fhZEffSec, fhZRecSec, fNAccAll, fNAccPrim, fNAccRef, fNAccSec, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecPrim, fNRecRef, fNRecSec, and fTime.
|
private |
Read the geometry parameters
Definition at line 533 of file CbmStsFindTracksQa.cxx.
References fNStations, CbmStsSetup::GetNofStations(), GetTargetPosition(), and CbmStsSetup::Instance().
|
private |
Get the target node from the geometry
Definition at line 547 of file CbmStsFindTracksQa.cxx.
References fTargetPos, and pos.
Referenced by GetGeometry().
|
virtual |
Initialisation
Definition at line 203 of file CbmStsFindTracksQa.cxx.
References CreateHistos(), fEvents, fMatches, fMCTracks, fMinStations, fNStations, fQuota, fSetup, fStsHitMatch, fStsHits, fStsPoints, fStsTracks, fTargetPos, GetGeometry(), CbmMCDataManager::InitBranch(), CbmStsSetup::Instance(), and Reset().
|
private |
|
private |
Process one event
event | Pointer to event object |
If a NULL pointer is given, the entire input array is processed (legacy mode)
Definition at line 299 of file CbmStsFindTracksQa.cxx.
References eventNumber, fHitMap, fhMomAccAll, fhMomAccPrim, fhMomAccSec, fhMomRecAll, fhMomRecPrim, fhMomRecSec, fhNpAccAll, fhNpAccPrim, fhNpAccSec, fhNpRecAll, fhNpRecPrim, fhNpRecSec, fhZAccSec, fhZRecSec, FillHitMap(), FillMatchMap(), fMatches, fMatchMap, fMCTracks, fMinStations, fNAccAll, fNAccPrim, fNAccRef, fNAccSec, fNClones, fNEvents, fNGhosts, fNRecAll, fNRecPrim, fNRecRef, fNRecSec, fQualiMap, fQuota, fStsTracks, fTargetPos, fTime, fTimer, CbmMCDataArray::Get(), CbmMCTrack::GetMomentum(), CbmStsTrack::GetNofStsHits(), CbmTrackMatchNew::GetNofTrueHits(), CbmTrackMatchNew::GetNofWrongHits(), CbmMCTrack::GetStartVertex(), and CbmMCDataArray::Size().
Referenced by Exec().
|
virtual |
Reinitialisation
Definition at line 273 of file CbmStsFindTracksQa.cxx.
References fMinStations, fNStations, fQuota, fTargetPos, and GetGeometry().
|
private |
|
virtual |
Set parameter containers
Definition at line 198 of file CbmStsFindTracksQa.cxx.
|
private |
Pointers to data arrays
Definition at line 125 of file CbmStsFindTracksQa.h.
|
private |
List of histograms
Definition at line 161 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), Reset(), and ~CbmStsFindTracksQa().
|
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().
|
private |
Histograms
Definition at line 150 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 151 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 152 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 150 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 151 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 152 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 150 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 151 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 152 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 157 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), FillMatchMap(), and Finish().
|
private |
Definition at line 157 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), FillMatchMap(), and Finish().
|
private |
Definition at line 153 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 154 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 155 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 153 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 154 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 155 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 153 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 154 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 155 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 156 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
Definition at line 156 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), and Finish().
|
private |
Definition at line 156 of file CbmStsFindTracksQa.h.
Referenced by CreateHistos(), Finish(), and ProcessEvent().
|
private |
StsTrackMatch.
Flag for legacy mode (event-by-event w/o event objects)
Definition at line 134 of file CbmStsFindTracksQa.h.
|
private |
StsTrack.
Definition at line 131 of file CbmStsFindTracksQa.h.
Referenced by FillMatchMap(), Init(), and ProcessEvent().
|
private |
Map from MCTrack index to matched StsTrack index
Definition at line 117 of file CbmStsFindTracksQa.h.
Referenced by FillMatchMap(), and ProcessEvent().
|
private |
Event.
Definition at line 126 of file CbmStsFindTracksQa.h.
Referenced by Init(), and ProcessEvent().
|
private |
Task parameters
Definition at line 145 of file CbmStsFindTracksQa.h.
Referenced by Init(), ProcessEvent(), and ReInit().
|
private |
Counters
Definition at line 165 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 165 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 165 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 165 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 167 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 168 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Number of events with success
Definition at line 169 of file CbmStsFindTracksQa.h.
|
private |
Definition at line 167 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 166 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 166 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 166 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 166 of file CbmStsFindTracksQa.h.
Referenced by Finish(), ProcessEvent(), and Reset().
|
private |
Definition at line 140 of file CbmStsFindTracksQa.h.
Referenced by GetGeometry(), Init(), and ReInit().
|
private |
Map from MCTrack index to percentage of matched hits
Definition at line 121 of file CbmStsFindTracksQa.h.
Referenced by FillMatchMap(), and ProcessEvent().
|
private |
Definition at line 146 of file CbmStsFindTracksQa.h.
Referenced by FillMatchMap(), Init(), ProcessEvent(), and ReInit().
|
private |
Definition at line 139 of file CbmStsFindTracksQa.h.
Referenced by FillHitMap(), and Init().
|
private |
StsHits.
Definition at line 129 of file CbmStsFindTracksQa.h.
Referenced by FillHitMap(), and Init().
|
private |
StsPoints.
Definition at line 128 of file CbmStsFindTracksQa.h.
Referenced by FillHitMap(), and Init().
|
private |
MCtrack.
Definition at line 127 of file CbmStsFindTracksQa.h.
Referenced by FillHitMap(), and Init().
|
private |
StsHitMatch.
Definition at line 130 of file CbmStsFindTracksQa.h.
Referenced by FillMatchMap(), Init(), and ProcessEvent().
|
private |
Geometry parameters
Definition at line 138 of file CbmStsFindTracksQa.h.
Referenced by GetTargetPosition(), Init(), ProcessEvent(), and ReInit().
|
private |
Number of events with failure
Definition at line 170 of file CbmStsFindTracksQa.h.
Referenced by Finish(), and ProcessEvent().
|
private |
Total real time used for good events Timer
Definition at line 173 of file CbmStsFindTracksQa.h.
Referenced by ProcessEvent().