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. | |
CbmStsModule * | GetModule () const |
Get mother module. | |
TGeoPhysicalNode * | GetNode () const |
const CbmStsParSensor * | GetParams () const |
Sensor parameters. | |
Int_t | GetSensorId () const |
Sensor Id within the module. | |
void | SetAddress (Int_t address) |
Set sensor address. | |
void | SetConditions (const CbmStsParSensorCond *conditions) |
Set the sensor conditions. | |
void | SetParameters (const CbmStsParSensor *par) |
Set the sensor parameters. | |
void | SetNode (TGeoPhysicalNode *node) |
Set the physical node. | |
virtual std::string | ToString () const |
String output. | |
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) | |
static TString | ConstructName (Int_t address, EStsElementLevel level) |
Protected Member Functions | |
CbmStsSensor (const CbmStsSensor &)=delete | |
Copy constructor (disabled) | |
CbmStsSensor & | operator= (const CbmStsSensor &)=delete |
Copy assignment constructor (disabled) | |
ClassDef (CbmStsSensor, 2) | |
void | ConstructName () |
void | SetLevel (Int_t level) |
Protected Attributes | |
const CbmStsParSensor * | fParams = nullptr |
Sensor parameters. | |
CbmStsParSensorCond * | fConditions = nullptr |
Operating conditions. | |
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. | |
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 42 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 15 of file CbmStsSensor.cxx.
|
inlinevirtual |
Destructor
Definition at line 54 of file CbmStsSensor.h.
|
protecteddelete |
Copy constructor (disabled)
|
protected |
|
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 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 sensor name (static)
name | Name of sensor @value Unique element address |
Definition at line 22 of file CbmStsSensor.cxx.
References CbmStsAddress::GetAddress().
|
inline |
Sensor conditions.
Definition at line 67 of file CbmStsSensor.h.
References fConditions.
|
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().
CbmStsModule * CbmStsSensor::GetModule | ( | ) | const |
Get mother module.
|
inlineinherited |
Get the mother element
Definition at line 87 of file CbmStsElement.h.
References CbmStsElement::fMother.
Referenced by CbmStsDigitize::InitSensors().
|
inline |
Get physical node
Definition at line 79 of file CbmStsSensor.h.
References CbmStsElement::fNode.
Referenced by CbmStsTrackingInterface::GetStereoAnglesSensor(), and CbmStsStation::Init().
|
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(), CbmStsModule::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 |
Sensor parameters.
Definition at line 85 of file CbmStsSensor.h.
References fParams.
Referenced by CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), CbmStsTrackingInterface::GetStereoAnglesSensor(), and CbmStsStation::ToString().
|
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().
|
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 95 of file CbmStsSensor.h.
References CbmStsElement::fAddress, CbmStsAddress::GetElementId(), and kStsSensor.
|
virtualinherited |
Initialise daughters from geometry
Reimplemented in CbmStsModule.
Definition at line 152 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(), CbmStsSetup::ReadGeometry(), and CbmStsSetup::ReadGeometry().
|
protecteddelete |
Copy assignment constructor (disabled)
|
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().
|
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 114 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 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 the physical node.
node | Pointer to associated TGeoPhysicalNode object |
Definition at line 135 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 129 of file CbmStsSensor.h.
References fParams.
|
virtual |
String output.
Definition at line 37 of file CbmStsSensor.cxx.
References CbmStsElement::fAddress, and CbmStsAddress::ToString().
|
protectedinherited |
Unique element address.
Definition at line 122 of file CbmStsElement.h.
Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetAddress(), CbmStsSetup::GetElement(), CbmStsElement::GetIndex(), GetSensorId(), CbmStsSetup::Init(), CbmStsElement::InitDaughters(), CbmStsModule::InitDaughters(), CbmStsElement::Print(), SetAddress(), CbmStsModule::ToString(), and ToString().
|
protected |
Operating conditions.
Definition at line 144 of file CbmStsSensor.h.
Referenced by GetConditions(), and SetConditions().
|
protectedinherited |
Array of daughters.
Definition at line 125 of file CbmStsElement.h.
Referenced by CbmStsElement::GetDaughter(), CbmStsElement::GetNofDaughters(), CbmStsElement::InitDaughters(), and CbmStsModule::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 GetNode(), CbmStsElement::GetPnode(), CbmStsElement::InitDaughters(), CbmStsModule::InitDaughters(), CbmStsElement::Print(), CbmStsSetup::ReadGeometry(), CbmStsSetup::ReadGeometry(), and SetNode().
|
protected |
Sensor parameters.
Definition at line 143 of file CbmStsSensor.h.
Referenced by GetParams(), and SetParameters().