CbmRoot
CbmStsParSensor Class Reference

Constructional parameters of a STS sensor. More...

#include <CbmStsParSensor.h>

Public Member Functions

 CbmStsParSensor (CbmStsSensorClass sClass=CbmStsSensorClass::kDssdStereo)
 Constructor. More...
 
 ~CbmStsParSensor ()
 Destructor. More...
 
CbmStsSensorClass GetClass () const
 Get the sensor class. More...
 
Float_t GetPar (UInt_t index) const
 Get a parameter. More...
 
Int_t GetParInt (UInt_t index) const
 Get the nearest integer value of a parameter. More...
 
void SetPar (UInt_t index, Float_t value)
 Set a parameter. More...
 
std::string ToString () const
 Info to string. More...
 

Private Member Functions

 ClassDefNV (CbmStsParSensor, 1)
 

Private Attributes

CbmStsSensorClass fClass = CbmStsSensorClass::kUnknown
 
std::array< float, NPARAMSfPar {{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}}
 

Detailed Description

Constructional parameters of a STS sensor.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
23.03.2020

This class represents the internal design parameters of a sensor in the STS. The meaning of the parameters depends on the sensor class. For DSSD classes (stereo and ortho), the parameters describe:

  • 00 geometrical extension in x [cm]
  • 01 geometrical extension in y [cm]
  • 02 geometrical extension in z [cm]
  • 03 size of active area in y [cm]
  • 04 number of strips front side
  • 05 number of strips back side
  • 06 strip pitch front side [cm]
  • 07 strip pitch back side [cm]
  • 08 stereo angle front side [deg]; is zero for DssdOrtho
  • 09 stereo angle back side [deg]; is 90 for DssdOrtho

Definition at line 38 of file CbmStsParSensor.h.

Constructor & Destructor Documentation

◆ CbmStsParSensor()

CbmStsParSensor::CbmStsParSensor ( CbmStsSensorClass  sClass = CbmStsSensorClass::kDssdStereo)

Constructor.

Parameters
nameParameter set name
titleParameter set title
contextParameter context

◆ ~CbmStsParSensor()

CbmStsParSensor::~CbmStsParSensor ( )
inline

Destructor.

Definition at line 50 of file CbmStsParSensor.h.

Member Function Documentation

◆ ClassDefNV()

CbmStsParSensor::ClassDefNV ( CbmStsParSensor  ,
 
)
private

◆ GetClass()

CbmStsSensorClass CbmStsParSensor::GetClass ( ) const
inline

◆ GetPar()

Float_t CbmStsParSensor::GetPar ( UInt_t  index) const

Get a parameter.

Parameters
indexParameter index
Returns
Parameter value

Returns zero if index is out of range

Definition at line 22 of file CbmStsParSensor.cxx.

References fPar.

Referenced by CbmStsSimSensorFactory::CreateSensor(), GetParInt(), CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), CbmStsRecoModule::Init(), and CbmStsDigitize::InitParams().

◆ GetParInt()

Int_t CbmStsParSensor::GetParInt ( UInt_t  index) const

Get the nearest integer value of a parameter.

Parameters
indexParameter index
Returns
Nearest integer to parameter value

Returns zero if index is out of range

Definition at line 31 of file CbmStsParSensor.cxx.

References GetPar().

Referenced by CbmStsSimSensorFactory::CreateSensor(), and CbmStsRecoModule::Init().

◆ SetPar()

void CbmStsParSensor::SetPar ( UInt_t  index,
Float_t  value 
)
inline

Set a parameter.

Parameters
indexParameter index
valueParameter value

No action if index is out of range.

Definition at line 83 of file CbmStsParSensor.h.

References fPar.

Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitize::SetGlobalDefaults().

◆ ToString()

std::string CbmStsParSensor::ToString ( ) const

Info to string.

Definition at line 38 of file CbmStsParSensor.cxx.

References fClass, fPar, kDssdOrtho, and kDssdStereo.

Referenced by CbmStsParSetSensor::ToString().

Member Data Documentation

◆ fClass

CbmStsSensorClass CbmStsParSensor::fClass = CbmStsSensorClass::kUnknown
private

Definition at line 93 of file CbmStsParSensor.h.

Referenced by GetClass(), and ToString().

◆ fPar

std::array<float, NPARAMS> CbmStsParSensor::fPar {{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}}
private

Definition at line 94 of file CbmStsParSensor.h.

Referenced by GetPar(), SetPar(), and ToString().


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