CbmRoot
|
#include <CbmRichMCbmAerogelAna.h>
Public Member Functions | |
CbmRichMCbmAerogelAna () | |
Standard constructor. | |
virtual | ~CbmRichMCbmAerogelAna () |
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 | DoDrawCanvas (bool val=true) |
void | DoWriteHistToFile (bool val=true) |
void | XOffsetHistos (Double_t offset=0.) |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. | |
void | DrawHist () |
Draw histograms. | |
void | RichRings () |
bool | doToT (CbmRichHit *hit) |
Bool_t | cutRadius (CbmRichRing *ring) |
CbmRichMCbmAerogelAna (const CbmRichMCbmAerogelAna &) | |
Copy constructor. | |
CbmRichMCbmAerogelAna & | operator= (const CbmRichMCbmAerogelAna &) |
Assignment operator. | |
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 25 of file CbmRichMCbmAerogelAna.h.
CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna | ( | ) |
Standard constructor.
Definition at line 57 of file CbmRichMCbmAerogelAna.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 36 of file CbmRichMCbmAerogelAna.h.
|
private |
Copy constructor.
|
private |
Definition at line 501 of file CbmRichMCbmAerogelAna.cxx.
References CbmRichRing::GetRadius().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 69 of file CbmRichMCbmAerogelAna.h.
References fDoDrawCanvas.
|
private |
Definition at line 492 of file CbmRichMCbmAerogelAna.cxx.
References CbmRichHit::GetToT().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 74 of file CbmRichMCbmAerogelAna.h.
References fDoWriteHistToFile.
void CbmRichMCbmAerogelAna::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 469 of file CbmRichMCbmAerogelAna.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
|
private |
Draw histograms.
Definition at line 301 of file CbmRichMCbmAerogelAna.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), fHM, CbmHistManager::H1(), CbmHistManager::H2(), and CbmHistManager::ScaleByPattern().
Referenced by DrawFromFile(), and Finish().
|
virtual |
Inherited from FairTask.
Definition at line 178 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(), CbmRichDigi::GetToT(), CbmRichHit::GetToT(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), kRich, kRichHit, RichRings(), and rings.
|
virtual |
Inherited from FairTask.
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 437 of file CbmRichMCbmAerogelAna.cxx.
References DrawHist(), fDoDrawCanvas, fDoWriteHistToFile, fHM, fOutputDir, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 72 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 120 of file CbmRichMCbmAerogelAna.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, and fXOffsetHisto.
Referenced by Init().
|
private |
Assignment operator.
|
private |
Definition at line 286 of file CbmRichMCbmAerogelAna.cxx.
References fHM, fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmHistManager::H1(), and CbmHistManager::H2().
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 57 of file CbmRichMCbmAerogelAna.h.
References fOutputDir.
|
inline |
Move X-Position of mRICH in Histograms (e.g. for Geometry changes)
Definition at line 80 of file CbmRichMCbmAerogelAna.h.
References fXOffsetHisto.
|
private |
Definition at line 89 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 83 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 107 of file CbmRichMCbmAerogelAna.h.
Referenced by DoDrawCanvas(), and Finish().
|
private |
Definition at line 106 of file CbmRichMCbmAerogelAna.h.
Referenced by DoWriteHistToFile(), and Finish().
|
private |
Definition at line 95 of file CbmRichMCbmAerogelAna.h.
Referenced by Exec().
|
private |
Definition at line 91 of file CbmRichMCbmAerogelAna.h.
Referenced by DrawFromFile(), DrawHist(), Exec(), Finish(), InitHistograms(), and RichRings().
|
private |
Definition at line 101 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 99 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 97 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 104 of file CbmRichMCbmAerogelAna.h.
Referenced by DrawFromFile(), Finish(), and SetOutputDir().
|
private |
Definition at line 85 of file CbmRichMCbmAerogelAna.h.
|
private |
Definition at line 87 of file CbmRichMCbmAerogelAna.h.
Referenced by Exec(), Init(), and RichRings().
|
private |
Definition at line 93 of file CbmRichMCbmAerogelAna.h.
Referenced by InitHistograms(), and XOffsetHistos().