CbmRoot
|
#include <CbmRichMCbmToTShifter.h>
Public Member Functions | |
CbmRichMCbmToTShifter () | |
Standard constructor. More... | |
virtual | ~CbmRichMCbmToTShifter () |
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 | GeneratePDF (Bool_t b=true) |
Flag Funtion to control PDF output. More... | |
void | ShowTdcId (Bool_t b=true) |
Flag Funtion to control printout for ParameterFile. More... | |
Private Member Functions | |
TH1 * | GetTotH1 (Int_t tdc, Int_t channel) |
Handler for TH1 Histograms. More... | |
uint16_t | calcDirichAddr (uint32_t cnt) |
std::string | printEmpty () |
Fill output lines with 0's if DiRICh Address is not in use in input file. More... | |
void | InitHistograms () |
Initialize histograms. More... | |
int | getDirichAddress (const int dirich) |
Extract the Tdc Address from the encoded DiRICH Address. More... | |
int | getDirichChannel (const int dirich) |
Extract the channel Address from the encoded DiRICH Address. More... | |
Double_t | GetMaxH1 (TH1 *h) |
Find the Maximum in a TH1 Histogram. More... | |
CbmRichMCbmToTShifter (const CbmRichMCbmToTShifter &) | |
Copy constructor. More... | |
CbmRichMCbmToTShifter & | operator= (const CbmRichMCbmToTShifter &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
Int_t | fEventNum |
std::string | fOutputDir |
std::map< Int_t, std::map< Int_t, TH1 * > > | fhTotMap |
Bool_t | fGeneratePDFs |
Bool_t | fShowTdcId |
Definition at line 18 of file CbmRichMCbmToTShifter.h.
CbmRichMCbmToTShifter::CbmRichMCbmToTShifter | ( | ) |
Standard constructor.
Definition at line 38 of file CbmRichMCbmToTShifter.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 29 of file CbmRichMCbmToTShifter.h.
|
private |
Copy constructor.
|
inlineprivate |
Definition at line 83 of file CbmRichMCbmToTShifter.h.
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 66 of file CbmRichMCbmToTShifter.cxx.
References fDigiMan, fEventNum, CbmDigiManager::Get(), CbmRichDigi::GetAddress(), getDirichAddress(), getDirichChannel(), CbmDigiManager::GetNofDigis(), CbmRichDigi::GetToT(), GetTotH1(), i, and kRich.
|
virtual |
Inherited from FairTask.
Definition at line 79 of file CbmRichMCbmToTShifter.cxx.
References calcDirichAddr(), fGeneratePDFs, fhTotMap, fShowTdcId, GetMaxH1(), GetTotH1(), i, and printEmpty().
|
inline |
Flag Funtion to control PDF output.
Definition at line 56 of file CbmRichMCbmToTShifter.h.
|
inlineprivate |
Extract the Tdc Address from the encoded DiRICH Address.
Definition at line 102 of file CbmRichMCbmToTShifter.h.
Referenced by Exec().
|
inlineprivate |
Extract the channel Address from the encoded DiRICH Address.
Definition at line 109 of file CbmRichMCbmToTShifter.h.
Referenced by Exec().
|
private |
Find the Maximum in a TH1 Histogram.
Definition at line 179 of file CbmRichMCbmToTShifter.cxx.
Referenced by Finish().
|
private |
Handler for TH1 Histograms.
Definition at line 167 of file CbmRichMCbmToTShifter.cxx.
References fhTotMap.
|
virtual |
Inherited from FairTask.
Definition at line 48 of file CbmRichMCbmToTShifter.cxx.
References fDigiMan, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kRich.
|
private |
Initialize histograms.
|
private |
Assignment operator.
|
private |
Fill output lines with 0's if DiRICh Address is not in use in input file.
Definition at line 193 of file CbmRichMCbmToTShifter.cxx.
References i.
Referenced by Finish().
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 50 of file CbmRichMCbmToTShifter.h.
|
inline |
Flag Funtion to control printout for ParameterFile.
Definition at line 61 of file CbmRichMCbmToTShifter.h.
|
private |
Definition at line 65 of file CbmRichMCbmToTShifter.h.
|
private |
Definition at line 67 of file CbmRichMCbmToTShifter.h.
Referenced by Exec().
|
private |
Definition at line 73 of file CbmRichMCbmToTShifter.h.
Referenced by Finish().
|
private |
Definition at line 71 of file CbmRichMCbmToTShifter.h.
Referenced by Finish(), and GetTotH1().
|
private |
Definition at line 69 of file CbmRichMCbmToTShifter.h.
|
private |
Definition at line 75 of file CbmRichMCbmToTShifter.h.
Referenced by Finish().