CbmRoot
|
#include <CbmLitRadLengthQa.h>
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 &) | |
CbmLitRadLengthQa & | operator= (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 | |
CbmHistManager * | fHM |
string | fOutputDir |
TClonesArray * | fRadLen |
CbmLitDetectorSetup | fDet |
Static Private Attributes | |
static const Double_t | SILICON_RAD_LENGTH = 9.365 |
Definition at line 21 of file CbmLitRadLengthQa.h.
CbmLitRadLengthQa::CbmLitRadLengthQa | ( | ) |
Constructor.
Definition at line 42 of file CbmLitRadLengthQa.cxx.
|
virtual |
|
private |
|
private |
|
private |
Create histograms.
Definition at line 102 of file CbmLitRadLengthQa.cxx.
References CbmHistManager::Add(), fDet, fHM, CbmLitDetectorSetup::GetDet(), CbmLitTrackingGeometryConstructor::GetNofMuchAbsorbers(), CbmLitTrackingGeometryConstructor::GetNofMuchStations(), CbmLitTrackingGeometryConstructor::GetNofMvdStations(), CbmLitTrackingGeometryConstructor::GetNofStsStations(), CbmLitTrackingGeometryConstructor::GetNofTrdStations(), CbmLitTrackingGeometryConstructor::Instance(), kMuch, kMvd, kRich, kSts, kTof, kTrd, and CbmHistManager::ToString().
Referenced by Init().
|
virtual |
Derived from FairTask.
Definition at line 57 of file CbmLitRadLengthQa.cxx.
References ExecDetector(), GetMuchAbsorberId(), GetMuchStationId(), GetMvdStationId(), GetStsStationId(), and GetTrdStationId().
|
private |
Exec additional radiation thickness calculation for tracking detectors.
[in] | detName | Name of the detector (Mvd, Sts, Much, Trd). |
[in] | getStationId | Pointer 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.
|
private |
Execute total radiation length for a particular detector.
[in] | pathPattern | Path pattern for this detector in TGeomanager. |
[in] | detName | Name 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().
|
private |
Definition at line 415 of file CbmLitRadLengthQa.cxx.
References fHM, CbmHistManager::H1(), and CbmHistManager::P2().
Referenced by ExecDetector().
|
virtual |
Derived from FairTask.
Definition at line 79 of file CbmLitRadLengthQa.cxx.
References CbmSimulationReport::Create(), fHM, fOutputDir, SaveMaterialBudgetToFile(), CbmHistManager::ShrinkEmptyBinsH2ByPattern(), and CbmHistManager::WriteToFile().
|
staticprivate |
Return MUCH absorber ID by path to the node or -1 in case node does not exists.
[in] | nodePath | Full path to the node. |
Definition at line 486 of file CbmLitRadLengthQa.cxx.
Referenced by Exec().
|
staticprivate |
Return MUCH station ID by path to the node or -1 in case node does not exists.
[in] | nodePath | Full path to the node. |
Definition at line 467 of file CbmLitRadLengthQa.cxx.
References CbmLitTrackingGeometryConstructor::ConvertMuchToAbsoluteStationNr(), and CbmLitTrackingGeometryConstructor::Instance().
Referenced by Exec().
|
staticprivate |
Return MVD station ID by path to the node or -1 in case node does not exists.
[in] | nodePath | Full path to the node. |
Definition at line 435 of file CbmLitRadLengthQa.cxx.
Referenced by Exec().
|
staticprivate |
Return STS station ID by path to the node or -1 in case node does not exists.
[in] | nodePath | Full path to the node. |
Definition at line 441 of file CbmLitRadLengthQa.cxx.
Referenced by Exec().
|
staticprivate |
Return TRD station ID by path to the node or -1 in case node does not exists.
[in] | nodePath | Full path to the node. |
Definition at line 453 of file CbmLitRadLengthQa.cxx.
Referenced by Exec().
|
virtual |
Derived from FairTask.
Definition at line 49 of file CbmLitRadLengthQa.cxx.
References CreateHistograms(), CbmLitDetectorSetup::DetermineSetup(), fDet, fHM, and ReadDataBranches().
|
private |
|
private |
Read data branches.
Definition at line 96 of file CbmLitRadLengthQa.cxx.
References fRadLen.
Referenced by Init().
|
private |
Definition at line 506 of file CbmLitRadLengthQa.cxx.
References fHM, fOutputDir, and CbmHistManager::H1Vector().
Referenced by 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().
|
inline |
Definition at line 49 of file CbmLitRadLengthQa.h.
References fOutputDir.
|
private |
Definition at line 136 of file CbmLitRadLengthQa.h.
Referenced by CreateHistograms(), ExecDetector(), and Init().
|
private |
Definition at line 130 of file CbmLitRadLengthQa.h.
Referenced by CreateHistograms(), ExecDetector(), FillHistosDetector(), Finish(), Init(), SaveDetectorMaterialBudgetToFile(), and ~CbmLitRadLengthQa().
|
private |
Definition at line 131 of file CbmLitRadLengthQa.h.
Referenced by Finish(), SaveDetectorMaterialBudgetToFile(), and SetOutputDir().
|
private |
Definition at line 134 of file CbmLitRadLengthQa.h.
Referenced by ExecDetector(), and ReadDataBranches().
|
staticprivate |
Definition at line 128 of file CbmLitRadLengthQa.h.
Referenced by ExecDetector().