CbmRoot
|
#include <CbmRichRecoQa.h>
Public Member Functions | |
CbmRichRecoQa () | |
Standard constructor. More... | |
virtual | ~CbmRichRecoQa () |
Standard destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
void | SetOutputDir (const string &dir) |
Set output directory where you want to write results (figures and json). More... | |
void | DrawFromFile (const string &fileName, const string &outputDir) |
Draw histogram from file. More... | |
void | SetCorrection (string s) |
CbmRichRecoQa () | |
Standard constructor. More... | |
virtual | ~CbmRichRecoQa () |
Standard destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
void | SetOutputDir (const string &dir) |
Set output directory where you want to write results (figures and json). More... | |
void | DrawFromFile (const string &fileName, const string &outputDir) |
Draw histogram from file. More... | |
Static Public Member Functions | |
static Bool_t | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
static Bool_t | IsMcPion (const CbmMCTrack *mctrack) |
static Bool_t | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
static Bool_t | IsMcPion (const CbmMCTrack *mctrack) |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. More... | |
void | FillRichRingNofHits () |
Fill map mcTrackId -> nof RICH hits. More... | |
void | FillRingTrackDistance () |
Fill histogramms related to ring track distance. More... | |
void | RingTrackMismatchSource () |
Fill histograms related to study of the source of ring-track mismatch. More... | |
void | DrawHist () |
Draw histograms. More... | |
string | GetMeanRmsOverflowString (TH1 *h, Bool_t withOverflow=true) |
Return string with mean, RMS and overflow percent for input TH1. More... | |
void | DrawRingTrackDistHistWithSuffix (const string &suffix) |
Draw histograms related to ring-track distance for pions or electrons (+/-). More... | |
void | DrawRingTrackDistHistWithSuffixPmtHalf (const string &suffix) |
bool | WasRingFound (Int_t mcTrackId) |
bool | WasRingMatched (Int_t mcTrackId) |
bool | WasRichProjectionMatched (Int_t stsTrackId) |
bool | HasRichProjection (Int_t stsTrackId) |
CbmRichRecoQa (const CbmRichRecoQa &) | |
Copy constructor. More... | |
CbmRichRecoQa & | operator= (const CbmRichRecoQa &) |
Assignment operator. More... | |
void | InitHistograms () |
Initialize histograms. More... | |
void | FillRichRingNofHits () |
Fill map mcTrackId -> nof RICH hits. More... | |
void | FillRingTrackDistance () |
Fill histogramms related to ring track distance. More... | |
void | RingTrackMismatchSource () |
Fill histograms related to study of the source of ring-track mismatch. More... | |
void | DrawHist () |
Draw histograms. More... | |
string | GetMeanRmsOverflowString (TH1 *h, Bool_t withOverflow=true) |
Return string with mean, RMS and overflow percent for input TH1. More... | |
void | DrawRingTrackDistHistWithSuffix (const string &suffix) |
Draw histograms related to ring-track distance for pions or electrons (+/-). More... | |
bool | WasRingFound (Int_t mcTrackId) |
bool | WasRingMatched (Int_t mcTrackId) |
bool | WasRichProjectionMatched (Int_t stsTrackId) |
bool | HasRichProjection (Int_t stsTrackId) |
CbmRichRecoQa (const CbmRichRecoQa &) | |
Copy constructor. More... | |
CbmRichRecoQa & | operator= (const CbmRichRecoQa &) |
Assignment operator. More... | |
Private Attributes | |
CbmHistManager * | fHM |
Int_t | fEventNum |
string | fOutputDir |
TClonesArray * | fMCTracks |
TClonesArray * | fRichPoints |
TClonesArray * | fRichDigis |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichRingMatches |
TClonesArray * | fGlobalTracks |
TClonesArray * | fStsTracks |
TClonesArray * | fStsTrackMatches |
TClonesArray * | fRichProjections |
std::map< Int_t, Int_t > | fNofHitsInRingMap |
string | fCorrection |
vector< TCanvas * > | fCanvas |
CbmDigiManager * | fDigiMan |
Definition at line 21 of file alignment/CbmRichRecoQa.h.
CbmRichRecoQa::CbmRichRecoQa | ( | ) |
Standard constructor.
Definition at line 40 of file alignment/CbmRichRecoQa.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 32 of file alignment/CbmRichRecoQa.h.
|
private |
Copy constructor.
CbmRichRecoQa::CbmRichRecoQa | ( | ) |
Standard constructor.
|
inlinevirtual |
Standard destructor.
Definition at line 33 of file qa/CbmRichRecoQa.h.
|
private |
Copy constructor.
void CbmRichRecoQa::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir | ||
) |
Draw histogram from file.
Definition at line 1222 of file alignment/CbmRichRecoQa.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
void CbmRichRecoQa::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir | ||
) |
Draw histogram from file.
|
private |
Draw histograms.
|
private |
Draw histograms.
Definition at line 743 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2WithProfile(), DrawH3Profile(), DrawRingTrackDistHistWithSuffix(), DrawRingTrackDistHistWithSuffixPmtHalf(), fHM, GetMeanRmsOverflowString(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), i, kLinear, kLog, and SetDefaultDrawStyle().
Referenced by DrawFromFile(), and Finish().
|
private |
Draw histograms related to ring-track distance for pions or electrons (+/-).
|
private |
Draw histograms related to ring-track distance for pions or electrons (+/-).
Definition at line 969 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2WithProfile(), DrawH3Profile(), DrawTextOnPad(), fHM, GetMeanRmsOverflowString(), CbmHistManager::H2(), and CbmHistManager::H3().
Referenced by DrawHist().
|
private |
Definition at line 1035 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH3Profile(), fHM, and CbmHistManager::H3().
Referenced by DrawHist().
|
virtual |
Inherited from FairTask.
Definition at line 441 of file alignment/CbmRichRecoQa.cxx.
References fEventNum, FillRichRingNofHits(), FillRingTrackDistance(), and RingTrackMismatchSource().
|
virtual |
Inherited from FairTask.
|
private |
Fill map mcTrackId -> nof RICH hits.
|
private |
Fill map mcTrackId -> nof RICH hits.
Definition at line 450 of file alignment/CbmRichRecoQa.cxx.
References fMCTracks, fNofHitsInRingMap, fRichDigis, fRichHits, fRichPoints, CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), and i.
Referenced by Exec().
|
private |
Fill histogramms related to ring track distance.
|
private |
Fill histogramms related to ring track distance.
Definition at line 624 of file alignment/CbmRichRecoQa.cxx.
References fGlobalTracks, fHM, fMCTracks, fRichRingMatches, fRichRings, fStsTrackMatches, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmMCTrack::GetCharge(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmRichRing::GetNofHits(), CbmMCTrack::GetP(), CbmGlobalTrack::GetRichRingIndex(), CbmRichUtil::GetRingTrackDistance(), CbmRichUtil::GetRingTrackDistanceX(), CbmRichUtil::GetRingTrackDistanceY(), CbmGlobalTrack::GetStsTrackIndex(), CbmHistManager::H2(), CbmHistManager::H3(), i, IsMcPion(), and IsMcPrimaryElectron().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 1207 of file alignment/CbmRichRecoQa.cxx.
References DrawHist(), fCorrection, fHM, fOutputDir, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
|
private |
Return string with mean, RMS and overflow percent for input TH1.
|
private |
Return string with mean, RMS and overflow percent for input TH1.
Definition at line 955 of file alignment/CbmRichRecoQa.cxx.
Referenced by DrawHist(), and DrawRingTrackDistHistWithSuffix().
|
private |
|
private |
Definition at line 612 of file alignment/CbmRichRecoQa.cxx.
References fRichProjections.
Referenced by RingTrackMismatchSource().
|
virtual |
Inherited from FairTask.
Definition at line 59 of file alignment/CbmRichRecoQa.cxx.
References fGlobalTracks, fMCTracks, fRichDigis, fRichHits, fRichPoints, fRichProjections, fRichRingMatches, fRichRings, fStsTrackMatches, fStsTracks, and InitHistograms().
|
virtual |
Inherited from FairTask.
|
private |
Initialize histograms.
|
private |
Initialize histograms.
Definition at line 115 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fHM, and i.
Referenced by Init().
|
static |
Definition at line 1200 of file alignment/CbmRichRecoQa.cxx.
References CbmMCTrack::GetPdgCode().
Referenced by FillRingTrackDistance().
|
static |
|
static |
Definition at line 1193 of file alignment/CbmRichRecoQa.cxx.
References CbmMCTrack::GetGeantProcessId(), and CbmMCTrack::GetPdgCode().
Referenced by FillRingTrackDistance(), and RingTrackMismatchSource().
|
static |
|
private |
Assignment operator.
|
private |
Assignment operator.
|
private |
Fill histograms related to study of the source of ring-track mismatch.
|
private |
Fill histograms related to study of the source of ring-track mismatch.
Definition at line 465 of file alignment/CbmRichRecoQa.cxx.
References fGlobalTracks, fHM, fMCTracks, fNofHitsInRingMap, fRichRingMatches, fRichRings, fStsTrackMatches, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetP(), CbmGlobalTrack::GetRichRingIndex(), CbmGlobalTrack::GetStsTrackIndex(), CbmHistManager::H1(), HasRichProjection(), IsMcPrimaryElectron(), WasRingFound(), and WasRingMatched().
Referenced by Exec().
|
inline |
Definition at line 64 of file alignment/CbmRichRecoQa.h.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 57 of file alignment/CbmRichRecoQa.h.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 58 of file qa/CbmRichRecoQa.h.
|
private |
|
private |
|
private |
|
private |
Definition at line 579 of file alignment/CbmRichRecoQa.cxx.
References fRichRingMatches, fRichRings, CbmLink::GetIndex(), and CbmMatch::GetMatchedLink().
Referenced by RingTrackMismatchSource().
|
private |
|
private |
Definition at line 594 of file alignment/CbmRichRecoQa.cxx.
References fGlobalTracks, fRichRingMatches, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), and CbmGlobalTrack::GetRichRingIndex().
Referenced by RingTrackMismatchSource().
|
private |
Definition at line 158 of file alignment/CbmRichRecoQa.h.
|
private |
Definition at line 156 of file alignment/CbmRichRecoQa.h.
Referenced by Finish().
|
private |
Definition at line 148 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 138 of file alignment/CbmRichRecoQa.h.
Referenced by Exec().
|
private |
Definition at line 148 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), and WasRingMatched().
|
private |
Definition at line 136 of file alignment/CbmRichRecoQa.h.
Referenced by DrawFromFile(), DrawHist(), DrawRingTrackDistHistWithSuffix(), DrawRingTrackDistHistWithSuffixPmtHalf(), FillRingTrackDistance(), Finish(), InitHistograms(), and RingTrackMismatchSource().
|
private |
Definition at line 142 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), FillRingTrackDistance(), Init(), and RingTrackMismatchSource().
|
private |
Definition at line 154 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and RingTrackMismatchSource().
|
private |
Definition at line 140 of file alignment/CbmRichRecoQa.h.
Referenced by DrawFromFile(), and Finish().
|
private |
Definition at line 144 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 145 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 143 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 151 of file alignment/CbmRichRecoQa.h.
Referenced by HasRichProjection(), and Init().
|
private |
Definition at line 147 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), WasRingFound(), and WasRingMatched().
|
private |
Definition at line 146 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), and WasRingFound().
|
private |
Definition at line 150 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), and RingTrackMismatchSource().
|
private |
Definition at line 149 of file alignment/CbmRichRecoQa.h.
Referenced by Init().