CbmRoot
Loading...
Searching...
No Matches
CbmStsParSensor Class Reference

Constructional parameters of a STS sensor. More...

#include <CbmStsParSensor.h>

Public Member Functions

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

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 42 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 54 of file CbmStsParSensor.h.

Member Function Documentation

◆ ClassDefNV()

CbmStsParSensor::ClassDefNV ( CbmStsParSensor ,
1  )
private

◆ GetClass()

CbmStsSensorClass CbmStsParSensor::GetClass ( ) const
inline

◆ GetPar()

Float_t CbmStsParSensor::GetPar ( UInt_t index) const

◆ 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 38 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 87 of file CbmStsParSensor.h.

References fPar.

Referenced by CbmOnlineParWrite::AddSts(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), and CbmStsDigitize::SetGlobalDefaults().

◆ ToString()

std::string CbmStsParSensor::ToString ( ) const

Info to string.

Definition at line 43 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 98 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 99 of file CbmStsParSensor.h.

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


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