CbmRoot
|
A geometry layer in the target region. More...
#include <KfTarget.h>
Public Member Functions | |
Target ()=default | |
Default constructor. | |
Target (double x, double y, double z, double dz, double r) | |
Constructor from parameters. | |
template<typename I > | |
Target (const Target< I > &other) | |
Copy constructor. | |
~Target ()=default | |
Destructor. | |
Target & | operator= (const Target &other)=default |
Copy assignment operator. | |
const T & | GetX () const |
Gets x-coordinate of the nominal target center. | |
const T & | GetY () const |
Gets y-coordinate of the nominal target center. | |
const T & | GetZ () const |
Gets z-coordinate of the nominal target center. | |
const T & | GetDz () const |
Gets target half-thickness. | |
const T & | GetR () const |
Gets transverse size of target. | |
const MaterialMap & | GetMaterial () const |
Gets material map. | |
void | SetMaterial (const MaterialMap &material) |
Sets material map. | |
void | SetMaterial (MaterialMap &&material) |
Sets material map (move semantics) | |
void | SetX (const T &x) |
Sets x-coordinate of the nominal target center. | |
void | SetY (const T &y) |
Sets y-coordinate of the nominal target center. | |
void | SetZ (const T &z) |
Sets x-coordinate of the nominal target center. | |
void | SetDz (const T &dz) |
Sets target half-thickness. | |
void | SetR (const T &r) |
Sets target transverse size. | |
std::string | ToString (int indentLevel=0, int vebose=1) const |
String representation of the class. | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
MaterialMap | fMaterial {} |
Material map in the target region. | |
T | fX {defs::Undef<T>} |
x-coordinate of the nominal target center [cm] | |
T | fY {defs::Undef<T>} |
y-coordinate of the nominal target center [cm] | |
T | fZ {defs::Undef<T>} |
z-coordinate of the nominal target center [cm] | |
T | fDz {defs::Undef<T>} |
Half-thickness of the target [cm]. | |
T | fR {defs::Undef<T>} |
Half-thickness of the target [cm]. | |
Friends | |
template<typename I > | |
class | Target |
class | boost::serialization::access |
Serialization method. | |
A geometry layer in the target region.
T | Underlying floating-point type |
Definition at line 25 of file KfTarget.h.
|
default |
Default constructor.
Target::Target | ( | double | x, |
double | y, | ||
double | z, | ||
double | dz, | ||
double | r ) |
Constructor from parameters.
x | x-coordinate of the nominal target center [cm] |
y | y-coordinate of the nominal target center [cm] |
z | z-coordinate of the nominal target center [cm] |
dz | half-thickness of the target [cm] |
r | size of target |
Definition at line 20 of file KfTarget.cxx.
|
inline |
Copy constructor.
I | Underlying floating-point type of the source |
Definition at line 44 of file KfTarget.h.
|
default |
Destructor.
|
inline |
Gets target half-thickness.
Definition at line 70 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::Init().
|
inline |
Gets material map.
Definition at line 76 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::StoreMaterial().
|
inline |
Gets transverse size of target.
Definition at line 73 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::Init().
|
inline |
Gets x-coordinate of the nominal target center.
Definition at line 61 of file KfTarget.h.
|
inline |
Gets y-coordinate of the nominal target center.
Definition at line 64 of file KfTarget.h.
|
inline |
Gets z-coordinate of the nominal target center.
Definition at line 67 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::Init().
|
default |
Copy assignment operator.
|
inlineprivate |
Definition at line 115 of file KfTarget.h.
|
inline |
Sets target half-thickness.
dz | half-thickness [cm] |
Definition at line 100 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::SetTargetProperty().
void Target::SetMaterial | ( | const MaterialMap & | material | ) |
Sets material map.
material | Material map |
Definition at line 32 of file KfTarget.cxx.
References cbm::algo::kf::MaterialMap::IsUndefined().
Referenced by cbm::algo::kf::SetupBuilder::Init(), and cbm::algo::kf::SetupBuilder::LoadMaterial().
void Target::SetMaterial | ( | MaterialMap && | material | ) |
Sets material map (move semantics)
material | Material map |
Definition at line 43 of file KfTarget.cxx.
|
inline |
Sets target transverse size.
Transverse size of target [cm]
Definition at line 104 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::SetTargetProperty().
|
inline |
Sets x-coordinate of the nominal target center.
x | x-coordinate [cm] |
Definition at line 88 of file KfTarget.h.
References x.
Referenced by cbm::algo::kf::SetupBuilder::SetTargetProperty().
|
inline |
Sets y-coordinate of the nominal target center.
y | y-coordinate [cm] |
Definition at line 92 of file KfTarget.h.
References y.
Referenced by cbm::algo::kf::SetupBuilder::SetTargetProperty().
|
inline |
Sets x-coordinate of the nominal target center.
z | x-coordinate [cm] |
Definition at line 96 of file KfTarget.h.
Referenced by cbm::algo::kf::SetupBuilder::SetTargetProperty().
std::string Target::ToString | ( | int | indentLevel = 0, |
int | vebose = 1 ) const |
String representation of the class.
indentLevel | Indent level of the string output |
verbose | Verbosity level |
Definition at line 54 of file KfTarget.cxx.
References cbm::algo::kf::utils::simd::Cast().
|
friend |
Serialization method.
Definition at line 113 of file KfTarget.h.
Definition at line 27 of file KfTarget.h.
|
private |
Half-thickness of the target [cm].
Definition at line 129 of file KfTarget.h.
|
private |
Material map in the target region.
Definition at line 125 of file KfTarget.h.
|
private |
Half-thickness of the target [cm].
Definition at line 130 of file KfTarget.h.
|
private |
x-coordinate of the nominal target center [cm]
Definition at line 126 of file KfTarget.h.
|
private |
y-coordinate of the nominal target center [cm]
Definition at line 127 of file KfTarget.h.
|
private |
z-coordinate of the nominal target center [cm]
Definition at line 128 of file KfTarget.h.