CbmRoot
|
#include <CbmRichUrqmdTest.h>
Public Member Functions | |
CbmRichUrqmdTest () | |
Standard constructor. | |
virtual | ~CbmRichUrqmdTest () |
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). | |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. | |
void | FillRichRingNofHits () |
void | NofRings () |
void | NofHitsAndPoints () |
void | NofProjections () |
void | Vertex () |
void | DrawHist () |
Draw histograms. | |
void | PmtXYSource () |
CbmRichUrqmdTest (const CbmRichUrqmdTest &) | |
Copy constructor. | |
CbmRichUrqmdTest & | operator= (const CbmRichUrqmdTest &) |
Assignment operator. | |
Private Attributes | |
CbmHistManager * | fHM = nullptr |
std::string | fOutputDir = "" |
TClonesArray * | fRichHits = nullptr |
TClonesArray * | fRichRings = nullptr |
CbmMCDataArray * | fRichPoints = nullptr |
CbmMCDataArray * | fMcTracks = nullptr |
TClonesArray * | fRichRingMatches = nullptr |
TClonesArray * | fRichProjections = nullptr |
CbmDigiManager * | fDigiMan = nullptr |
CbmMCEventList * | fEventList = nullptr |
int | fEventNum = 0 |
int | fMinNofHits = 7 |
std::map< CbmLink, int > | fNofHitsInRingMap |
std::vector< std::pair< int, int > > | fVertexZStsSlices |
Definition at line 22 of file CbmRichUrqmdTest.h.
CbmRichUrqmdTest::CbmRichUrqmdTest | ( | ) |
Standard constructor.
Definition at line 43 of file CbmRichUrqmdTest.cxx.
|
virtual |
Standard destructor.
Definition at line 45 of file CbmRichUrqmdTest.cxx.
|
private |
Copy constructor.
|
private |
Draw histograms.
Definition at line 410 of file CbmRichUrqmdTest.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), CbmRichDraw::DrawPmtH2(), DrawTextOnPad(), fEventNum, fHM, fVertexZStsSlices, CbmHistManager::H1(), CbmHistManager::H1Vector(), CbmHistManager::H2(), CbmHistManager::H2Clone(), kLinear, kLog, CbmHistManager::NormalizeToIntegral(), CbmHistManager::Scale(), and SetDefaultDrawStyle().
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 70 of file CbmRichUrqmdTest.cxx.
References fEventNum, FillRichRingNofHits(), NofHitsAndPoints(), NofProjections(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 84 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fMcTracks, fNofHitsInRingMap, fRichHits, fRichPoints, and CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 605 of file CbmRichUrqmdTest.cxx.
References CbmHistManager::Clear(), DrawHist(), fHM, fOutputDir, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 47 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fEventList, fMcTracks, fRichHits, fRichPoints, fRichProjections, fRichRingMatches, fRichRings, fVertexZStsSlices, Cbm::GetOrFatal(), CbmDigiManager::Init(), InitHistograms(), Cbm::InitOrFatalMc(), and CbmDigiManager::Instance().
|
private |
Initialize histograms.
Definition at line 99 of file CbmRichUrqmdTest.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, fVertexZStsSlices, CbmRichUtil::GetPmtHistXbins(), and CbmRichUtil::GetPmtHistYbins().
Referenced by Init().
|
private |
Definition at line 228 of file CbmRichUrqmdTest.cxx.
References fDigiMan, fEventList, fHM, fMcTracks, CbmRichPixelData::fPmtId, fRichHits, fRichPoints, CbmRichPmtData::fX, CbmRichPmtData::fY, CbmRichPmtData::fZ, CbmDigiManager::Get(), CbmMCDataArray::Get(), CbmRichDigi::GetAddress(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetFileIdByIndex(), CbmRichDigiMapManager::GetInstance(), CbmRichGeoManager::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(), CbmRichGeoManager::RotatePoint(), and CbmMCDataArray::Size().
Referenced by Exec().
|
private |
Definition at line 362 of file CbmRichUrqmdTest.cxx.
References fHM, fRichProjections, CbmHistManager::H1(), and CbmHistManager::H2().
Referenced by Exec().
|
private |
Definition at line 163 of file CbmRichUrqmdTest.cxx.
References fHM, fMcTracks, fMinNofHits, fRichRingMatches, fRichRings, CbmMCDataArray::Get(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmRichRing::GetNofHits(), CbmMatch::GetNofLinks(), CbmMCTrack::GetP(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetStartVertex(), and CbmHistManager::H1().
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Definition at line 315 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(), 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 55 of file CbmRichUrqmdTest.h.
References fOutputDir.
|
private |
Definition at line 376 of file CbmRichUrqmdTest.cxx.
References fEventList, fHM, fMcTracks, fNofHitsInRingMap, fVertexZStsSlices, CbmMCDataArray::Get(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetFileIdByIndex(), CbmMCEventList::GetNofEvents(), CbmMCTrack::GetStartVertex(), CbmHistManager::H1(), CbmHistManager::H2(), CbmMCDataArray::Size(), and v.
Referenced by Exec().
|
private |
Definition at line 69 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), and NofHitsAndPoints().
|
private |
Definition at line 70 of file CbmRichUrqmdTest.h.
Referenced by Init(), NofHitsAndPoints(), PmtXYSource(), and Vertex().
|
private |
Definition at line 72 of file CbmRichUrqmdTest.h.
Referenced by DrawHist(), and Exec().
|
private |
Definition at line 59 of file CbmRichUrqmdTest.h.
Referenced by DrawHist(), Finish(), InitHistograms(), NofHitsAndPoints(), NofProjections(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 66 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), NofHitsAndPoints(), NofRings(), PmtXYSource(), and Vertex().
|
private |
Definition at line 73 of file CbmRichUrqmdTest.h.
Referenced by NofRings().
|
private |
Definition at line 75 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), and Vertex().
|
private |
Definition at line 61 of file CbmRichUrqmdTest.h.
Referenced by Finish(), and SetOutputDir().
|
private |
Definition at line 63 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), and NofHitsAndPoints().
|
private |
Definition at line 65 of file CbmRichUrqmdTest.h.
Referenced by FillRichRingNofHits(), Init(), NofHitsAndPoints(), and PmtXYSource().
|
private |
Definition at line 68 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofProjections().
|
private |
Definition at line 67 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofRings().
|
private |
Definition at line 64 of file CbmRichUrqmdTest.h.
Referenced by Init(), and NofRings().
|
private |
Definition at line 77 of file CbmRichUrqmdTest.h.
Referenced by DrawHist(), Init(), InitHistograms(), and Vertex().