CbmRoot
|
Class representing an instance of a sensor in the CBM-STS. More...
#include <CbmStsSensor.h>
Public Member Functions | |
CbmStsSensor (UInt_t address=0, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr) | |
virtual | ~CbmStsSensor () |
const CbmStsParSensorCond * | GetConditions () const |
Sensor conditions. More... | |
CbmStsModule * | GetModule () const |
Get mother module. More... | |
TGeoPhysicalNode * | GetNode () const |
const CbmStsParSensor * | GetParams () const |
Sensor parameters. More... | |
Int_t | GetSensorId () const |
Sensor Id within the module. More... | |
void | SetAddress (Int_t address) |
Set sensor address. More... | |
void | SetConditions (const CbmStsParSensorCond *conditions) |
Set the sensor conditions. More... | |
void | SetParameters (const CbmStsParSensor *par) |
Set the sensor parameters. More... | |
void | SetNode (TGeoPhysicalNode *node) |
Set the physical node. More... | |
virtual std::string | ToString () const |
String output. More... | |
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 UInt_t | GetAddressFromName (TString name) |
Get the address from the sensor name (static) More... | |
static TString | ConstructName (Int_t address, EStsElementLevel level) |
Protected Member Functions | |
CbmStsSensor (const CbmStsSensor &)=delete | |
Copy constructor (disabled) More... | |
CbmStsSensor & | operator= (const CbmStsSensor &)=delete |
Copy assignment constructor (disabled) More... | |
ClassDef (CbmStsSensor, 2) | |
void | ConstructName () |
void | SetLevel (Int_t level) |
Protected Attributes | |
const CbmStsParSensor * | fParams = nullptr |
Sensor parameters. More... | |
CbmStsParSensorCond * | fConditions = nullptr |
Operating conditions. More... | |
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... | |
Class representing an instance of a sensor in the CBM-STS.
The sensor is the smallest geometric element in the STS setup. It is the daughter node of a module, which may contain one sensor or several daisy-chained ones. The sensor class represents the physical node through its member fNode,
Definition at line 38 of file CbmStsSensor.h.
CbmStsSensor::CbmStsSensor | ( | UInt_t | address = 0 , |
TGeoPhysicalNode * | node = nullptr , |
||
CbmStsElement * | mother = nullptr |
||
) |
Constructor
address | Unique element address |
node | Pointer to geometry node |
mother | Pointer to mother element (module) |
Definition at line 11 of file CbmStsSensor.cxx.
|
inlinevirtual |
Destructor
Definition at line 52 of file CbmStsSensor.h.
|
protecteddelete |
Copy constructor (disabled)
|
protected |
|
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 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 sensor name (static)
name | Name of sensor @value Unique element address |
Definition at line 18 of file CbmStsSensor.cxx.
References CbmStsAddress::GetAddress().
|
inline |
Sensor conditions.
Definition at line 65 of file CbmStsSensor.h.
References fConditions.
|
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().
CbmStsModule* CbmStsSensor::GetModule | ( | ) | const |
Get mother module.
|
inlineinherited |
Get the mother element
Definition at line 89 of file CbmStsElement.h.
References CbmStsElement::fMother.
Referenced by CbmStsDigitize::InitSensors().
|
inline |
Get physical node
Definition at line 77 of file CbmStsSensor.h.
References CbmStsElement::fNode.
Referenced by CbmStsStation::Init().
|
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(), CbmStsModule::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 |
Sensor parameters.
Definition at line 83 of file CbmStsSensor.h.
References fParams.
Referenced by CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), and CbmStsStation::ToString().
|
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().
|
inline |
Sensor Id within the module.
Several sensor can be connected to a module. This is the running number, starting wth 0. The sensor with ID 0 is the topmost one.
Definition at line 93 of file CbmStsSensor.h.
References CbmStsElement::fAddress, CbmStsAddress::GetElementId(), and kStsSensor.
|
virtualinherited |
Initialise daughters from geometry
Reimplemented in CbmStsModule.
Definition at line 145 of file CbmStsElement.cxx.
References CbmStsElement::CbmStsElement(), CbmStsElement::fAddress, CbmStsElement::fDaughters, CbmStsElement::fLevel, CbmStsElement::fNode, CbmStsSetup::GetLevelName(), CbmStsElement::GetNofDaughters(), CbmStsElement::InitDaughters(), CbmStsSetup::Instance(), kStsHalfLadder, kStsSensor, and CbmStsAddress::SetElementId().
Referenced by CbmStsElement::InitDaughters(), and CbmStsSetup::ReadGeometry().
|
protecteddelete |
Copy assignment constructor (disabled)
|
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().
|
inline |
Set sensor address.
address | STS element address |
Definition at line 101 of file CbmStsSensor.h.
References CbmStsElement::ConstructName(), CbmStsElement::fAddress, and kStsSensor.
|
inline |
Set the sensor conditions.
conditions | Sensor condition object |
The operating conditions are e.g. temperature, voltages and capacitances.
Definition at line 113 of file CbmStsSensor.h.
References fConditions.
|
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 the physical node.
node | Pointer to associated TGeoPhysicalNode object |
Definition at line 134 of file CbmStsSensor.h.
References CbmStsElement::fNode.
|
inline |
Set the sensor parameters.
conditions | Sensor parameter object |
The internal sensor parameters are e.g. strip pitch, stereo angle, and other constructional quantities, which are not described on the geometry level.
Definition at line 128 of file CbmStsSensor.h.
References fParams.
|
virtual |
String output.
Definition at line 32 of file CbmStsSensor.cxx.
References CbmStsElement::fAddress, and CbmStsAddress::ToString().
|
protectedinherited |
Unique element address.
Definition at line 124 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetAddress(), CbmStsSetup::GetElement(), CbmStsElement::GetIndex(), GetSensorId(), CbmStsSetup::Init(), CbmStsModule::InitDaughters(), CbmStsElement::InitDaughters(), CbmStsElement::Print(), SetAddress(), CbmStsModule::ToString(), and ToString().
|
protected |
Operating conditions.
Definition at line 143 of file CbmStsSensor.h.
Referenced by GetConditions(), and SetConditions().
|
protectedinherited |
Array of daughters.
Definition at line 127 of file CbmStsElement.h.
Referenced by CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), CbmStsModule::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 GetNode(), CbmStsElement::GetPnode(), CbmStsModule::InitDaughters(), CbmStsElement::InitDaughters(), CbmStsElement::Print(), CbmStsSetup::ReadGeometry(), and SetNode().
|
protected |
Sensor parameters.
Definition at line 142 of file CbmStsSensor.h.
Referenced by GetParams(), and SetParameters().