CbmRoot
|
#include <CbmRichMCbmToTShifter.h>
Public Member Functions | |
CbmRichMCbmToTShifter () | |
Standard constructor. | |
virtual | ~CbmRichMCbmToTShifter () |
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 | GeneratePDF (Bool_t b=true) |
Flag Funtion to control PDF output. | |
void | ShowTdcId (Bool_t b=true) |
Flag Funtion to control printout for ParameterFile. | |
Private Member Functions | |
TH1 * | GetTotH1 (Int_t tdc, Int_t channel) |
Handler for TH1 Histograms. | |
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. | |
void | InitHistograms () |
Initialize histograms. | |
int | getDirichAddress (const int dirich) |
Extract the Tdc Address from the encoded DiRICH Address. | |
int | getDirichChannel (const int dirich) |
Extract the channel Address from the encoded DiRICH Address. | |
Double_t | GetMaxH1 (TH1 *h) |
Find the Maximum in a TH1 Histogram. | |
CbmRichMCbmToTShifter (const CbmRichMCbmToTShifter &) | |
Copy constructor. | |
CbmRichMCbmToTShifter & | operator= (const CbmRichMCbmToTShifter &) |
Assignment operator. | |
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 23 of file CbmRichMCbmToTShifter.h.
CbmRichMCbmToTShifter::CbmRichMCbmToTShifter | ( | ) |
Standard constructor.
Definition at line 41 of file CbmRichMCbmToTShifter.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 34 of file CbmRichMCbmToTShifter.h.
|
private |
Copy constructor.
|
inlineprivate |
Definition at line 88 of file CbmRichMCbmToTShifter.h.
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 71 of file CbmRichMCbmToTShifter.cxx.
References fDigiMan, fEventNum, CbmDigiManager::Get(), CbmRichDigi::GetAddress(), getDirichAddress(), getDirichChannel(), CbmDigiManager::GetNofDigis(), CbmRichDigi::GetToT(), GetTotH1(), and kRich.
|
virtual |
Inherited from FairTask.
Definition at line 84 of file CbmRichMCbmToTShifter.cxx.
References calcDirichAddr(), fGeneratePDFs, fhTotMap, fShowTdcId, GetMaxH1(), GetTotH1(), and printEmpty().
|
inline |
Flag Funtion to control PDF output.
Definition at line 61 of file CbmRichMCbmToTShifter.h.
References fGeneratePDFs.
|
inlineprivate |
Extract the Tdc Address from the encoded DiRICH Address.
Definition at line 107 of file CbmRichMCbmToTShifter.h.
Referenced by Exec().
|
inlineprivate |
Extract the channel Address from the encoded DiRICH Address.
Definition at line 112 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 166 of file CbmRichMCbmToTShifter.cxx.
References fhTotMap.
|
virtual |
Inherited from FairTask.
Definition at line 52 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 194 of file CbmRichMCbmToTShifter.cxx.
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 55 of file CbmRichMCbmToTShifter.h.
References fOutputDir.
|
inline |
Flag Funtion to control printout for ParameterFile.
Definition at line 66 of file CbmRichMCbmToTShifter.h.
References fShowTdcId.
|
private |
Definition at line 70 of file CbmRichMCbmToTShifter.h.
|
private |
Definition at line 72 of file CbmRichMCbmToTShifter.h.
Referenced by Exec().
|
private |
Definition at line 78 of file CbmRichMCbmToTShifter.h.
Referenced by Finish(), and GeneratePDF().
|
private |
Definition at line 76 of file CbmRichMCbmToTShifter.h.
Referenced by Finish(), and GetTotH1().
|
private |
Definition at line 74 of file CbmRichMCbmToTShifter.h.
Referenced by SetOutputDir().
|
private |
Definition at line 80 of file CbmRichMCbmToTShifter.h.
Referenced by Finish(), and ShowTdcId().