CbmRoot
|
Steer class for executing the material budget maps generator independently from tracking. More...
#include <CbmGenerateMaterialMaps.h>
Classes | |
struct | Config |
struct | MaterialSlice |
Input parameters for the material map generation. More... | |
Public Member Functions | |
CbmGenerateMaterialMaps () | |
Default constructor. | |
CbmGenerateMaterialMaps (const char *name, int verbose) | |
Constructor from parameters. | |
virtual | ~CbmGenerateMaterialMaps ()=default |
Destructor. | |
CbmGenerateMaterialMaps (const CbmGenerateMaterialMaps &)=delete | |
Copy constructor. | |
CbmGenerateMaterialMaps (CbmGenerateMaterialMaps &&)=delete | |
Move constructor. | |
CbmGenerateMaterialMaps & | operator= (const CbmGenerateMaterialMaps &)=delete |
Copy assignment operator. | |
CbmGenerateMaterialMaps & | operator= (CbmGenerateMaterialMaps &&)=delete |
Move assignment operator. | |
InitStatus | Init () |
Initializer. | |
InitStatus | ReInit () |
Re-initializer. | |
void | Finish () |
Finish function. | |
void | SetOutputName (const char *fileName) |
Sets output file name. | |
void | SetUserConfig (const char *userConfig) |
Sets user configuration file. | |
const std::map< std::string, MaterialMap > & | GetMaterial () const |
Gets material map. | |
Private Types | |
using | MaterialMap = cbm::algo::kf::MaterialMap |
Private Member Functions | |
void | WriteMaterialMaps () |
Writes material budget maps to file. | |
ClassDef (CbmGenerateMaterialMaps, 0) | |
Private Attributes | |
Config | fConfig |
Offset from target to start generating mat. maps [cm]. | |
std::string | fsUserConfig = "" |
User configuration file. | |
std::string | fsOutputFile = "matBudget.root" |
Output file name. | |
std::map< std::string, MaterialMap > | fmMaterial |
Material budget maps. | |
std::unique_ptr<::kf::tools::MaterialMapFactory > | fpMaterialFactory {nullptr} |
Material factory instance. | |
double | fTargetZ |
z-coordinate of the target center | |
Static Private Attributes | |
static constexpr double | kXYoffset = 1.3 |
static constexpr double | kTargetOffset = 1. |
Offset from station boarders [scale]. | |
Steer class for executing the material budget maps generator independently from tracking.
Definition at line 25 of file CbmGenerateMaterialMaps.h.
|
private |
Definition at line 26 of file CbmGenerateMaterialMaps.h.
CbmGenerateMaterialMaps::CbmGenerateMaterialMaps | ( | ) |
Default constructor.
Definition at line 21 of file CbmGenerateMaterialMaps.cxx.
CbmGenerateMaterialMaps::CbmGenerateMaterialMaps | ( | const char * | name, |
int | verbose ) |
Constructor from parameters.
name | Name of the task |
verbose | Verbosity level |
Definition at line 25 of file CbmGenerateMaterialMaps.cxx.
|
virtualdefault |
Destructor.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
private |
void CbmGenerateMaterialMaps::Finish | ( | ) |
Finish function.
Definition at line 29 of file CbmGenerateMaterialMaps.cxx.
|
inline |
InitStatus CbmGenerateMaterialMaps::Init | ( | ) |
Initializer.
Definition at line 33 of file CbmGenerateMaterialMaps.cxx.
References CbmGenerateMaterialMaps::Config::fbParallelRays, CbmGenerateMaterialMaps::Config::fbTrackingStations, fConfig, CbmGenerateMaterialMaps::Config::fMaxNofBins, CbmGenerateMaterialMaps::MaterialSlice::fMaxXY, CbmGenerateMaterialMaps::MaterialSlice::fMaxZ, CbmGenerateMaterialMaps::MaterialSlice::fMinZ, fmMaterial, CbmGenerateMaterialMaps::MaterialSlice::fName, CbmGenerateMaterialMaps::Config::fNofRays, CbmGenerateMaterialMaps::Config::fPitch, fpMaterialFactory, CbmGenerateMaterialMaps::MaterialSlice::fRefZ, fsUserConfig, fTargetZ, CbmGenerateMaterialMaps::Config::fvUserSlices, cbm::kf::Target::GetZ(), cbm::kf::Target::Instance(), CbmTrackingDetectorInterfaceInit::Instance(), kXYoffset, cbm::algo::yaml::ReadFromFile(), and WriteMaterialMaps().
|
delete |
Move assignment operator.
|
delete |
Copy assignment operator.
InitStatus CbmGenerateMaterialMaps::ReInit | ( | ) |
Re-initializer.
Definition at line 131 of file CbmGenerateMaterialMaps.cxx.
|
inline |
Sets output file name.
Definition at line 101 of file CbmGenerateMaterialMaps.h.
References fsOutputFile.
|
inline |
Sets user configuration file.
Definition at line 104 of file CbmGenerateMaterialMaps.h.
References fsUserConfig.
|
private |
Writes material budget maps to file.
The material maps are represented with ROOT histograms. The value of the material thickness is represented in units of radiational length
Definition at line 135 of file CbmGenerateMaterialMaps.cxx.
References CbmGenerateMaterialMaps::Config::fbParallelRays, fConfig, fmMaterial, fsOutputFile, fTargetZ, and kf::tools::RootUtils::ToHistogram().
Referenced by Init().
|
private |
Offset from target to start generating mat. maps [cm].
Configuration for the task
Definition at line 119 of file CbmGenerateMaterialMaps.h.
Referenced by Init(), and WriteMaterialMaps().
|
private |
Material budget maps.
Definition at line 122 of file CbmGenerateMaterialMaps.h.
Referenced by GetMaterial(), Init(), and WriteMaterialMaps().
|
private |
Material factory instance.
Definition at line 123 of file CbmGenerateMaterialMaps.h.
Referenced by Init().
|
private |
Output file name.
Definition at line 121 of file CbmGenerateMaterialMaps.h.
Referenced by SetOutputName(), and WriteMaterialMaps().
|
private |
User configuration file.
Definition at line 120 of file CbmGenerateMaterialMaps.h.
Referenced by Init(), and SetUserConfig().
|
private |
z-coordinate of the target center
Definition at line 125 of file CbmGenerateMaterialMaps.h.
Referenced by Init(), and WriteMaterialMaps().
|
staticconstexprprivate |
Offset from station boarders [scale].
Definition at line 117 of file CbmGenerateMaterialMaps.h.
|
staticconstexprprivate |
Definition at line 116 of file CbmGenerateMaterialMaps.h.
Referenced by Init().