CbmRoot
CbmRichMCbmToTShifter Class Reference

#include <CbmRichMCbmToTShifter.h>

Inheritance diagram for CbmRichMCbmToTShifter:
[legend]
Collaboration diagram for CbmRichMCbmToTShifter:
[legend]

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...
 
CbmRichMCbmToTShifteroperator= (const CbmRichMCbmToTShifter &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan = nullptr
 
Int_t fEventNum
 
std::string fOutputDir
 
std::map< Int_t, std::map< Int_t, TH1 * > > fhTotMap
 
Bool_t fGeneratePDFs
 
Bool_t fShowTdcId
 

Detailed Description

Definition at line 18 of file CbmRichMCbmToTShifter.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmToTShifter() [1/2]

CbmRichMCbmToTShifter::CbmRichMCbmToTShifter ( )

Standard constructor.

Definition at line 38 of file CbmRichMCbmToTShifter.cxx.

◆ ~CbmRichMCbmToTShifter()

virtual CbmRichMCbmToTShifter::~CbmRichMCbmToTShifter ( )
inlinevirtual

Standard destructor.

Definition at line 29 of file CbmRichMCbmToTShifter.h.

◆ CbmRichMCbmToTShifter() [2/2]

CbmRichMCbmToTShifter::CbmRichMCbmToTShifter ( const CbmRichMCbmToTShifter )
private

Copy constructor.

Member Function Documentation

◆ calcDirichAddr()

uint16_t CbmRichMCbmToTShifter::calcDirichAddr ( uint32_t  cnt)
inlineprivate

Definition at line 83 of file CbmRichMCbmToTShifter.h.

Referenced by Finish().

◆ Exec()

void CbmRichMCbmToTShifter::Exec ( Option_t *  option)
virtual

◆ Finish()

void CbmRichMCbmToTShifter::Finish ( )
virtual

Inherited from FairTask.

Definition at line 79 of file CbmRichMCbmToTShifter.cxx.

References calcDirichAddr(), fGeneratePDFs, fhTotMap, fShowTdcId, GetMaxH1(), GetTotH1(), i, and printEmpty().

◆ GeneratePDF()

void CbmRichMCbmToTShifter::GeneratePDF ( Bool_t  b = true)
inline

Flag Funtion to control PDF output.

Definition at line 56 of file CbmRichMCbmToTShifter.h.

◆ getDirichAddress()

int CbmRichMCbmToTShifter::getDirichAddress ( const int  dirich)
inlineprivate

Extract the Tdc Address from the encoded DiRICH Address.

Definition at line 102 of file CbmRichMCbmToTShifter.h.

Referenced by Exec().

◆ getDirichChannel()

int CbmRichMCbmToTShifter::getDirichChannel ( const int  dirich)
inlineprivate

Extract the channel Address from the encoded DiRICH Address.

Definition at line 109 of file CbmRichMCbmToTShifter.h.

Referenced by Exec().

◆ GetMaxH1()

Double_t CbmRichMCbmToTShifter::GetMaxH1 ( TH1 *  h)
private

Find the Maximum in a TH1 Histogram.

Definition at line 179 of file CbmRichMCbmToTShifter.cxx.

References i, and max().

Referenced by Finish().

◆ GetTotH1()

TH1 * CbmRichMCbmToTShifter::GetTotH1 ( Int_t  tdc,
Int_t  channel 
)
private

Handler for TH1 Histograms.

Definition at line 167 of file CbmRichMCbmToTShifter.cxx.

References fhTotMap.

Referenced by Exec(), and Finish().

◆ Init()

InitStatus CbmRichMCbmToTShifter::Init ( )
virtual

Inherited from FairTask.

Definition at line 48 of file CbmRichMCbmToTShifter.cxx.

References fDigiMan, CbmDigiManager::Init(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), and kRich.

◆ InitHistograms()

void CbmRichMCbmToTShifter::InitHistograms ( )
private

Initialize histograms.

◆ operator=()

CbmRichMCbmToTShifter& CbmRichMCbmToTShifter::operator= ( const CbmRichMCbmToTShifter )
private

Assignment operator.

◆ printEmpty()

std::string CbmRichMCbmToTShifter::printEmpty ( )
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().

◆ SetOutputDir()

void CbmRichMCbmToTShifter::SetOutputDir ( const string &  dir)
inline

Set output directory where you want to write results (figures and json).

Parameters
[in]dirPath to the output directory.

Definition at line 50 of file CbmRichMCbmToTShifter.h.

◆ ShowTdcId()

void CbmRichMCbmToTShifter::ShowTdcId ( Bool_t  b = true)
inline

Flag Funtion to control printout for ParameterFile.

Definition at line 61 of file CbmRichMCbmToTShifter.h.

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmRichMCbmToTShifter::fDigiMan = nullptr
private

Definition at line 65 of file CbmRichMCbmToTShifter.h.

Referenced by Exec(), and Init().

◆ fEventNum

Int_t CbmRichMCbmToTShifter::fEventNum
private

Definition at line 67 of file CbmRichMCbmToTShifter.h.

Referenced by Exec().

◆ fGeneratePDFs

Bool_t CbmRichMCbmToTShifter::fGeneratePDFs
private

Definition at line 73 of file CbmRichMCbmToTShifter.h.

Referenced by Finish().

◆ fhTotMap

std::map<Int_t, std::map<Int_t, TH1*> > CbmRichMCbmToTShifter::fhTotMap
private

Definition at line 71 of file CbmRichMCbmToTShifter.h.

Referenced by Finish(), and GetTotH1().

◆ fOutputDir

std::string CbmRichMCbmToTShifter::fOutputDir
private

Definition at line 69 of file CbmRichMCbmToTShifter.h.

◆ fShowTdcId

Bool_t CbmRichMCbmToTShifter::fShowTdcId
private

Definition at line 75 of file CbmRichMCbmToTShifter.h.

Referenced by Finish().


The documentation for this class was generated from the following files: