CbmRoot
|
#include <CbmRichRecoQa.h>
Public Member Functions | |
CbmRichRecoQa () | |
Standard constructor. | |
virtual | ~CbmRichRecoQa () |
Standard destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
void | SetOutputDir (const string &dir) |
Set output directory where you want to write results (figures and json). | |
void | DrawFromFile (const string &fileName, const string &outputDir) |
Draw histogram from file. | |
void | SetCorrection (string s) |
CbmRichRecoQa () | |
Standard constructor. | |
virtual | ~CbmRichRecoQa () |
Standard destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
void | SetOutputDir (const std::string &dir) |
Set output directory where you want to write results (figures and json). | |
void | DrawFromFile (const std::string &fileName, const std::string &outputDir) |
Draw histogram from file. | |
Static Public Member Functions | |
static Bool_t | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
static Bool_t | IsMcPion (const CbmMCTrack *mctrack) |
static bool | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
static bool | IsMcPion (const CbmMCTrack *mctrack) |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. | |
void | FillRichRingNofHits () |
Fill map mcTrackId -> nof RICH hits. | |
void | FillRingTrackDistance () |
Fill histogramms related to ring track distance. | |
void | RingTrackMismatchSource () |
Fill histograms related to study of the source of ring-track mismatch. | |
void | DrawHist () |
Draw histograms. | |
string | GetMeanRmsOverflowString (TH1 *h, Bool_t withOverflow=true) |
Return string with mean, RMS and overflow percent for input TH1. | |
void | DrawRingTrackDistHistWithSuffix (const string &suffix) |
Draw histograms related to ring-track distance for pions or electrons (+/-). | |
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. | |
CbmRichRecoQa & | operator= (const CbmRichRecoQa &) |
Assignment operator. | |
void | InitHistograms () |
Initialize histograms. | |
void | FillRichRingNofHits () |
Fill map mcTrackId -> nof RICH hits. | |
void | FillRingTrackDistance () |
Fill histogramms related to ring track distance. | |
void | RingTrackMismatchSource () |
Fill histograms related to study of the source of ring-track mismatch. | |
void | DrawMismatchSrc () |
Draw MismatchSrc histogram and canvas. | |
void | DrawHist () |
Draw histograms. | |
std::string | GetMeanRmsOverflowString (TH1 *h, bool withOverflow=true) |
Return string with mean, RMS and overflow percent for input TH1. | |
void | DrawRingTrackDist (const std::string &opt) |
Draw histograms related to ring-track distance for pions or electrons (+/-). | |
bool | WasRingFound (const CbmLink &mcTrackLink) |
bool | WasRingMatched (const CbmLink &mcTrackLink) |
bool | WasRichProjectionMatched (int stsTrackId) |
bool | HasRichProjection (int stsTrackId) |
CbmRichRecoQa (const CbmRichRecoQa &) | |
Copy constructor. | |
CbmRichRecoQa & | operator= (const CbmRichRecoQa &) |
Assignment operator. | |
Private Attributes | |
CbmHistManager * | fHM = nullptr |
Int_t | fEventNum |
string | fOutputDir |
TClonesArray * | fMCTracks |
TClonesArray * | fRichPoints |
TClonesArray * | fRichDigis |
TClonesArray * | fRichHits = nullptr |
TClonesArray * | fRichRings = nullptr |
TClonesArray * | fRichRingMatches = nullptr |
TClonesArray * | fGlobalTracks = nullptr |
TClonesArray * | fStsTracks = nullptr |
TClonesArray * | fStsTrackMatches = nullptr |
TClonesArray * | fRichProjections = nullptr |
std::map< Int_t, Int_t > | fNofHitsInRingMap |
string | fCorrection |
vector< TCanvas * > | fCanvas |
int | fEventNum = 0 |
std::string | fOutputDir = "" |
CbmMCDataArray * | fMcTracks = nullptr |
CbmMCDataArray * | fRichPoints = nullptr |
CbmDigiManager * | fDigiMan = nullptr |
CbmMCEventList * | fEventList = nullptr |
std::map< CbmLink, int > | fNofHitsInRingMap |
Definition at line 24 of file alignment/CbmRichRecoQa.h.
CbmRichRecoQa::CbmRichRecoQa | ( | ) |
Standard constructor.
Definition at line 42 of file alignment/CbmRichRecoQa.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 35 of file alignment/CbmRichRecoQa.h.
|
private |
Copy constructor.
CbmRichRecoQa::CbmRichRecoQa | ( | ) |
Standard constructor.
|
inlinevirtual |
Standard destructor.
Definition at line 37 of file qa/CbmRichRecoQa.h.
|
private |
Copy constructor.
void CbmRichRecoQa::DrawFromFile | ( | const std::string & | fileName, |
const std::string & | outputDir ) |
Draw histogram from file.
void CbmRichRecoQa::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir ) |
Draw histogram from file.
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 897 of file alignment/CbmRichRecoQa.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
|
private |
Draw histograms.
Definition at line 555 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2WithProfile(), DrawH3Profile(), DrawRingTrackDistHistWithSuffix(), DrawRingTrackDistHistWithSuffixPmtHalf(), fHM, GetMeanRmsOverflowString(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), kLinear, kLog, and SetDefaultDrawStyle().
Referenced by DrawFromFile(), and Finish().
|
private |
Draw histograms.
|
private |
Draw MismatchSrc histogram and canvas.
Definition at line 361 of file qa/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), fHM, CbmHistManager::H1(), kLinear, kLog, and CbmHistManager::Scale().
|
private |
Draw histograms related to ring-track distance for pions or electrons (+/-).
Definition at line 490 of file qa/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2WithProfile(), DrawH3Profile(), DrawTextOnPad(), fHM, GetMeanRmsOverflowString(), CbmHistManager::H2(), and CbmHistManager::H3().
|
private |
Draw histograms related to ring-track distance for pions or electrons (+/-).
Definition at line 719 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 767 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH3Profile(), fHM, and CbmHistManager::H3().
Referenced by DrawHist().
|
virtual |
Inherited from FairTask.
Definition at line 256 of file alignment/CbmRichRecoQa.cxx.
References fEventNum, FillRichRingNofHits(), FillRingTrackDistance(), and RingTrackMismatchSource().
|
virtual |
Inherited from FairTask.
|
private |
Fill map mcTrackId -> nof RICH hits.
Definition at line 266 of file alignment/CbmRichRecoQa.cxx.
References fMCTracks, fNofHitsInRingMap, fRichDigis, fRichHits, fRichPoints, and CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit().
Referenced by Exec().
|
private |
Fill map mcTrackId -> nof RICH hits.
|
private |
Fill histogramms related to ring track distance.
Definition at line 444 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(), IsMcPion(), and IsMcPrimaryElectron().
Referenced by Exec().
|
private |
Fill histogramms related to ring track distance.
|
virtual |
Inherited from FairTask.
Definition at line 881 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.
Definition at line 477 of file qa/CbmRichRecoQa.cxx.
References Cbm::NumberToString().
|
private |
Return string with mean, RMS and overflow percent for input TH1.
Definition at line 707 of file alignment/CbmRichRecoQa.cxx.
References Cbm::NumberToString().
Referenced by DrawHist(), DrawRingTrackDist(), and DrawRingTrackDistHistWithSuffix().
|
private |
Definition at line 286 of file qa/CbmRichRecoQa.cxx.
References fRichProjections.
|
private |
Definition at line 426 of file alignment/CbmRichRecoQa.cxx.
References fRichProjections.
Referenced by RingTrackMismatchSource().
|
virtual |
Inherited from FairTask.
Definition at line 63 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.
Definition at line 128 of file alignment/CbmRichRecoQa.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), and fHM.
Referenced by Init().
|
private |
Initialize histograms.
|
static |
Definition at line 873 of file alignment/CbmRichRecoQa.cxx.
References CbmMCTrack::GetPdgCode().
Referenced by FillRingTrackDistance().
|
static |
|
static |
Definition at line 865 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.
Definition at line 281 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().
|
private |
Fill histograms related to study of the source of ring-track mismatch.
|
inline |
Definition at line 67 of file alignment/CbmRichRecoQa.h.
References fCorrection.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 62 of file qa/CbmRichRecoQa.h.
References fOutputDir.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 60 of file alignment/CbmRichRecoQa.h.
References fOutputDir.
|
private |
|
private |
|
private |
Definition at line 252 of file qa/CbmRichRecoQa.cxx.
References fRichRingMatches, fRichRings, CbmMatch::GetMatchedLink(), and CbmMatch::GetNofLinks().
|
private |
Definition at line 393 of file alignment/CbmRichRecoQa.cxx.
References fRichRingMatches, fRichRings, CbmLink::GetIndex(), and CbmMatch::GetMatchedLink().
Referenced by RingTrackMismatchSource().
|
private |
Definition at line 266 of file qa/CbmRichRecoQa.cxx.
References fGlobalTracks, fRichRingMatches, CbmMatch::GetMatchedLink(), CbmMatch::GetNofLinks(), and CbmGlobalTrack::GetRichRingIndex().
|
private |
Definition at line 407 of file alignment/CbmRichRecoQa.cxx.
References fGlobalTracks, fRichRingMatches, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), and CbmGlobalTrack::GetRichRingIndex().
Referenced by RingTrackMismatchSource().
|
private |
Definition at line 161 of file alignment/CbmRichRecoQa.h.
|
private |
Definition at line 159 of file alignment/CbmRichRecoQa.h.
Referenced by Finish(), and SetCorrection().
|
private |
Definition at line 157 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 158 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 141 of file alignment/CbmRichRecoQa.h.
Referenced by Exec().
|
private |
Definition at line 144 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 151 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), WasRingMatched(), and WasRingMatched().
|
private |
Definition at line 139 of file alignment/CbmRichRecoQa.h.
Referenced by DrawFromFile(), DrawHist(), DrawMismatchSrc(), DrawRingTrackDist(), DrawRingTrackDistHistWithSuffix(), DrawRingTrackDistHistWithSuffixPmtHalf(), FillRingTrackDistance(), Finish(), InitHistograms(), and RingTrackMismatchSource().
|
private |
Definition at line 145 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), FillRingTrackDistance(), Init(), and RingTrackMismatchSource().
|
private |
Definition at line 148 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 157 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and RingTrackMismatchSource().
|
private |
Definition at line 161 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 143 of file alignment/CbmRichRecoQa.h.
Referenced by DrawFromFile(), Finish(), SetOutputDir(), and SetOutputDir().
|
private |
Definition at line 146 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 147 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 148 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 146 of file alignment/CbmRichRecoQa.h.
Referenced by FillRichRingNofHits(), and Init().
|
private |
Definition at line 149 of file qa/CbmRichRecoQa.h.
|
private |
Definition at line 154 of file alignment/CbmRichRecoQa.h.
Referenced by HasRichProjection(), HasRichProjection(), and Init().
|
private |
Definition at line 150 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), WasRingFound(), WasRingFound(), WasRingMatched(), and WasRingMatched().
|
private |
Definition at line 149 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), RingTrackMismatchSource(), WasRingFound(), and WasRingFound().
|
private |
Definition at line 153 of file alignment/CbmRichRecoQa.h.
Referenced by FillRingTrackDistance(), Init(), and RingTrackMismatchSource().
|
private |
Definition at line 152 of file alignment/CbmRichRecoQa.h.
Referenced by Init().