CbmRoot
|
Class representing an instance of a readout unit in the CBM-STS. More...
#include <CbmStsModule.h>
Public Member Functions | |
CbmStsModule (UInt_t address=0, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr) | |
Standard constructor. More... | |
virtual | ~CbmStsModule () |
Destructor. More... | |
const CbmStsParModule * | GetParameters () const |
Module parameters. More... | |
void | SetParameters (const CbmStsParModule &par) |
Set module parameters. More... | |
std::string | ToString () const |
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 |
void | SetMother (CbmStsElement *mother) |
virtual void | Print (Option_t *opt="") const |
Static Public Member Functions | |
static Int_t | GetAddressFromName (TString name) |
Get the address from the module name (static) More... | |
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 | |
virtual void | InitDaughters () |
Initialise daughters from geometry. More... | |
ClassDef (CbmStsModule, 3) | |
Module parameters. More... | |
Private Attributes | |
const CbmStsParModule * | fParams = nullptr |
Class representing an instance of a readout unit in the CBM-STS.
The StsModule is the read-out unit in the CBM STS. It consists of one sensor or two or more daisy-chained sensors (CbmStsSensor), the analogue cable and the read-out electronics.
Definition at line 31 of file CbmStsModule.h.
CbmStsModule::CbmStsModule | ( | UInt_t | address = 0 , |
TGeoPhysicalNode * | node = nullptr , |
||
CbmStsElement * | mother = nullptr |
||
) |
Standard constructor.
address | Unique element address |
node | Geometry node |
mother | Mother element |
Definition at line 26 of file CbmStsModule.cxx.
|
virtual |
Destructor.
Definition at line 34 of file CbmStsModule.cxx.
|
private |
Module parameters.
|
protectedinherited |
Construct the name of the element
Definition at line 54 of file CbmStsElement.cxx.
References CbmStsElement::fAddress, CbmStsElement::fMother, CbmStsAddress::GetElementId(), CbmStsElement::GetLevel(), kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, kStsSystem, and kStsUnit.
Referenced by CbmStsElement::CbmStsElement(), and CbmStsSensor::SetAddress().
|
staticinherited |
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.
|
inlineinherited |
Get unique address
Definition at line 65 of file CbmStsElement.h.
References CbmStsElement::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().
|
static |
Get the address from the module name (static)
name | Name of module @value Unique element address |
Definition at line 39 of file CbmStsModule.cxx.
References CbmStsAddress::GetAddress().
|
inherited |
Get a daughter element
index | Index of daughter element |
Definition at line 120 of file CbmStsElement.cxx.
References CbmStsElement::fDaughters, and CbmStsElement::GetNofDaughters().
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), CbmStsSetup::GetElement(), CbmStsElement::GetNofElements(), CbmStsDigitizeQa::Init(), CbmStsSetup::Init(), CbmStsRecoModule::Init(), CbmStsMC::Initialize(), CbmStsElement::Print(), and CbmStsDigitizeQa::ProcessAngles().
|
inlineinherited |
Get the index within the mother element
Definition at line 77 of file CbmStsElement.h.
References CbmStsElement::fAddress, CbmStsElement::fLevel, and CbmStsAddress::GetElementId().
Referenced by CbmStsSetup::CreateStations().
|
inlineinherited |
Get the element level
Definition at line 85 of file CbmStsElement.h.
References CbmStsElement::fLevel.
Referenced by CbmStsStation::AddLadder(), and CbmStsElement::ConstructName().
|
inlineinherited |
Get the mother element
Definition at line 89 of file CbmStsElement.h.
References CbmStsElement::fMother.
Referenced by CbmStsDigitize::InitSensors().
|
inlineinherited |
Get number of daughter elements
Definition at line 95 of file CbmStsElement.h.
References CbmStsElement::fDaughters.
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), CbmStsElement::GetDaughter(), CbmStsElement::GetNofElements(), CbmStsDigitizeQa::Init(), CbmKF::Init(), CbmStsSetup::Init(), CbmStsRecoModule::Init(), InitDaughters(), CbmStsElement::InitDaughters(), CbmStsMC::Initialize(), CbmStsElement::Print(), and CbmStsDigitizeQa::ProcessAngles().
|
inherited |
Get number of elements at given level
level | Element level (see enum EStsElementLevel) |
Definition at line 128 of file CbmStsElement.cxx.
References CbmStsElement::fLevel, CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), and CbmStsElement::GetNofElements().
Referenced by CbmStsElement::GetNofElements(), and CbmStsSetup::Init().
|
inline |
Module parameters.
Definition at line 58 of file CbmStsModule.h.
References fParams.
Referenced by CbmStsDigitizeQa::Finish(), CbmStsDigitizeQa::Init(), and CbmStsDigitizeQa::ProcessDigisAndPoints().
|
inlineinherited |
Definition at line 106 of file CbmStsElement.h.
References CbmStsElement::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().
|
privatevirtual |
Initialise daughters from geometry.
Reimplemented from CbmStsElement.
Definition at line 65 of file CbmStsModule.cxx.
References CbmStsElement::fAddress, CbmStsElement::fDaughters, CbmStsElement::fNode, CbmStsElement::GetNofDaughters(), kStsSensor, and CbmStsAddress::SetElementId().
|
virtualinherited |
Definition at line 198 of file CbmStsElement.cxx.
References CbmStsElement::fAddress, CbmStsElement::fNode, CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), and CbmStsElement::Print().
Referenced by CbmStsElement::Print().
|
protectedinherited |
Set the element level from integer Protection against being out of range.
level | Element level |
Definition at line 211 of file CbmStsElement.cxx.
References CbmStsElement::fLevel, kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, kStsSystem, and kStsUnit.
Referenced by CbmStsElement::CbmStsElement().
|
inlineinherited |
Set the mother element
Pointer | to mother element |
Definition at line 116 of file CbmStsElement.h.
References CbmStsElement::fMother.
|
inline |
Set module parameters.
par | Module parameter object |
Definition at line 64 of file CbmStsModule.h.
References fParams.
string CbmStsModule::ToString | ( | ) | const |
String output
Definition at line 100 of file CbmStsModule.cxx.
References CbmStsElement::fAddress, and CbmStsAddress::ToString().
Referenced by CbmStsRecoModule::ToString().
|
protectedinherited |
Unique element address.
Definition at line 124 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetAddress(), CbmStsSetup::GetElement(), CbmStsElement::GetIndex(), CbmStsSensor::GetSensorId(), CbmStsSetup::Init(), InitDaughters(), CbmStsElement::InitDaughters(), CbmStsElement::Print(), CbmStsSensor::SetAddress(), ToString(), and CbmStsSensor::ToString().
|
protectedinherited |
Array of daughters.
Definition at line 127 of file CbmStsElement.h.
Referenced by CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), InitDaughters(), and CbmStsElement::InitDaughters().
|
protectedinherited |
Level in hierarchy.
Definition at line 125 of file CbmStsElement.h.
Referenced by CbmStsElement::CbmStsElement(), CbmStsElement::GetIndex(), CbmStsElement::GetLevel(), CbmStsElement::GetNofElements(), CbmStsElement::InitDaughters(), and CbmStsElement::SetLevel().
|
protectedinherited |
Mother element.
Definition at line 128 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetMother(), and CbmStsElement::SetMother().
|
protectedinherited |
Pointer to geometry.
Definition at line 126 of file CbmStsElement.h.
Referenced by CbmStsSensor::GetNode(), CbmStsElement::GetPnode(), InitDaughters(), CbmStsElement::InitDaughters(), CbmStsElement::Print(), CbmStsSetup::ReadGeometry(), and CbmStsSensor::SetNode().
|
private |
Definition at line 77 of file CbmStsModule.h.
Referenced by GetParameters(), and SetParameters().