CbmRoot
CbmStsSensor Class Reference

Class representing an instance of a sensor in the CBM-STS. More...

#include <CbmStsSensor.h>

Inheritance diagram for CbmStsSensor:
[legend]
Collaboration diagram for CbmStsSensor:
[legend]

Public Member Functions

 CbmStsSensor (UInt_t address=0, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr)
 
virtual ~CbmStsSensor ()
 
const CbmStsParSensorCondGetConditions () const
 Sensor conditions. More...
 
CbmStsModuleGetModule () const
 Get mother module. More...
 
TGeoPhysicalNode * GetNode () const
 
const CbmStsParSensorGetParams () 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
 
CbmStsElementGetDaughter (Int_t index) const
 
Int_t GetIndex () const
 
EStsElementLevel GetLevel () const
 
CbmStsElementGetMother () 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...
 
CbmStsSensoroperator= (const CbmStsSensor &)=delete
 Copy assignment constructor (disabled) More...
 
 ClassDef (CbmStsSensor, 2)
 
void ConstructName ()
 
void SetLevel (Int_t level)
 

Protected Attributes

const CbmStsParSensorfParams = nullptr
 Sensor parameters. More...
 
CbmStsParSensorCondfConditions = 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...
 
CbmStsElementfMother
 Mother element. More...
 

Detailed Description

Class representing an instance of a sensor in the CBM-STS.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Version
2.0

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.

Constructor & Destructor Documentation

◆ CbmStsSensor() [1/2]

CbmStsSensor::CbmStsSensor ( UInt_t  address = 0,
TGeoPhysicalNode *  node = nullptr,
CbmStsElement mother = nullptr 
)

Constructor

Parameters
addressUnique element address
nodePointer to geometry node
motherPointer to mother element (module)

Definition at line 11 of file CbmStsSensor.cxx.

◆ ~CbmStsSensor()

virtual CbmStsSensor::~CbmStsSensor ( )
inlinevirtual

Destructor

Definition at line 52 of file CbmStsSensor.h.

◆ CbmStsSensor() [2/2]

CbmStsSensor::CbmStsSensor ( const CbmStsSensor )
protecteddelete

Copy constructor (disabled)

Member Function Documentation

◆ ClassDef()

CbmStsSensor::ClassDef ( CbmStsSensor  ,
 
)
protected

◆ ConstructName() [1/2]

void CbmStsElement::ConstructName ( )
protectedinherited

◆ ConstructName() [2/2]

TString CbmStsElement::ConstructName ( Int_t  address,
EStsElementLevel  level 
)
staticinherited

Construct the element name from the address (static)

Parameters
addressUnique element address
levelElement level (unit, ladder, etc.)

Definition at line 90 of file CbmStsElement.cxx.

References CbmStsAddress::GetElementId(), kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, and kStsUnit.

◆ GetAddress()

◆ GetAddressFromName()

UInt_t CbmStsSensor::GetAddressFromName ( TString  name)
static

Get the address from the sensor name (static)

Parameters
nameName of sensor @value Unique element address

Definition at line 18 of file CbmStsSensor.cxx.

References CbmStsAddress::GetAddress().

◆ GetConditions()

const CbmStsParSensorCond* CbmStsSensor::GetConditions ( ) const
inline

Sensor conditions.

Returns
Sensor condition object

Definition at line 65 of file CbmStsSensor.h.

References fConditions.

◆ GetDaughter()

◆ GetIndex()

Int_t CbmStsElement::GetIndex ( ) const
inlineinherited

Get the index within the mother element

Returns
Index of element in mother

Definition at line 77 of file CbmStsElement.h.

References CbmStsElement::fAddress, CbmStsElement::fLevel, and CbmStsAddress::GetElementId().

Referenced by CbmStsSetup::CreateStations().

◆ GetLevel()

EStsElementLevel CbmStsElement::GetLevel ( ) const
inlineinherited

Get the element level

Returns
Element level (type enum EStsElementLevel)

Definition at line 85 of file CbmStsElement.h.

References CbmStsElement::fLevel.

Referenced by CbmStsStation::AddLadder(), and CbmStsElement::ConstructName().

◆ GetModule()

CbmStsModule* CbmStsSensor::GetModule ( ) const

Get mother module.

Returns
Module the sensor is connected to

◆ GetMother()

CbmStsElement* CbmStsElement::GetMother ( ) const
inlineinherited

Get the mother element

Definition at line 89 of file CbmStsElement.h.

References CbmStsElement::fMother.

Referenced by CbmStsDigitize::InitSensors().

◆ GetNode()

TGeoPhysicalNode* CbmStsSensor::GetNode ( ) const
inline

Get physical node

Returns
Pointer to TGeoPhysicalNode of sensor

Definition at line 77 of file CbmStsSensor.h.

References CbmStsElement::fNode.

Referenced by CbmStsStation::Init().

◆ GetNofDaughters()

◆ GetNofElements()

Int_t CbmStsElement::GetNofElements ( Int_t  level) const
inherited

Get number of elements at given level

Parameters
levelElement level (see enum EStsElementLevel)
Returns
Number of elements at given level with this element as ancestor

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().

◆ GetParams()

const CbmStsParSensor* CbmStsSensor::GetParams ( ) const
inline

Sensor parameters.

Returns
Sensor parameters object

Definition at line 83 of file CbmStsSensor.h.

References fParams.

Referenced by CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), and CbmStsStation::ToString().

◆ GetPnode()

◆ GetSensorId()

Int_t CbmStsSensor::GetSensorId ( ) const
inline

Sensor Id within the module.

Returns
Sensor ID

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.

◆ InitDaughters()

◆ operator=()

CbmStsSensor& CbmStsSensor::operator= ( const CbmStsSensor )
protecteddelete

Copy assignment constructor (disabled)

◆ Print()

void CbmStsElement::Print ( Option_t *  opt = "") const
virtualinherited

◆ SetAddress()

void CbmStsSensor::SetAddress ( Int_t  address)
inline

Set sensor address.

Parameters
addressSTS element address

Definition at line 101 of file CbmStsSensor.h.

References CbmStsElement::ConstructName(), CbmStsElement::fAddress, and kStsSensor.

◆ SetConditions()

void CbmStsSensor::SetConditions ( const CbmStsParSensorCond conditions)
inline

Set the sensor conditions.

Parameters
conditionsSensor condition object

The operating conditions are e.g. temperature, voltages and capacitances.

Definition at line 113 of file CbmStsSensor.h.

References fConditions.

◆ SetLevel()

void CbmStsElement::SetLevel ( Int_t  level)
protectedinherited

Set the element level from integer Protection against being out of range.

Parameters
levelElement level

Definition at line 211 of file CbmStsElement.cxx.

References CbmStsElement::fLevel, kStsHalfLadder, kStsLadder, kStsModule, kStsSensor, kStsSystem, and kStsUnit.

Referenced by CbmStsElement::CbmStsElement().

◆ SetMother()

void CbmStsElement::SetMother ( CbmStsElement mother)
inlineinherited

Set the mother element

Parameters
Pointerto mother element

Definition at line 116 of file CbmStsElement.h.

References CbmStsElement::fMother.

◆ SetNode()

void CbmStsSensor::SetNode ( TGeoPhysicalNode *  node)
inline

Set the physical node.

Parameters
nodePointer to associated TGeoPhysicalNode object

Definition at line 134 of file CbmStsSensor.h.

References CbmStsElement::fNode.

◆ SetParameters()

void CbmStsSensor::SetParameters ( const CbmStsParSensor par)
inline

Set the sensor parameters.

Parameters
conditionsSensor 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.

◆ ToString()

std::string CbmStsSensor::ToString ( ) const
virtual

String output.

Definition at line 32 of file CbmStsSensor.cxx.

References CbmStsElement::fAddress, and CbmStsAddress::ToString().

Member Data Documentation

◆ fAddress

◆ fConditions

CbmStsParSensorCond* CbmStsSensor::fConditions = nullptr
protected

Operating conditions.

Definition at line 143 of file CbmStsSensor.h.

Referenced by GetConditions(), and SetConditions().

◆ fDaughters

std::vector<CbmStsElement*> CbmStsElement::fDaughters
protectedinherited

◆ fLevel

◆ fMother

CbmStsElement* CbmStsElement::fMother
protectedinherited

Mother element.

Definition at line 128 of file CbmStsElement.h.

Referenced by CbmStsElement::ConstructName(), CbmStsElement::GetMother(), and CbmStsElement::SetMother().

◆ fNode

TGeoPhysicalNode* CbmStsElement::fNode
protectedinherited

◆ fParams

const CbmStsParSensor* CbmStsSensor::fParams = nullptr
protected

Sensor parameters.

Definition at line 142 of file CbmStsSensor.h.

Referenced by GetParams(), and SetParameters().


The documentation for this class was generated from the following files: