CbmRoot
|
#include <CbmRichRecoTbQa.h>
Public Member Functions | |
CbmRichRecoTbQa () | |
Standard constructor. More... | |
virtual | ~CbmRichRecoTbQa () |
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... | |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. More... | |
void | DrawHist () |
void | Process () |
void | ProcessMc () |
void | RingRecoEfficiency () |
Int_t | GetNofPrimaryMcTracks (Int_t iEv) |
Bool_t | IsCherenkovPhoton (const CbmRichPoint *point, Int_t fileId, Int_t eventId) |
Bool_t | IsCherenkovPhotonFromPrimaryElectron (const CbmRichPoint *point, Int_t fileId, Int_t eventId) |
Bool_t | IsCherenkovPhotonFromSecondaryElectron (const CbmRichPoint *point, Int_t fileId, Int_t eventId) |
Bool_t | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
Bool_t | IsCherenkovPhotonFromPion (const CbmRichPoint *point, Int_t fileId, Int_t eventId) |
Bool_t | IsMcPion (const CbmMCTrack *mctrack) |
void | DrawTimeLog (const string &hMainName, Int_t nofLogEvents, bool withNoise=false) |
CbmRichRecoTbQa (const CbmRichRecoTbQa &) | |
Copy constructor. More... | |
CbmRichRecoTbQa & | operator= (const CbmRichRecoTbQa &) |
Assignment operator. More... | |
Private Attributes | |
CbmHistManager * | fHM |
Int_t | fTimeSliceNum |
Int_t | fNofLogEvents |
string | fOutputDir |
CbmMCDataArray * | fMCTracks |
CbmMCDataArray * | fRichPoints |
CbmMCDataArray * | fStsPoints |
CbmDigiManager * | fDigiMan |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichRingMatches |
CbmMCEventList * | fEventList |
vector< pair< Int_t, Int_t > > | fRecRings |
Definition at line 19 of file CbmRichRecoTbQa.h.
CbmRichRecoTbQa::CbmRichRecoTbQa | ( | ) |
Standard constructor.
Definition at line 50 of file CbmRichRecoTbQa.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 30 of file CbmRichRecoTbQa.h.
|
private |
Copy constructor.
void CbmRichRecoTbQa::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir | ||
) |
Draw histogram from file.
|
private |
Definition at line 524 of file CbmRichRecoTbQa.cxx.
References CbmHistManager::CreateCanvas(), Cbm::DivideH1(), DrawH1(), DrawTimeLog(), fHM, fNofLogEvents, CbmHistManager::H1(), kLinear, kLog, max(), min(), Cbm::NumberToString(), and SetDefaultDrawStyle().
Referenced by Finish().
|
private |
Definition at line 737 of file CbmRichRecoTbQa.cxx.
References DrawH1(), fHM, CbmHistManager::H1(), kLinear, kLog, max(), and min().
Referenced by DrawHist().
|
virtual |
Inherited from FairTask.
Definition at line 244 of file CbmRichRecoTbQa.cxx.
References fEventList, fTimeSliceNum, CbmMCEventList::GetNofEvents(), Process(), and RingRecoEfficiency().
|
virtual |
Inherited from FairTask.
Definition at line 765 of file CbmRichRecoTbQa.cxx.
References DrawHist(), fHM, fOutputDir, ProcessMc(), CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
private |
Definition at line 361 of file CbmRichRecoTbQa.cxx.
References counter, fMCTracks, CbmMCDataArray::Get(), CbmMCTrack::GetGeantProcessId(), and CbmMCDataArray::Size().
Referenced by RingRecoEfficiency().
|
virtual |
Inherited from FairTask.
Definition at line 67 of file CbmRichRecoTbQa.cxx.
References fDigiMan, fEventList, fMCTracks, fRichHits, fRichPoints, fRichRingMatches, fRichRings, fStsPoints, CbmMCDataManager::GetObject(), CbmDigiManager::Init(), CbmMCDataManager::InitBranch(), InitHistograms(), and CbmDigiManager::Instance().
|
private |
Initialize histograms.
Definition at line 110 of file CbmRichRecoTbQa.cxx.
References CbmHistManager::Create1(), fHM, and fNofLogEvents.
Referenced by Init().
|
private |
Definition at line 443 of file CbmRichRecoTbQa.cxx.
References fMCTracks, CbmMCDataArray::Get(), and CbmMCTrack::GetPdgCode().
Referenced by ProcessMc().
|
private |
Definition at line 507 of file CbmRichRecoTbQa.cxx.
References fMCTracks, CbmMCDataArray::Get(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), and IsMcPion().
Referenced by ProcessMc().
|
private |
Definition at line 454 of file CbmRichRecoTbQa.cxx.
References fMCTracks, CbmMCDataArray::Get(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), and IsMcPrimaryElectron().
Referenced by ProcessMc().
|
private |
Definition at line 471 of file CbmRichRecoTbQa.cxx.
References fMCTracks, CbmMCDataArray::Get(), CbmMCTrack::GetGeantProcessId(), CbmMCTrack::GetMotherId(), and CbmMCTrack::GetPdgCode().
Referenced by ProcessMc().
|
private |
Definition at line 500 of file CbmRichRecoTbQa.cxx.
References CbmMCTrack::GetPdgCode().
Referenced by IsCherenkovPhotonFromPion().
|
private |
Definition at line 493 of file CbmRichRecoTbQa.cxx.
References CbmMCTrack::GetGeantProcessId(), and CbmMCTrack::GetPdgCode().
Referenced by IsCherenkovPhotonFromPrimaryElectron(), and RingRecoEfficiency().
|
private |
Assignment operator.
|
private |
Definition at line 256 of file CbmRichRecoTbQa.cxx.
References fDigiMan, fHM, fNofLogEvents, fRichHits, fRichRingMatches, fRichRings, CbmDigiManager::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmDigiManager::GetMatch(), CbmMatch::GetMatchedLink(), CbmDigiManager::GetNofDigis(), CbmRichDigi::GetTime(), CbmRichRing::GetTime(), CbmHistManager::H1(), and kRich.
Referenced by Exec().
|
private |
Definition at line 305 of file CbmRichRecoTbQa.cxx.
References fEventList, fHM, fNofLogEvents, fRichPoints, fStsPoints, CbmMCDataArray::Get(), CbmMCEventList::GetEventTime(), CbmHistManager::H1(), IsCherenkovPhoton(), IsCherenkovPhotonFromPion(), IsCherenkovPhotonFromPrimaryElectron(), IsCherenkovPhotonFromSecondaryElectron(), and CbmMCDataArray::Size().
Referenced by Finish().
|
private |
Definition at line 373 of file CbmRichRecoTbQa.cxx.
References fDigiMan, fHM, fMCTracks, fRecRings, fRichHits, fRichPoints, fRichRingMatches, fRichRings, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), GetNofPrimaryMcTracks(), CbmMCTrack::GetP(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), CbmHistManager::H1(), i, IsMcPrimaryElectron(), and CbmMCDataArray::Size().
Referenced by Exec().
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 52 of file CbmRichRecoTbQa.h.
|
private |
Definition at line 119 of file CbmRichRecoTbQa.h.
Referenced by Init(), Process(), and RingRecoEfficiency().
|
private |
Definition at line 123 of file CbmRichRecoTbQa.h.
Referenced by Exec(), Init(), and ProcessMc().
|
private |
Definition at line 109 of file CbmRichRecoTbQa.h.
Referenced by DrawHist(), DrawTimeLog(), Finish(), InitHistograms(), Process(), ProcessMc(), and RingRecoEfficiency().
|
private |
Definition at line 116 of file CbmRichRecoTbQa.h.
Referenced by GetNofPrimaryMcTracks(), Init(), IsCherenkovPhoton(), IsCherenkovPhotonFromPion(), IsCherenkovPhotonFromPrimaryElectron(), IsCherenkovPhotonFromSecondaryElectron(), and RingRecoEfficiency().
|
private |
Definition at line 113 of file CbmRichRecoTbQa.h.
Referenced by DrawHist(), InitHistograms(), Process(), and ProcessMc().
|
private |
Definition at line 114 of file CbmRichRecoTbQa.h.
Referenced by Finish().
|
private |
Definition at line 125 of file CbmRichRecoTbQa.h.
Referenced by RingRecoEfficiency().
|
private |
Definition at line 120 of file CbmRichRecoTbQa.h.
Referenced by Init(), Process(), and RingRecoEfficiency().
|
private |
Definition at line 117 of file CbmRichRecoTbQa.h.
Referenced by Init(), ProcessMc(), and RingRecoEfficiency().
|
private |
Definition at line 122 of file CbmRichRecoTbQa.h.
Referenced by Init(), Process(), and RingRecoEfficiency().
|
private |
Definition at line 121 of file CbmRichRecoTbQa.h.
Referenced by Init(), Process(), and RingRecoEfficiency().
|
private |
Definition at line 118 of file CbmRichRecoTbQa.h.
Referenced by Init(), and ProcessMc().
|
private |
Definition at line 111 of file CbmRichRecoTbQa.h.
Referenced by Exec().