CbmRoot
|
#include <CbmRichMCbmAerogelAna.h>
Public Member Functions | |
CbmRichMCbmAerogelAna () | |
Standard constructor. More... | |
virtual | ~CbmRichMCbmAerogelAna () |
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 | DoDrawCanvas (bool val=true) |
void | DoWriteHistToFile (bool val=true) |
void | XOffsetHistos (Double_t offset=0.) |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. More... | |
void | DrawHist () |
Draw histograms. More... | |
void | RichRings () |
bool | doToT (CbmRichHit *hit) |
Bool_t | cutRadius (CbmRichRing *ring) |
CbmRichMCbmAerogelAna (const CbmRichMCbmAerogelAna &) | |
Copy constructor. More... | |
CbmRichMCbmAerogelAna & | operator= (const CbmRichMCbmAerogelAna &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fCbmEvent |
CbmHistManager * | fHM |
Double_t | fXOffsetHisto |
Int_t | fEventNum |
Int_t | fNofDrawnRings |
Int_t | fNofDrawnRichTofEv |
Int_t | fNofDrawnEvents |
string | fOutputDir |
bool | fDoWriteHistToFile = true |
bool | fDoDrawCanvas = true |
Definition at line 21 of file CbmRichMCbmAerogelAna.h.
CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna | ( | ) |
Standard constructor.
Definition at line 54 of file CbmRichMCbmAerogelAna.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 32 of file CbmRichMCbmAerogelAna.h.
|
private |
Copy constructor.
|
private |
Definition at line 584 of file CbmRichMCbmAerogelAna.cxx.
References CbmRichRing::GetRadius().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 65 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 576 of file CbmRichMCbmAerogelAna.cxx.
References CbmRichHit::GetToT().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 70 of file CbmRichMCbmAerogelAna.h.
void CbmRichMCbmAerogelAna::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir | ||
) |
Draw histogram from file.
Definition at line 561 of file CbmRichMCbmAerogelAna.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
|
private |
Draw histograms.
Definition at line 378 of file CbmRichMCbmAerogelAna.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), fHM, CbmHistManager::H1(), CbmHistManager::H2(), i, and CbmHistManager::ScaleByPattern().
Referenced by DrawFromFile(), and Finish().
|
virtual |
Inherited from FairTask.
Definition at line 256 of file CbmRichMCbmAerogelAna.cxx.
References fCbmEvent, fDigiMan, fEventNum, fHM, fRichHits, fRichRings, CbmDigiManager::Get(), CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetHit(), CbmEvent::GetIndex(), CbmEvent::GetNofData(), CbmDigiManager::GetNofDigis(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmRichHit::GetToT(), CbmRichDigi::GetToT(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), i, kRich, kRichHit, m, RichRings(), and rings.
|
virtual |
Inherited from FairTask.
Definition at line 535 of file CbmRichMCbmAerogelAna.cxx.
References DrawHist(), fDoDrawCanvas, fDoWriteHistToFile, fHM, fOutputDir, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 67 of file CbmRichMCbmAerogelAna.cxx.
References fCbmEvent, fDigiMan, fRichHits, fRichRings, CbmDigiManager::Init(), InitHistograms(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), kRich, and kTof.
|
private |
Initialize histograms.
Definition at line 114 of file CbmRichMCbmAerogelAna.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, and fXOffsetHisto.
Referenced by Init().
|
private |
Assignment operator.
|
private |
Definition at line 364 of file CbmRichMCbmAerogelAna.cxx.
References fHM, fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmHistManager::H1(), CbmHistManager::H2(), and i.
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 53 of file CbmRichMCbmAerogelAna.h.
|
inline |
Move X-Position of mRICH in Histograms (e.g. for Geometry changes)
Definition at line 76 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 85 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 79 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 103 of file CbmRichMCbmAerogelAna.h.
Referenced by Finish().
|
private |
Definition at line 102 of file CbmRichMCbmAerogelAna.h.
Referenced by Finish().
|
private |
Definition at line 91 of file CbmRichMCbmAerogelAna.h.
Referenced by Exec().
|
private |
Definition at line 87 of file CbmRichMCbmAerogelAna.h.
Referenced by DrawFromFile(), DrawHist(), Exec(), Finish(), InitHistograms(), and RichRings().
|
private |
Definition at line 97 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 95 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 93 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 100 of file CbmRichMCbmAerogelAna.h.
Referenced by DrawFromFile(), and Finish().
|
private |
Definition at line 81 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 83 of file CbmRichMCbmAerogelAna.h.
Referenced by Exec(), Init(), and RichRings().
|
private |
Definition at line 89 of file CbmRichMCbmAerogelAna.h.
Referenced by InitHistograms().