FairRoot/PandaRoot
|
#include <PndTrackingQA.h>
Public Member Functions | |
PndTrackingQA (TString trackBranchName, TString idealTrackName, Bool_t pndTrackData=kTRUE) | |
PndTrackingQA (TString trackBranchName, TString idealTrackName, PndTrackFunctor *posTrack, Bool_t pndTrackData=kTRUE) | |
virtual | ~PndTrackingQA () |
virtual void | Init () |
void | SetVerbose (Int_t val) |
void | AddHitsBranchName (TString name) |
Adds branch names of detector data which should be taken into account in the analysis. More... | |
void | SetHitsBranchNames (std::vector< TString > names) |
void | AnalyseEvent (TClonesArray *recoTrackInfo) |
Int_t | GetNIdealHits (FairMultiLinkedData &track, TString branchName) |
std::map< Int_t, Int_t > | GetMCTrackFound () |
std::map< Int_t, Int_t > | GetTrackQualification () |
std::map< Int_t, Int_t > | GetTrackMCStatus () |
std::map< Int_t, std::map < TString, std::pair< Double_t, Int_t > > > | GetEfficiencies () |
std::map< Int_t, Double_t > | GetPResolution () |
std::map< Int_t, TVector3 > | GetP () |
std::map< Int_t, Double_t > | GetPtResolution () |
std::map< Int_t, Double_t > | GetPt () |
std::map< Int_t, Double_t > | GetPlResolution () |
std::map< Int_t, Double_t > | GetPl () |
std::map< Int_t, Double_t > | GetPResolutionRel () |
std::map< Int_t, Double_t > | GetPtResolutionRel () |
std::map< Int_t, Double_t > | GetPlResolutionRel () |
std::map< Int_t, Int_t > | GetTrackIdMCId () |
Int_t | GetNGhosts () |
void | PrintTrackDataSummary (FairMultiLinkedData &trackData, Bool_t detailedInfo=kFALSE) |
void | PrintTrackDataSummaryCompare (FairMultiLinkedData &recoTrackData, FairMultiLinkedData &idealTrackData) |
void | PrintTrackQualityMap (Bool_t detailedInfo=kFALSE) |
void | PrintTrackMCStatusMap () |
void | PrintTrackInfo (std::map< TString, FairMultiLinkedData > info) |
Int_t | GetIdealTrackIdFromMCTrackId (int mctrackid) |
Int_t | GetIdealTrackIdFromRecoTrackId (int trackid) |
PndTrackingQualityRecoInfo | GetRecoInfoFromRecoTrack (Int_t trackId, Int_t mctrackId) |
Private Member Functions | |
virtual void | FillMapTrackQualifikation () |
Bool_t | IsBetterTrackExisting (Int_t &mcIndex, int quality) |
Int_t | GetSumOfAllValidMCHits (FairMultiLinkedData *trackData) |
virtual Int_t | AnalyseTrackInfo (std::map< TString, FairMultiLinkedData > &trackInfo, Int_t trackId) |
virtual void | CalcEfficiencies (Int_t mostProbableTrack, std::map< TString, FairMultiLinkedData > &trackInfo) |
FairMultiLinkedData | GetMCInfoForBranch (TString branchName, PndTrackCand *trackCand) |
returns which MCTracks and how often (marked by a FairLink) they were seen by the hits of a PndTrackCand More... | |
std::map< TString, FairMultiLinkedData > | AnalyseTrackCand (PndTrackCand *trackCand) |
returns a map<BranchNameOfHits, MCTrackLinks> which returns the FairLinks to MCTracks grouped by hit branches and all More... | |
Private Attributes | |
FairRootManager * | ioman |
TString | fTrackBranchName |
TString | fIdealTrackName |
Bool_t | fPndTrackOrTrackCand |
std::string | fPossibleTrackName |
PndTrackFunctor * | fPossibleTrack |
Bool_t | fCleanFunctor |
Int_t | fNGhosts |
Bool_t | fUseCorrectedSkewedHits |
Int_t | fVerbose |
std::vector< TString > | fBranchNames |
! branch names of hits taken into account in the analysis (e.g. MVDHitsPixel, STTHit, ...) More... | |
std::map< Int_t, Int_t > | fTrackIdMCId |
! map between track id and most probable MC track id More... | |
std::map< Int_t, Int_t > | fMCIdTrackId |
! map between MC id and track id More... | |
std::map< Int_t, Int_t > | fMCIdIdealTrackId |
! map between MC id and ideal track id More... | |
std::map< Int_t, Int_t > | fMCTrackFound |
! How often was a MC Track (key) found More... | |
std::map< Int_t, Int_t > | fMapTrackMCStatus |
! TrackId vs TrackStatus from MC More... | |
std::map< Int_t, Int_t > | fMapTrackQualification |
! TrackId vs TrackStatus after analysis of track finding More... | |
std::map< Int_t, std::map < TString, std::pair< Double_t, Int_t > > > | fMapEfficiencies |
! MostProbable TrackId, BranchName, Efficiency (#FoundHits / #MCHits), #MCHits More... | |
std::map< Int_t, Double_t > | fMapPResolution |
std::map< Int_t, TVector3 > | fMapP |
std::map< Int_t, Double_t > | fMapPtResolution |
std::map< Int_t, Double_t > | fMapPt |
std::map< Int_t, Double_t > | fMapPResolutionRel |
std::map< Int_t, Double_t > | fMapPtResolutionRel |
std::map< Int_t, Double_t > | fMapPlResolution |
std::map< Int_t, Double_t > | fMapPl |
std::map< Int_t, Double_t > | fMapPlResolutionRel |
TClonesArray * | fTrack |
TClonesArray * | fMCTrack |
TClonesArray * | fIdealTrack |
TClonesArray * | fIdealTrackCand |
Definition at line 91 of file PndTrackingQA.h.
PndTrackingQA::PndTrackingQA | ( | TString | trackBranchName, |
TString | idealTrackName, | ||
Bool_t | pndTrackData = kTRUE |
||
) |
Definition at line 15 of file PndTrackingQA.cxx.
References fCleanFunctor, and fPossibleTrack.
PndTrackingQA::PndTrackingQA | ( | TString | trackBranchName, |
TString | idealTrackName, | ||
PndTrackFunctor * | posTrack, | ||
Bool_t | pndTrackData = kTRUE |
||
) |
Definition at line 31 of file PndTrackingQA.cxx.
References fCleanFunctor, and fPossibleTrack.
|
virtual |
|
inline |
Adds branch names of detector data which should be taken into account in the analysis.
Definition at line 102 of file PndTrackingQA.h.
References fBranchNames.
Referenced by Init().
void PndTrackingQA::AnalyseEvent | ( | TClonesArray * | recoTrackInfo | ) |
Definition at line 84 of file PndTrackingQA.cxx.
References AnalyseTrackCand(), AnalyseTrackInfo(), CalcEfficiencies(), FillMapTrackQualifikation(), fMapP, fMapPl, fMapPlResolution, fMapPlResolutionRel, fMapPResolution, fMapPResolutionRel, fMapPt, fMapPtResolution, fMapPtResolutionRel, fMapTrackQualification, fMCIdTrackId, fMCTrack, fMCTrackFound, fPndTrackOrTrackCand, fTrack, fTrackIdMCId, fVerbose, PndMCTrack::GetMomentum(), PndTrack::GetParamFirst(), GetRecoInfoFromRecoTrack(), PndTrack::GetTrackCandPtr(), i, mom, PrintTrackQualityMap(), and PndTrackingQualityRecoInfo::SetNofMCTracks().
Referenced by PndTrackingQATask::Exec().
|
private |
returns a map<BranchNameOfHits, MCTrackLinks> which returns the FairLinks to MCTracks grouped by hit branches and all
Definition at line 181 of file PndTrackingQA.cxx.
References fBranchNames, fVerbose, GetMCInfoForBranch(), and PrintTrackInfo().
Referenced by AnalyseEvent().
|
privatevirtual |
Definition at line 199 of file PndTrackingQA.cxx.
References Double_t, fIdealTrack, fMapTrackQualification, fMCIdIdealTrackId, fMCIdTrackId, fNGhosts, fVerbose, GetSumOfAllValidMCHits(), i, qualityNumbers::kFullyFound, qualityNumbers::kPartiallyFound, qualityNumbers::kSpuriousFound, and PrintTrackDataSummary().
Referenced by AnalyseEvent().
|
privatevirtual |
Definition at line 371 of file PndTrackingQA.cxx.
References Double_t, fBranchNames, fIdealTrack, fMapEfficiencies, fMCIdIdealTrackId, fVerbose, GetNIdealHits(), and i.
Referenced by AnalyseEvent().
|
privatevirtual |
Definition at line 278 of file PndTrackingQA.cxx.
References Bool_t, fIdealTrack, fMapTrackMCStatus, fMapTrackQualification, fMCIdIdealTrackId, fMCTrack, fPossibleTrack, fVerbose, PndTrackCand::getMcTrackId(), PndMCTrack::GetMotherID(), GetNIdealHits(), i, qualityNumbers::kAtLeastThreePrim, qualityNumbers::kAtLeastThreeSec, qualityNumbers::kLessThanThreePrim, qualityNumbers::kPossiblePrim, qualityNumbers::kPossibleSec, and nHits.
Referenced by AnalyseEvent().
|
inline |
Definition at line 112 of file PndTrackingQA.h.
References fMapEfficiencies.
Referenced by PndTrackingQATask::Exec().
|
inline |
Definition at line 137 of file PndTrackingQA.h.
References fMCIdIdealTrackId.
Referenced by PndTrackingQATask::Exec().
|
inline |
Definition at line 141 of file PndTrackingQA.h.
References fMCIdIdealTrackId, and fTrackIdMCId.
Referenced by PndTrackingQATask::Exec().
|
private |
returns which MCTracks and how often (marked by a FairLink) they were seen by the hits of a PndTrackCand
Definition at line 160 of file PndTrackingQA.cxx.
References ioman.
Referenced by AnalyseTrackCand().
|
inline |
Definition at line 109 of file PndTrackingQA.h.
References fMCTrackFound.
Referenced by PndTrackingQATask::Exec().
|
inline |
Definition at line 123 of file PndTrackingQA.h.
References fNGhosts.
Referenced by PndTrackingQATask::Exec().
Int_t PndTrackingQA::GetNIdealHits | ( | FairMultiLinkedData & | track, |
TString | branchName | ||
) |
Definition at line 404 of file PndTrackingQA.cxx.
References ioman.
Referenced by CalcEfficiencies(), FillMapTrackQualifikation(), GetRecoInfoFromRecoTrack(), PrintTrackDataSummary(), and PrintTrackDataSummaryCompare().
|
inline |
Definition at line 114 of file PndTrackingQA.h.
References fMapP.
Referenced by PndTrackingQATask::Exec().
Definition at line 117 of file PndTrackingQA.h.
References fMapPlResolution.
Referenced by PndTrackingQATask::Exec().
Definition at line 121 of file PndTrackingQA.h.
References fMapPlResolutionRel.
Referenced by PndTrackingQATask::Exec().
Definition at line 113 of file PndTrackingQA.h.
References fMapPResolution.
Referenced by PndTrackingQATask::Exec().
Definition at line 119 of file PndTrackingQA.h.
References fMapPResolutionRel.
Referenced by PndTrackingQATask::Exec().
Definition at line 115 of file PndTrackingQA.h.
References fMapPtResolution.
Referenced by PndTrackingQATask::Exec().
Definition at line 120 of file PndTrackingQA.h.
References fMapPtResolutionRel.
Referenced by PndTrackingQATask::Exec().
PndTrackingQualityRecoInfo PndTrackingQA::GetRecoInfoFromRecoTrack | ( | Int_t | trackId, |
Int_t | mctrackId | ||
) |
Definition at line 503 of file PndTrackingQA.cxx.
References Bool_t, fBranchNames, fIdealTrack, fMCIdIdealTrackId, fTrack, fVerbose, PndTrack::GetFlag(), GetNIdealHits(), PndTrack::GetParamFirst(), PndTrack::GetParamLast(), PndTrack::GetTrackCandPtr(), hit(), ioman, nHits, PndTrackingQualityRecoInfo::SetCharge(), PndTrackingQualityRecoInfo::SetFlag(), PndTrackingQualityRecoInfo::SetMCTrackID(), PndTrackingQualityRecoInfo::SetMomentumFirst(), PndTrackingQualityRecoInfo::SetMomentumLast(), PndTrackingQualityRecoInfo::SetNofFtsFakeHits(), PndTrackingQualityRecoInfo::SetNofFtsMissingHits(), PndTrackingQualityRecoInfo::SetNofFtsTrueHits(), PndTrackingQualityRecoInfo::SetNofGemFakeHits(), PndTrackingQualityRecoInfo::SetNofGemMissingHits(), PndTrackingQualityRecoInfo::SetNofGemTrueHits(), PndTrackingQualityRecoInfo::SetNofMvdPixelFakeHits(), PndTrackingQualityRecoInfo::SetNofMvdPixelMissingHits(), PndTrackingQualityRecoInfo::SetNofMvdPixelTrueHits(), PndTrackingQualityRecoInfo::SetNofMvdStripFakeHits(), PndTrackingQualityRecoInfo::SetNofMvdStripMissingHits(), PndTrackingQualityRecoInfo::SetNofMvdStripTrueHits(), PndTrackingQualityRecoInfo::SetNofSttFakeHits(), PndTrackingQualityRecoInfo::SetNofSttMissingHits(), PndTrackingQualityRecoInfo::SetNofSttTrueHits(), PndTrackingQualityRecoInfo::SetPositionFirst(), PndTrackingQualityRecoInfo::SetPositionLast(), and track.
Referenced by AnalyseEvent().
|
private |
Definition at line 356 of file PndTrackingQA.cxx.
References fBranchNames, and ioman.
Referenced by AnalyseTrackInfo().
|
inline |
Definition at line 122 of file PndTrackingQA.h.
References fTrackIdMCId.
|
inline |
Definition at line 111 of file PndTrackingQA.h.
References fMapTrackMCStatus.
Referenced by PndTrackingQATask::Exec().
|
inline |
Definition at line 110 of file PndTrackingQA.h.
References fMapTrackQualification.
Referenced by PndTrackingQATask::Exec().
|
virtual |
Definition at line 53 of file PndTrackingQA.cxx.
References AddHitsBranchName(), fBranchNames, fIdealTrack, fIdealTrackName, fMCTrack, fPossibleTrack, fTrack, fTrackBranchName, fVerbose, ioman, and PndTrackFunctor::Print().
Referenced by PndTrackingQATask::Exec().
|
private |
Definition at line 495 of file PndTrackingQA.cxx.
References fMapTrackQualification.
void PndTrackingQA::PrintTrackDataSummary | ( | FairMultiLinkedData & | trackData, |
Bool_t | detailedInfo = kFALSE |
||
) |
Definition at line 414 of file PndTrackingQA.cxx.
References fBranchNames, GetNIdealHits(), ioman, and TString.
Referenced by AnalyseTrackInfo(), and PrintTrackQualityMap().
void PndTrackingQA::PrintTrackDataSummaryCompare | ( | FairMultiLinkedData & | recoTrackData, |
FairMultiLinkedData & | idealTrackData | ||
) |
Definition at line 434 of file PndTrackingQA.cxx.
References fBranchNames, GetNIdealHits(), and TString.
Referenced by PrintTrackQualityMap().
Definition at line 481 of file PndTrackingQA.cxx.
References i.
Referenced by AnalyseTrackCand().
void PndTrackingQA::PrintTrackMCStatusMap | ( | ) |
Definition at line 470 of file PndTrackingQA.cxx.
References fMapTrackMCStatus, fMCTrackFound, and qualityNumbers::QualityNumberToString().
void PndTrackingQA::PrintTrackQualityMap | ( | Bool_t | detailedInfo = kFALSE | ) |
The description of the quality map IDs is now located a but further up, at struct qualityNumbers
Definition at line 446 of file PndTrackingQA.cxx.
References fIdealTrack, fMapTrackMCStatus, fMapTrackQualification, fMCIdIdealTrackId, fMCIdTrackId, fMCTrackFound, fTrack, PrintTrackDataSummary(), PrintTrackDataSummaryCompare(), and qualityNumbers::QualityNumberToString().
Referenced by AnalyseEvent(), and PndTrackingQATask::Exec().
|
inline |
Definition at line 103 of file PndTrackingQA.h.
References fBranchNames.
Referenced by PndTrackingQATask::Exec().
|
inline |
|
private |
! branch names of hits taken into account in the analysis (e.g. MVDHitsPixel, STTHit, ...)
Definition at line 176 of file PndTrackingQA.h.
Referenced by AddHitsBranchName(), AnalyseTrackCand(), CalcEfficiencies(), GetRecoInfoFromRecoTrack(), GetSumOfAllValidMCHits(), Init(), PrintTrackDataSummary(), PrintTrackDataSummaryCompare(), and SetHitsBranchNames().
|
private |
Definition at line 170 of file PndTrackingQA.h.
Referenced by PndTrackingQA(), and ~PndTrackingQA().
|
private |
Definition at line 200 of file PndTrackingQA.h.
Referenced by AnalyseTrackInfo(), CalcEfficiencies(), FillMapTrackQualifikation(), GetRecoInfoFromRecoTrack(), Init(), and PrintTrackQualityMap().
|
private |
Definition at line 201 of file PndTrackingQA.h.
|
private |
Definition at line 166 of file PndTrackingQA.h.
Referenced by Init().
|
private |
! MostProbable TrackId, BranchName, Efficiency (#FoundHits / #MCHits), #MCHits
Definition at line 187 of file PndTrackingQA.h.
Referenced by CalcEfficiencies(), and GetEfficiencies().
|
private |
Definition at line 189 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetP().
Definition at line 195 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPl().
Definition at line 194 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPlResolution().
Definition at line 196 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPlResolutionRel().
Definition at line 188 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPResolution().
Definition at line 192 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPResolutionRel().
Definition at line 191 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPt().
Definition at line 190 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPtResolution().
Definition at line 193 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), and GetPtResolutionRel().
|
private |
! TrackId vs TrackStatus from MC
Definition at line 185 of file PndTrackingQA.h.
Referenced by FillMapTrackQualifikation(), GetTrackMCStatus(), PrintTrackMCStatusMap(), and PrintTrackQualityMap().
|
private |
! TrackId vs TrackStatus after analysis of track finding
Definition at line 186 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), AnalyseTrackInfo(), FillMapTrackQualifikation(), GetTrackQualification(), IsBetterTrackExisting(), and PrintTrackQualityMap().
|
private |
! map between MC id and ideal track id
Definition at line 179 of file PndTrackingQA.h.
Referenced by AnalyseTrackInfo(), CalcEfficiencies(), FillMapTrackQualifikation(), GetIdealTrackIdFromMCTrackId(), GetIdealTrackIdFromRecoTrackId(), GetRecoInfoFromRecoTrack(), and PrintTrackQualityMap().
|
private |
! map between MC id and track id
Definition at line 178 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), AnalyseTrackInfo(), and PrintTrackQualityMap().
|
private |
Definition at line 199 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), FillMapTrackQualifikation(), and Init().
|
private |
! How often was a MC Track (key) found
Definition at line 181 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), GetMCTrackFound(), PrintTrackMCStatusMap(), and PrintTrackQualityMap().
|
private |
Definition at line 171 of file PndTrackingQA.h.
Referenced by AnalyseTrackInfo(), and GetNGhosts().
|
private |
Definition at line 167 of file PndTrackingQA.h.
Referenced by AnalyseEvent().
|
private |
Definition at line 169 of file PndTrackingQA.h.
Referenced by FillMapTrackQualifikation(), Init(), PndTrackingQA(), and ~PndTrackingQA().
|
private |
Definition at line 168 of file PndTrackingQA.h.
|
private |
Definition at line 198 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), GetRecoInfoFromRecoTrack(), Init(), and PrintTrackQualityMap().
|
private |
Definition at line 165 of file PndTrackingQA.h.
Referenced by Init().
|
private |
! map between track id and most probable MC track id
Definition at line 177 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), GetIdealTrackIdFromRecoTrackId(), and GetTrackIdMCId().
|
private |
Definition at line 173 of file PndTrackingQA.h.
|
private |
Definition at line 174 of file PndTrackingQA.h.
Referenced by AnalyseEvent(), AnalyseTrackCand(), AnalyseTrackInfo(), CalcEfficiencies(), FillMapTrackQualifikation(), GetRecoInfoFromRecoTrack(), Init(), and SetVerbose().
|
private |
Definition at line 163 of file PndTrackingQA.h.
Referenced by GetMCInfoForBranch(), GetNIdealHits(), GetRecoInfoFromRecoTrack(), GetSumOfAllValidMCHits(), Init(), and PrintTrackDataSummary().