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

#include <CbmLitRadLengthQa.h>

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

Public Member Functions

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

Private Member Functions

void ReadDataBranches ()
 Read data branches.
 
void CreateHistograms ()
 Create histograms.
 
void ExecDetector (const string &pathPattern, const string &detName)
 Execute total radiation length for a particular detector.
 
void ExecDetector (const string &detName, Int_t(*getStationId)(const TString &))
 Exec additional radiation thickness calculation for tracking detectors.
 
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.
 
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.
 
static Int_t GetStsStationId (const TString &nodePath)
 Return STS station ID by path to the node or -1 in case node does not exists.
 
static Int_t GetTrdStationId (const TString &nodePath)
 Return TRD station ID by path to the node or -1 in case node does not exists.
 
static Int_t GetMuchStationId (const TString &nodePath)
 Return MUCH station ID by path to the node or -1 in case node does not exists.
 
static Int_t GetMuchAbsorberId (const TString &nodePath)
 Return MUCH absorber ID by path to the node or -1 in case node does not exists.
 

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 26 of file CbmLitRadLengthQa.h.

Constructor & Destructor Documentation

◆ CbmLitRadLengthQa() [1/2]

CbmLitRadLengthQa::CbmLitRadLengthQa ( )

Constructor.

Definition at line 46 of file CbmLitRadLengthQa.cxx.

References fDet, fHM, fOutputDir, and fRadLen.

Referenced by CbmLitRadLengthQa(), ClassDef(), and operator=().

◆ ~CbmLitRadLengthQa()

CbmLitRadLengthQa::~CbmLitRadLengthQa ( )
virtual

Destructor.

Definition at line 48 of file CbmLitRadLengthQa.cxx.

References fHM.

◆ CbmLitRadLengthQa() [2/2]

CbmLitRadLengthQa::CbmLitRadLengthQa ( const CbmLitRadLengthQa & )
private

References CbmLitRadLengthQa().

Member Function Documentation

◆ ClassDef()

CbmLitRadLengthQa::ClassDef ( CbmLitRadLengthQa ,
1  )
private

References CbmLitRadLengthQa().

◆ CreateHistograms()

void CbmLitRadLengthQa::CreateHistograms ( )
private

Create histograms.

Definition at line 109 of file CbmLitRadLengthQa.cxx.

References fDet, fHM, CbmLitTrackingGeometryConstructor::Instance(), kMuch, kMvd, kRich, kSts, kTof, kTrd, and ToString().

Referenced by Init().

◆ Exec()

void CbmLitRadLengthQa::Exec ( Option_t * opt)
virtual

Derived from FairTask.

Definition at line 62 of file CbmLitRadLengthQa.cxx.

References ExecDetector().

◆ ExecDetector() [1/2]

void CbmLitRadLengthQa::ExecDetector ( const string & detName,
Int_t(* getStationId )(const TString &) )
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 254 of file CbmLitRadLengthQa.cxx.

References fDet, FillHistosDetector(), fRadLen, 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 188 of file CbmLitRadLengthQa.cxx.

References fDet, fHM, fRadLen, kMuch, kMvd, kRich, kSts, kTof, kTrd, 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 312 of file CbmLitRadLengthQa.cxx.

References fHM, and ToString().

Referenced by ExecDetector().

◆ Finish()

void CbmLitRadLengthQa::Finish ( )
virtual

Derived from FairTask.

Definition at line 84 of file CbmLitRadLengthQa.cxx.

References CbmSimulationReport::Create(), fHM, fOutputDir, and SaveMaterialBudgetToFile().

◆ 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 379 of file CbmLitRadLengthQa.cxx.

◆ 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 363 of file CbmLitRadLengthQa.cxx.

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

◆ 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 331 of file CbmLitRadLengthQa.cxx.

◆ 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 337 of file CbmLitRadLengthQa.cxx.

◆ 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 348 of file CbmLitRadLengthQa.cxx.

◆ Init()

InitStatus CbmLitRadLengthQa::Init ( )
virtual

Derived from FairTask.

Definition at line 53 of file CbmLitRadLengthQa.cxx.

References CreateHistograms(), fDet, fHM, and ReadDataBranches().

◆ operator=()

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

References CbmLitRadLengthQa().

◆ ReadDataBranches()

void CbmLitRadLengthQa::ReadDataBranches ( )
private

Read data branches.

Definition at line 102 of file CbmLitRadLengthQa.cxx.

References fRadLen.

Referenced by Init().

◆ SaveDetectorMaterialBudgetToFile()

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

Definition at line 399 of file CbmLitRadLengthQa.cxx.

References fHM, and fOutputDir.

Referenced by SaveMaterialBudgetToFile().

◆ SaveMaterialBudgetToFile()

void CbmLitRadLengthQa::SaveMaterialBudgetToFile ( )
private

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

Definition at line 388 of file CbmLitRadLengthQa.cxx.

References SaveDetectorMaterialBudgetToFile().

Referenced by Finish().

◆ SetOutputDir()

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

Definition at line 54 of file CbmLitRadLengthQa.h.

References fOutputDir.

Member Data Documentation

◆ fDet

CbmLitDetectorSetup CbmLitRadLengthQa::fDet
private

◆ fHM

◆ fOutputDir

string CbmLitRadLengthQa::fOutputDir
private

◆ fRadLen

TClonesArray* CbmLitRadLengthQa::fRadLen
private

◆ SILICON_RAD_LENGTH

const Double_t CbmLitRadLengthQa::SILICON_RAD_LENGTH = 9.365
staticprivate

Definition at line 130 of file CbmLitRadLengthQa.h.

Referenced by ExecDetector(), and ExecDetector().


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