CbmRoot
Loading...
Searching...
No Matches
CbmRichMCbmToTShifter Class Reference

#include <CbmRichMCbmToTShifter.h>

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

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

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 23 of file CbmRichMCbmToTShifter.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmToTShifter() [1/2]

CbmRichMCbmToTShifter::CbmRichMCbmToTShifter ( )

Standard constructor.

Definition at line 41 of file CbmRichMCbmToTShifter.cxx.

◆ ~CbmRichMCbmToTShifter()

virtual CbmRichMCbmToTShifter::~CbmRichMCbmToTShifter ( )
inlinevirtual

Standard destructor.

Definition at line 34 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 88 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 84 of file CbmRichMCbmToTShifter.cxx.

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

◆ GeneratePDF()

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

Flag Funtion to control PDF output.

Definition at line 61 of file CbmRichMCbmToTShifter.h.

References fGeneratePDFs.

◆ getDirichAddress()

int CbmRichMCbmToTShifter::getDirichAddress ( const int dirich)
inlineprivate

Extract the Tdc Address from the encoded DiRICH Address.

Definition at line 107 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 112 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.

Referenced by Finish().

◆ GetTotH1()

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

Handler for TH1 Histograms.

Definition at line 166 of file CbmRichMCbmToTShifter.cxx.

References fhTotMap.

Referenced by Exec(), and Finish().

◆ Init()

InitStatus CbmRichMCbmToTShifter::Init ( )
virtual

Inherited from FairTask.

Definition at line 52 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 194 of file CbmRichMCbmToTShifter.cxx.

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 55 of file CbmRichMCbmToTShifter.h.

References fOutputDir.

◆ ShowTdcId()

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

Flag Funtion to control printout for ParameterFile.

Definition at line 66 of file CbmRichMCbmToTShifter.h.

References fShowTdcId.

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmRichMCbmToTShifter::fDigiMan = nullptr
private

Definition at line 70 of file CbmRichMCbmToTShifter.h.

Referenced by Exec(), and Init().

◆ fEventNum

Int_t CbmRichMCbmToTShifter::fEventNum
private

Definition at line 72 of file CbmRichMCbmToTShifter.h.

Referenced by Exec().

◆ fGeneratePDFs

Bool_t CbmRichMCbmToTShifter::fGeneratePDFs
private

Definition at line 78 of file CbmRichMCbmToTShifter.h.

Referenced by Finish(), and GeneratePDF().

◆ fhTotMap

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

Definition at line 76 of file CbmRichMCbmToTShifter.h.

Referenced by Finish(), and GetTotH1().

◆ fOutputDir

std::string CbmRichMCbmToTShifter::fOutputDir
private

Definition at line 74 of file CbmRichMCbmToTShifter.h.

Referenced by SetOutputDir().

◆ fShowTdcId

Bool_t CbmRichMCbmToTShifter::fShowTdcId
private

Definition at line 80 of file CbmRichMCbmToTShifter.h.

Referenced by Finish(), and ShowTdcId().


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