CbmRoot
|
RICH geometry testing in Urqmd collisions. More...
#include <CbmRichUrqmdTest.h>
Public Member Functions | |
CbmRichUrqmdTest () | |
Standard constructor. More... | |
virtual | ~CbmRichUrqmdTest () |
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... | |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. More... | |
void | FillRichRingNofHits () |
void | NofRings () |
void | NofHitsAndPoints () |
void | NofProjections () |
void | Vertex () |
void | DrawHist () |
Draw histograms. More... | |
void | PmtXYSource () |
CbmRichUrqmdTest (const CbmRichUrqmdTest &) | |
Copy constructor. More... | |
CbmRichUrqmdTest & | operator= (const CbmRichUrqmdTest &) |
Assignment operator. More... | |
Private Attributes | |
CbmHistManager * | fHM |
string | fOutputDir |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
CbmMCDataArray * | fRichPoints |
CbmMCDataArray * | fMcTracks |
TClonesArray * | fRichRingMatches |
TClonesArray * | fRichProjections |
CbmDigiManager * | fDigiMan |
CbmMCEventList * | fEventList |
Int_t | fEventNum |
Int_t | fMinNofHits |
std::map< pair< Int_t, Int_t >, Int_t > | fNofHitsInRingMap |
RICH geometry testing in Urqmd collisions.
Definition at line 35 of file CbmRichUrqmdTest.h.
CbmRichUrqmdTest::CbmRichUrqmdTest | ( | ) |
Standard constructor.
Definition at line 45 of file CbmRichUrqmdTest.cxx.
|
virtual |
Standard destructor.
Definition at line 61 of file CbmRichUrqmdTest.cxx.
|
private |
Copy constructor.
|
private |
Draw histograms.
Definition at line 747 of file CbmRichUrqmdTest.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH1andFitGauss(), DrawH2(), CbmRichDraw::DrawPmtH2(), DrawTextOnPad(), fEventNum, fHM, CbmHistManager::H1(), CbmHistManager::H2(), i, kLinear, kLog, and SetDefaultDrawStyle().
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 114 of file CbmRichUrqmdTest.cxx.
References fEventNum, FillRichRingNofHits(), NofHitsAndPoints(), NofProjections(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 441 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fMcTracks, fNofHitsInRingMap, fRichHits, fRichPoints, CbmDigiManager::Get(), CbmLink::GetEntry(), CbmDigiManager::GetMatch(), CbmMatch::GetMatchedLink(), CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), CbmHit::GetRefId(), i, and kRich.
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 1118 of file CbmRichUrqmdTest.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 63 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fEventList, fMcTracks, fRichHits, fRichPoints, fRichProjections, fRichRingMatches, fRichRings, CbmMCDataManager::GetObject(), CbmDigiManager::Init(), CbmMCDataManager::InitBranch(), InitHistograms(), and CbmDigiManager::Instance().
|
private |
Initialize histograms.
Definition at line 127 of file CbmRichUrqmdTest.cxx.
References CbmHistManager::Add(), CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, CbmRichDraw::GetPmtHistXbins(), and CbmRichDraw::GetPmtHistYbins().
Referenced by Init().
|
private |
Definition at line 535 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fEventList, fHM, fMcTracks, CbmRichPixelData::fPmtId, fRichHits, fRichPoints, CbmRichPmtData::fX, CbmRichPmtData::fY, CbmRichPmtData::fZ, CbmMCDataArray::Get(), CbmDigiManager::Get(), CbmRichDigi::GetAddress(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetFileIdByIndex(), CbmRichGeoManager::GetInstance(), CbmRichDigiMapManager::GetInstance(), CbmMCTrack::GetMotherId(), CbmMCEventList::GetNofEvents(), CbmMCTrack::GetPdgCode(), CbmRichDigiMapManager::GetPixelDataByAddress(), CbmRichDigiMapManager::GetPmtDataById(), CbmRichDigiMapManager::GetPmtIds(), CbmHit::GetRefId(), CbmMCTrack::GetStartVertex(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), i, CbmRichGeoManager::RotatePoint(), and CbmMCDataArray::Size().
Referenced by Exec().
|
private |
Definition at line 682 of file CbmRichUrqmdTest.cxx.
References fHM, fRichProjections, CbmHistManager::H1(), CbmHistManager::H2(), and i.
Referenced by Exec().
|
private |
Definition at line 465 of file CbmRichUrqmdTest.cxx.
References fHM, fMcTracks, fMinNofHits, fRichRingMatches, fRichRings, CbmMCDataArray::Get(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmRichRing::GetNofHits(), CbmMCTrack::GetP(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetStartVertex(), and CbmHistManager::H1().
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Definition at line 631 of file CbmRichUrqmdTest.cxx.
References fEventList, fHM, fMcTracks, fRichPoints, CbmMCDataArray::Get(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetFileIdByIndex(), CbmRichGeoManager::GetInstance(), CbmMCTrack::GetMotherId(), CbmMCEventList::GetNofEvents(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetStartVertex(), CbmHistManager::H2(), i, CbmRichGeoManager::RotatePoint(), 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 68 of file CbmRichUrqmdTest.h.
|
private |
Definition at line 695 of file CbmRichUrqmdTest.cxx.
References fEventList, fHM, fMcTracks, fNofHitsInRingMap, CbmMCDataArray::Get(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetFileIdByIndex(), CbmMCEventList::GetNofEvents(), CbmMCTrack::GetStartVertex(), CbmHistManager::H1(), CbmHistManager::H2(), i, CbmMCDataArray::Size(), and v.
Referenced by Exec().
|
private |
Definition at line 130 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), and NofHitsAndPoints().
|
private |
Definition at line 131 of file CbmRichUrqmdTest.h.
Referenced by Init(), NofHitsAndPoints(), PmtXYSource(), and Vertex().
|
private |
Definition at line 133 of file CbmRichUrqmdTest.h.
Referenced by DrawHist(), and Exec().
|
private |
Definition at line 120 of file CbmRichUrqmdTest.h.
Referenced by DrawHist(), Finish(), InitHistograms(), NofHitsAndPoints(), NofProjections(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 127 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), NofHitsAndPoints(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 135 of file CbmRichUrqmdTest.h.
Referenced by NofRings().
|
private |
Definition at line 138 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), and Vertex().
|
private |
Definition at line 122 of file CbmRichUrqmdTest.h.
Referenced by Finish().
|
private |
Definition at line 124 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), and NofHitsAndPoints().
|
private |
Definition at line 126 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), NofHitsAndPoints(), and PmtXYSource().
|
private |
Definition at line 129 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofProjections().
|
private |
Definition at line 128 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofRings().
|
private |
Definition at line 125 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofRings().