CbmRoot
CbmStsParModule Class Reference

Parameters for one STS module. More...

#include <CbmStsParModule.h>

Public Member Functions

 CbmStsParModule ()
 Default constructor. More...
 
 CbmStsParModule (UInt_t nChannels, UInt_t nAsicChannels)
 Standard constructor. More...
 
 ~CbmStsParModule ()
 Destructor. More...
 
const CbmStsParAsicGetParAsic (UInt_t channel) const
 ASIC parameters for a given channel. More...
 
const std::vector< CbmStsParAsic > & GetAsicParams () const
 All ASIC parameters. More...
 
UInt_t GetNofAsicChannels () const
 Number of channels per ASIC. More...
 
UInt_t GetNofAsics () const
 Number of ASICs. More...
 
UInt_t GetNofChannels () const
 Number of channels. More...
 
Bool_t IsChannelActive (UInt_t channel) const
 Check for a channel being active. More...
 
void SetAllAsics (const CbmStsParAsic &asicPar)
 Set all ASICs with the same parameter set. More...
 
std::string ToString () const
 String output. More...
 

Private Member Functions

 ClassDefNV (CbmStsParModule, 1)
 

Private Attributes

UInt_t fNofChannels = 0
 Number of readout channels. More...
 
UInt_t fNofAsicChannels = 0.
 Number of channels per ASIC. More...
 
std::vector< CbmStsParAsicfAsicPars {}
 ASIC parameters. More...
 

Detailed Description

Parameters for one STS module.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
31.03.2020

The module is the basic building block of the STS. It consists of a sensor connected to a number of ASICs. The number of module channels must be adjusted to the number of strips of the connected sensor. The number of ASICS is given by the number of module channels divided by the number of channels per ASIC.

Definition at line 28 of file CbmStsParModule.h.

Constructor & Destructor Documentation

◆ CbmStsParModule() [1/2]

CbmStsParModule::CbmStsParModule ( )
inline

Default constructor.

Definition at line 32 of file CbmStsParModule.h.

◆ CbmStsParModule() [2/2]

CbmStsParModule::CbmStsParModule ( UInt_t  nChannels,
UInt_t  nAsicChannels 
)

Standard constructor.

Parameters
nChannelsNumber of readout channels
nAsicsNumber of readout channels per ASIC

◆ ~CbmStsParModule()

CbmStsParModule::~CbmStsParModule ( )
inline

Destructor.

Definition at line 43 of file CbmStsParModule.h.

Member Function Documentation

◆ ClassDefNV()

CbmStsParModule::ClassDefNV ( CbmStsParModule  ,
 
)
private

◆ GetAsicParams()

const std::vector<CbmStsParAsic>& CbmStsParModule::GetAsicParams ( ) const
inline

All ASIC parameters.

Returns
Vector of ASIC parameters

Definition at line 56 of file CbmStsParModule.h.

References fAsicPars.

Referenced by CbmStsSimModule::GenerateNoise().

◆ GetNofAsicChannels()

UInt_t CbmStsParModule::GetNofAsicChannels ( ) const
inline

Number of channels per ASIC.

Returns
Number of channels per ASIC

Definition at line 62 of file CbmStsParModule.h.

References fNofAsicChannels.

Referenced by CbmStsSimModule::GenerateNoise().

◆ GetNofAsics()

UInt_t CbmStsParModule::GetNofAsics ( ) const
inline

Number of ASICs.

Returns
Number of ASICs

Definition at line 68 of file CbmStsParModule.h.

References fAsicPars.

Referenced by CbmStsSimModule::GenerateNoise(), GetParAsic(), and ToString().

◆ GetNofChannels()

UInt_t CbmStsParModule::GetNofChannels ( ) const
inline

◆ GetParAsic()

◆ IsChannelActive()

Bool_t CbmStsParModule::IsChannelActive ( UInt_t  channel) const

Check for a channel being active.

Parameters
channelChannel number
Returns
True if the channel is active

Definition at line 40 of file CbmStsParModule.cxx.

References fNofAsicChannels, GetParAsic(), and CbmStsParAsic::IsChannelActive().

Referenced by CbmStsSimModule::AddSignal().

◆ SetAllAsics()

void CbmStsParModule::SetAllAsics ( const CbmStsParAsic asicPar)

Set all ASICs with the same parameter set.

Parameters
asicParParameters for all ASICs

Definition at line 49 of file CbmStsParModule.cxx.

References fAsicPars, and CbmStsParAsic::Init().

Referenced by CbmStsDigitize::InitParams().

◆ ToString()

string CbmStsParModule::ToString ( ) const

String output.

Definition at line 59 of file CbmStsParModule.cxx.

References fNofAsicChannels, fNofChannels, and GetNofAsics().

Referenced by CbmStsParSetModule::ToString().

Member Data Documentation

◆ fAsicPars

std::vector<CbmStsParAsic> CbmStsParModule::fAsicPars {}
private

ASIC parameters.

Definition at line 97 of file CbmStsParModule.h.

Referenced by GetAsicParams(), GetNofAsics(), GetParAsic(), and SetAllAsics().

◆ fNofAsicChannels

UInt_t CbmStsParModule::fNofAsicChannels = 0.
private

Number of channels per ASIC.

Definition at line 96 of file CbmStsParModule.h.

Referenced by GetNofAsicChannels(), GetParAsic(), IsChannelActive(), and ToString().

◆ fNofChannels

UInt_t CbmStsParModule::fNofChannels = 0
private

Number of readout channels.

Definition at line 95 of file CbmStsParModule.h.

Referenced by GetNofChannels(), GetParAsic(), and ToString().


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