CbmRoot
CbmLitRadLengthQa Class Reference

#include <CbmLitRadLengthQa.h>

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

Public Member Functions

 CbmLitRadLengthQa ()
 Constructor. More...
 
virtual ~CbmLitRadLengthQa ()
 Destructor. More...
 
virtual InitStatus Init ()
 Derived from FairTask. More...
 
virtual void Exec (Option_t *opt)
 Derived from FairTask. More...
 
virtual void Finish ()
 Derived from FairTask. More...
 
void SetOutputDir (const string &outputDir)
 

Private Member Functions

void ReadDataBranches ()
 Read data branches. More...
 
void CreateHistograms ()
 Create histograms. More...
 
void ExecDetector (const string &pathPattern, const string &detName)
 Execute total radiation length for a particular detector. More...
 
void ExecDetector (const string &detName, Int_t(*getStationId)(const TString &))
 Exec additional radiation thickness calculation for tracking detectors. More...
 
void FillHistosDetector (const map< Int_t, map< Int_t, Double_t >> &parMap, const string &histName, map< Int_t, map< Int_t, pair< Double_t, Double_t >>> &xyOnTrack)
 
void SaveMaterialBudgetToFile ()
 Save silicon equivalent histograms to a separate files for each detector. More...
 
void SaveDetectorMaterialBudgetToFile (const string &detName)
 
 CbmLitRadLengthQa (const CbmLitRadLengthQa &)
 
CbmLitRadLengthQaoperator= (const CbmLitRadLengthQa &)
 
 ClassDef (CbmLitRadLengthQa, 1)
 

Static Private Member Functions

static Int_t GetMvdStationId (const TString &nodePath)
 Return MVD station ID by path to the node or -1 in case node does not exists. More...
 
static Int_t GetStsStationId (const TString &nodePath)
 Return STS station ID by path to the node or -1 in case node does not exists. More...
 
static Int_t GetTrdStationId (const TString &nodePath)
 Return TRD station ID by path to the node or -1 in case node does not exists. More...
 
static Int_t GetMuchStationId (const TString &nodePath)
 Return MUCH station ID by path to the node or -1 in case node does not exists. More...
 
static Int_t GetMuchAbsorberId (const TString &nodePath)
 Return MUCH absorber ID by path to the node or -1 in case node does not exists. More...
 

Private Attributes

CbmHistManagerfHM
 
string fOutputDir
 
TClonesArray * fRadLen
 
CbmLitDetectorSetup fDet
 

Static Private Attributes

static const Double_t SILICON_RAD_LENGTH = 9.365
 

Detailed Description

Definition at line 21 of file CbmLitRadLengthQa.h.

Constructor & Destructor Documentation

◆ CbmLitRadLengthQa() [1/2]

CbmLitRadLengthQa::CbmLitRadLengthQa ( )

Constructor.

Definition at line 42 of file CbmLitRadLengthQa.cxx.

◆ ~CbmLitRadLengthQa()

CbmLitRadLengthQa::~CbmLitRadLengthQa ( )
virtual

Destructor.

Definition at line 45 of file CbmLitRadLengthQa.cxx.

References fHM.

◆ CbmLitRadLengthQa() [2/2]

CbmLitRadLengthQa::CbmLitRadLengthQa ( const CbmLitRadLengthQa )
private

Member Function Documentation

◆ ClassDef()

CbmLitRadLengthQa::ClassDef ( CbmLitRadLengthQa  ,
 
)
private

◆ CreateHistograms()

◆ Exec()

void CbmLitRadLengthQa::Exec ( Option_t *  opt)
virtual

◆ ExecDetector() [1/2]

void CbmLitRadLengthQa::ExecDetector ( const string &  detName,
Int_t(*)(const TString &)  getStationId 
)
private

Exec additional radiation thickness calculation for tracking detectors.

Parameters
[in]detNameName of the detector (Mvd, Sts, Much, Trd).
[in]getStationIdPointer to the function which return station ID by full path to the node.

Definition at line 348 of file CbmLitRadLengthQa.cxx.

References fDet, FillHistosDetector(), fRadLen, CbmLitDetectorSetup::GetDet(), kMuch, kMvd, kSts, kTrd, pos, and SILICON_RAD_LENGTH.

◆ ExecDetector() [2/2]

void CbmLitRadLengthQa::ExecDetector ( const string &  pathPattern,
const string &  detName 
)
private

Execute total radiation length for a particular detector.

Parameters
[in]pathPatternPath pattern for this detector in TGeomanager.
[in]detNameName of the detector, like in histograms.

Definition at line 273 of file CbmLitRadLengthQa.cxx.

References fDet, fHM, fRadLen, CbmLitDetectorSetup::GetDet(), CbmHistManager::H1(), kMuch, kMvd, kRich, kSts, kTof, kTrd, min(), CbmHistManager::P2(), pos, SILICON_RAD_LENGTH, x, and y.

Referenced by Exec().

◆ FillHistosDetector()

void CbmLitRadLengthQa::FillHistosDetector ( const map< Int_t, map< Int_t, Double_t >> &  parMap,
const string &  histName,
map< Int_t, map< Int_t, pair< Double_t, Double_t >>> &  xyOnTrack 
)
private

Definition at line 415 of file CbmLitRadLengthQa.cxx.

References fHM, CbmHistManager::H1(), and CbmHistManager::P2().

Referenced by ExecDetector().

◆ Finish()

void CbmLitRadLengthQa::Finish ( )
virtual

◆ GetMuchAbsorberId()

Int_t CbmLitRadLengthQa::GetMuchAbsorberId ( const TString &  nodePath)
staticprivate

Return MUCH absorber ID by path to the node or -1 in case node does not exists.

Parameters
[in]nodePathFull path to the node.
Returns
MUCH absorber ID by path to the node or -1 in case node does not exists.

Definition at line 486 of file CbmLitRadLengthQa.cxx.

Referenced by Exec().

◆ GetMuchStationId()

Int_t CbmLitRadLengthQa::GetMuchStationId ( const TString &  nodePath)
staticprivate

Return MUCH station ID by path to the node or -1 in case node does not exists.

Parameters
[in]nodePathFull path to the node.
Returns
MUCH station ID by path to the node or -1 in case node does not exists.

Definition at line 467 of file CbmLitRadLengthQa.cxx.

References CbmLitTrackingGeometryConstructor::ConvertMuchToAbsoluteStationNr(), and CbmLitTrackingGeometryConstructor::Instance().

Referenced by Exec().

◆ GetMvdStationId()

Int_t CbmLitRadLengthQa::GetMvdStationId ( const TString &  nodePath)
staticprivate

Return MVD station ID by path to the node or -1 in case node does not exists.

Parameters
[in]nodePathFull path to the node.
Returns
MVD station ID by path to the node or -1 in case node does not exists.

Definition at line 435 of file CbmLitRadLengthQa.cxx.

Referenced by Exec().

◆ GetStsStationId()

Int_t CbmLitRadLengthQa::GetStsStationId ( const TString &  nodePath)
staticprivate

Return STS station ID by path to the node or -1 in case node does not exists.

Parameters
[in]nodePathFull path to the node.
Returns
STS station ID by path to the node or -1 in case node does not exists.

Definition at line 441 of file CbmLitRadLengthQa.cxx.

Referenced by Exec().

◆ GetTrdStationId()

Int_t CbmLitRadLengthQa::GetTrdStationId ( const TString &  nodePath)
staticprivate

Return TRD station ID by path to the node or -1 in case node does not exists.

Parameters
[in]nodePathFull path to the node.
Returns
TRD station ID by path to the node or -1 in case node does not exists.

Definition at line 453 of file CbmLitRadLengthQa.cxx.

Referenced by Exec().

◆ Init()

InitStatus CbmLitRadLengthQa::Init ( )
virtual

Derived from FairTask.

Definition at line 49 of file CbmLitRadLengthQa.cxx.

References CreateHistograms(), CbmLitDetectorSetup::DetermineSetup(), fDet, fHM, and ReadDataBranches().

◆ operator=()

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

◆ ReadDataBranches()

void CbmLitRadLengthQa::ReadDataBranches ( )
private

Read data branches.

Definition at line 96 of file CbmLitRadLengthQa.cxx.

References fRadLen.

Referenced by Init().

◆ SaveDetectorMaterialBudgetToFile()

void CbmLitRadLengthQa::SaveDetectorMaterialBudgetToFile ( const string &  detName)
private

Definition at line 506 of file CbmLitRadLengthQa.cxx.

References fHM, fOutputDir, and CbmHistManager::H1Vector().

Referenced by SaveMaterialBudgetToFile().

◆ SaveMaterialBudgetToFile()

void CbmLitRadLengthQa::SaveMaterialBudgetToFile ( )
private

Save silicon equivalent histograms to a separate files for each detector.

Definition at line 496 of file CbmLitRadLengthQa.cxx.

References SaveDetectorMaterialBudgetToFile().

Referenced by Finish().

◆ SetOutputDir()

void CbmLitRadLengthQa::SetOutputDir ( const string &  outputDir)
inline

Definition at line 49 of file CbmLitRadLengthQa.h.

References fOutputDir.

Member Data Documentation

◆ fDet

CbmLitDetectorSetup CbmLitRadLengthQa::fDet
private

Definition at line 136 of file CbmLitRadLengthQa.h.

Referenced by CreateHistograms(), ExecDetector(), and Init().

◆ fHM

◆ fOutputDir

string CbmLitRadLengthQa::fOutputDir
private

Definition at line 131 of file CbmLitRadLengthQa.h.

Referenced by Finish(), SaveDetectorMaterialBudgetToFile(), and SetOutputDir().

◆ fRadLen

TClonesArray* CbmLitRadLengthQa::fRadLen
private

Definition at line 134 of file CbmLitRadLengthQa.h.

Referenced by ExecDetector(), and ReadDataBranches().

◆ SILICON_RAD_LENGTH

const Double_t CbmLitRadLengthQa::SILICON_RAD_LENGTH = 9.365
staticprivate

Definition at line 128 of file CbmLitRadLengthQa.h.

Referenced by ExecDetector().


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