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. | |
virtual | ~CbmStsModule () |
Destructor. | |
const CbmStsParModule * | GetParameters () const |
Module parameters. | |
void | SetParameters (const CbmStsParModule &par) |
Set module parameters. | |
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) | |
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. | |
EStsElementLevel | fLevel |
Level in hierarchy. | |
TGeoPhysicalNode * | fNode |
Pointer to geometry. | |
std::vector< CbmStsElement * > | fDaughters |
Array of daughters. | |
CbmStsElement * | fMother |
Mother element. | |
Private Member Functions | |
virtual void | InitDaughters () |
Initialise daughters from geometry. | |
ClassDef (CbmStsModule, 3) | |
Module parameters. | |
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 35 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 31 of file CbmStsModule.cxx.
|
virtual |
Destructor.
Definition at line 39 of file CbmStsModule.cxx.
|
private |
Module parameters.
|
protectedinherited |
Construct the name of the element
Definition at line 58 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 95 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(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSimModule::Digitize(), CbmStsRecoModule::FindClusters(), CbmStsRecoModule::FindHits(), CbmStsSimSensor::GetSensorId(), CbmStsDigitizeQa::Init(), CbmStsSetup::Init(), CbmStsMC::Initialize(), CbmStsDigitize::InitModules(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), and CbmStsDigitize::InitSensors().
|
static |
Get the address from the module name (static)
name | Name of module @value Unique element address |
Definition at line 44 of file CbmStsModule.cxx.
References CbmStsAddress::GetAddress().
|
inherited |
Get a daughter element
index | Index of daughter element |
Definition at line 126 of file CbmStsElement.cxx.
References CbmStsElement::fDaughters, and CbmStsElement::GetNofDaughters().
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), CbmStsSetup::GetElement(), CbmStsElement::GetNofElements(), CbmStsDigitizeQa::Init(), CbmStsRecoModule::Init(), CbmStsSetup::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 83 of file CbmStsElement.h.
References CbmStsElement::fLevel.
Referenced by CbmStsStation::AddLadder(), and CbmStsElement::ConstructName().
|
inlineinherited |
Get the mother element
Definition at line 87 of file CbmStsElement.h.
References CbmStsElement::fMother.
Referenced by CbmStsDigitize::InitSensors().
|
inlineinherited |
Get number of daughter elements
Definition at line 93 of file CbmStsElement.h.
References CbmStsElement::fDaughters.
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSetup::CreateStations(), CbmStsDigitizeQa::Finish(), CbmStsElement::GetDaughter(), CbmStsElement::GetNofElements(), CbmStsDigitizeQa::Init(), CbmStsRecoModule::Init(), CbmStsSetup::Init(), CbmStsElement::InitDaughters(), 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 135 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 60 of file CbmStsModule.h.
References fParams.
Referenced by CbmStsDigitizeQa::Finish(), CbmStsDigitizeQa::Init(), and CbmStsDigitizeQa::ProcessDigisAndPoints().
|
inlineinherited |
Definition at line 104 of file CbmStsElement.h.
References CbmStsElement::fNode.
Referenced by CbmStsStation::CheckSensorProperties(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSetup::CreateStations(), CbmBbaAlignmentTask::Finish(), CbmStsSetup::GetStationNumber(), CbmStsRecoModule::Init(), CbmStsSimSensorDssdOrtho::Init(), CbmStsSimSensorDssdStereo::Init(), CbmStsMC::Initialize(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), CbmStsDigitize::InitSensors(), CbmStsSimSensor::ProcessPoint(), CbmStsSimSensorDssdOrtho::SetParameters(), CbmStsSimSensorDssdOrtho::ToString(), and CbmStsSimSensorDssdStereo::ToString().
|
privatevirtual |
Initialise daughters from geometry.
Reimplemented from CbmStsElement.
Definition at line 71 of file CbmStsModule.cxx.
References CbmStsElement::fAddress, CbmStsElement::fDaughters, CbmStsElement::fNode, CbmStsElement::GetNofDaughters(), kStsSensor, and CbmStsAddress::SetElementId().
|
virtualinherited |
Definition at line 200 of file CbmStsElement.cxx.
References CbmStsElement::fAddress, CbmStsElement::fNode, CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), and CbmStsElement::Print().
Referenced by CbmBbaAlignmentTask::Finish(), and CbmStsElement::Print().
|
protectedinherited |
Set the element level from integer Protection against being out of range.
level | Element level |
Definition at line 213 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 114 of file CbmStsElement.h.
References CbmStsElement::fMother.
|
inline |
Set module parameters.
par | Module parameter object |
Definition at line 66 of file CbmStsModule.h.
References fParams.
string CbmStsModule::ToString | ( | ) | const |
String output
Definition at line 106 of file CbmStsModule.cxx.
References CbmStsElement::fAddress, and CbmStsAddress::ToString().
Referenced by CbmStsRecoModule::ToString().
|
protectedinherited |
Unique element address.
Definition at line 122 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetAddress(), CbmStsSetup::GetElement(), CbmStsElement::GetIndex(), CbmStsSensor::GetSensorId(), CbmStsSetup::Init(), CbmStsElement::InitDaughters(), InitDaughters(), CbmStsElement::Print(), CbmStsSensor::SetAddress(), ToString(), and CbmStsSensor::ToString().
|
protectedinherited |
Array of daughters.
Definition at line 125 of file CbmStsElement.h.
Referenced by CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), CbmStsElement::InitDaughters(), and InitDaughters().
|
protectedinherited |
Level in hierarchy.
Definition at line 123 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 126 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetMother(), and CbmStsElement::SetMother().
|
protectedinherited |
Pointer to geometry.
Definition at line 124 of file CbmStsElement.h.
Referenced by CbmStsSensor::GetNode(), CbmStsElement::GetPnode(), CbmStsElement::InitDaughters(), InitDaughters(), CbmStsElement::Print(), CbmStsSetup::ReadGeometry(), CbmStsSetup::ReadGeometry(), and CbmStsSensor::SetNode().
|
private |
Definition at line 79 of file CbmStsModule.h.
Referenced by GetParameters(), and SetParameters().