CbmRoot
|
Class representing an element of the STS setup. More...
#include <CbmStsElement.h>
Public Member Functions | |
CbmStsElement () | |
CbmStsElement (Int_t address, Int_t level, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr) | |
virtual | ~CbmStsElement () |
Int_t | GetAddress () const |
CbmStsElement * | GetDaughter (Int_t index) const |
Int_t | GetIndex () const |
EStsElementLevel | GetLevel () const |
CbmStsElement * | GetMother () const |
Int_t | GetNofDaughters () const |
Int_t | GetNofElements (Int_t level) const |
TGeoPhysicalNode * | GetPnode () const |
virtual void | InitDaughters () |
void | SetMother (CbmStsElement *mother) |
virtual void | Print (Option_t *opt="") const |
Static Public Member Functions | |
static TString | ConstructName (Int_t address, EStsElementLevel level) |
Protected Member Functions | |
void | ConstructName () |
void | SetLevel (Int_t level) |
Protected Attributes | |
Int_t | fAddress |
Unique element address. More... | |
EStsElementLevel | fLevel |
Level in hierarchy. More... | |
TGeoPhysicalNode * | fNode |
Pointer to geometry. More... | |
std::vector< CbmStsElement * > | fDaughters |
Array of daughters. More... | |
CbmStsElement * | fMother |
Mother element. More... | |
Private Member Functions | |
CbmStsElement (const CbmStsElement &)=delete | |
CbmStsElement & | operator= (const CbmStsElement &)=delete |
ClassDef (CbmStsElement, 2) | |
Class representing an element of the STS setup.
A CbmStsElement represents an element in the STS setup hierarchy (e.g., station, ladder, module,...). It has a unique address, a level (enum CbmStsElementLevel), a pointer to a TGeoPhysicalNode and an array of daughter elements. It is thus an alignable object.
Definition at line 32 of file CbmStsElement.h.
CbmStsElement::CbmStsElement | ( | ) |
CbmStsElement::CbmStsElement | ( | Int_t | address, |
Int_t | level, | ||
TGeoPhysicalNode * | node = nullptr , |
||
CbmStsElement * | mother = nullptr |
||
) |
Standard constructor
address | Unique element address |
level | Element level |
node | Pointer to geometry node |
mother | Pointer to mother element |
Definition at line 37 of file CbmStsElement.cxx.
References ConstructName(), fLevel, and SetLevel().
|
inlinevirtual |
Destructor
Definition at line 52 of file CbmStsElement.h.
|
privatedelete |
|
private |
|
protected |
Construct the name of the element
Definition at line 54 of file CbmStsElement.cxx.
References fAddress, fMother, CbmStsAddress::GetElementId(), GetLevel(), kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, kStsSystem, and kStsUnit.
Referenced by CbmStsElement(), and CbmStsSensor::SetAddress().
|
static |
Construct the element name from the address (static)
address | Unique element address |
level | Element level (unit, ladder, etc.) |
Definition at line 90 of file CbmStsElement.cxx.
References CbmStsAddress::GetElementId(), kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, and kStsUnit.
|
inline |
Get unique address
Definition at line 65 of file CbmStsElement.h.
References fAddress.
Referenced by CbmStsRecoModule::AddDigiToQueue(), CbmRecoSts::CreateModules(), CbmStsSimModule::Digitize(), CbmStsSimSensor::GetSensorId(), CbmStsDigitizeQa::Init(), CbmStsSetup::Init(), CbmStsMC::Initialize(), CbmStsDigitize::InitModules(), CbmStsDigitize::InitParams(), CbmStsDigitize::InitSensors(), and CbmStsRecoModule::Reconstruct().
CbmStsElement * CbmStsElement::GetDaughter | ( | Int_t | index | ) | const |
Get a daughter element
index | Index of daughter element |
Definition at line 120 of file CbmStsElement.cxx.
References fDaughters, and GetNofDaughters().
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), CbmStsSetup::GetElement(), GetNofElements(), CbmStsDigitizeQa::Init(), CbmStsSetup::Init(), CbmStsRecoModule::Init(), CbmStsMC::Initialize(), Print(), and CbmStsDigitizeQa::ProcessAngles().
|
inline |
Get the index within the mother element
Definition at line 77 of file CbmStsElement.h.
References fAddress, fLevel, and CbmStsAddress::GetElementId().
Referenced by CbmStsSetup::CreateStations().
|
inline |
Get the element level
Definition at line 85 of file CbmStsElement.h.
References fLevel.
Referenced by CbmStsStation::AddLadder(), and ConstructName().
|
inline |
Get the mother element
Definition at line 89 of file CbmStsElement.h.
References fMother.
Referenced by CbmStsDigitize::InitSensors().
|
inline |
Get number of daughter elements
Definition at line 95 of file CbmStsElement.h.
References fDaughters.
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), GetDaughter(), GetNofElements(), CbmStsDigitizeQa::Init(), CbmKF::Init(), CbmStsSetup::Init(), CbmStsRecoModule::Init(), CbmStsModule::InitDaughters(), InitDaughters(), CbmStsMC::Initialize(), Print(), and CbmStsDigitizeQa::ProcessAngles().
Int_t CbmStsElement::GetNofElements | ( | Int_t | level | ) | const |
Get number of elements at given level
level | Element level (see enum EStsElementLevel) |
Definition at line 128 of file CbmStsElement.cxx.
References fLevel, GetDaughter(), GetNofDaughters(), and GetNofElements().
Referenced by GetNofElements(), and CbmStsSetup::Init().
|
inline |
Definition at line 106 of file CbmStsElement.h.
References fNode.
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmStsSetup::CreateStations(), CbmStsSetup::GetStationNumber(), CbmStsSimSensorDssdOrtho::Init(), CbmStsSimSensorDssdStereo::Init(), CbmStsRecoModule::Init(), CbmStsMC::Initialize(), CbmStsDigitize::InitParams(), CbmStsDigitize::InitSensors(), CbmStsSimSensor::ProcessPoint(), CbmStsSimSensorDssdOrtho::SetParameters(), CbmStsSimSensorDssdOrtho::ToString(), and CbmStsSimSensorDssdStereo::ToString().
|
virtual |
Initialise daughters from geometry
Reimplemented in CbmStsModule.
Definition at line 145 of file CbmStsElement.cxx.
References CbmStsElement(), fAddress, fDaughters, fLevel, fNode, CbmStsSetup::GetLevelName(), GetNofDaughters(), InitDaughters(), CbmStsSetup::Instance(), kStsHalfLadder, kStsSensor, and CbmStsAddress::SetElementId().
Referenced by InitDaughters(), and CbmStsSetup::ReadGeometry().
|
privatedelete |
|
virtual |
Definition at line 198 of file CbmStsElement.cxx.
References fAddress, fNode, GetDaughter(), GetNofDaughters(), and Print().
Referenced by Print().
|
protected |
Set the element level from integer Protection against being out of range.
level | Element level |
Definition at line 211 of file CbmStsElement.cxx.
References fLevel, kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, kStsSystem, and kStsUnit.
Referenced by CbmStsElement().
|
inline |
Set the mother element
Pointer | to mother element |
Definition at line 116 of file CbmStsElement.h.
References fMother.
|
protected |
Unique element address.
Definition at line 124 of file CbmStsElement.h.
Referenced by ConstructName(), GetAddress(), CbmStsSetup::GetElement(), GetIndex(), CbmStsSensor::GetSensorId(), CbmStsSetup::Init(), CbmStsModule::InitDaughters(), InitDaughters(), Print(), CbmStsSensor::SetAddress(), CbmStsModule::ToString(), and CbmStsSensor::ToString().
|
protected |
Array of daughters.
Definition at line 127 of file CbmStsElement.h.
Referenced by GetDaughter(), GetNofDaughters(), CbmStsModule::InitDaughters(), and InitDaughters().
|
protected |
Level in hierarchy.
Definition at line 125 of file CbmStsElement.h.
Referenced by CbmStsElement(), GetIndex(), GetLevel(), GetNofElements(), InitDaughters(), and SetLevel().
|
protected |
Mother element.
Definition at line 128 of file CbmStsElement.h.
Referenced by ConstructName(), GetMother(), and SetMother().
|
protected |
Pointer to geometry.
Definition at line 126 of file CbmStsElement.h.
Referenced by CbmStsSensor::GetNode(), GetPnode(), CbmStsModule::InitDaughters(), InitDaughters(), Print(), CbmStsSetup::ReadGeometry(), and CbmStsSensor::SetNode().