|
CbmRoot
|
Parameters for one STS module. More...
#include <CbmStsParModule.h>
Public Member Functions | |
| CbmStsParModule () | |
| Default constructor. | |
| CbmStsParModule (uint32_t nChannels, uint32_t nAsicChannels) | |
| Standard constructor. | |
| CbmStsParModule (const CbmStsParModule &) | |
| Copy constructor (implicitely disable move constructor and assignment) | |
| CbmStsParModule & | operator= (const CbmStsParModule &other) |
| Copy assignment operator. | |
| ~CbmStsParModule () | |
| Destructor. | |
| uint32_t | DeactivateRandomChannels (double fraction) |
| Randomly deactivate a fraction of the channels. | |
| const CbmStsParAsic & | GetParAsic (uint32_t channel) const |
| ASIC parameters for a given channel. | |
| const std::vector< CbmStsParAsic > & | GetAsicParams () const |
| All ASIC parameters. | |
| uint32_t | GetNofAsicChannels () const |
| Number of channels per ASIC. | |
| uint32_t | GetNofAsics () const |
| Number of ASICs. | |
| uint32_t | GetNofChannels () const |
| Number of channels. | |
| bool | IsChannelActive (uint32_t channel) const |
| Check for a channel being active. | |
| void | SetAllAsics (const CbmStsParAsic &asicPar) |
| Set all ASICs with the same parameter set. | |
| void | SetAsic (uint32_t asicNr, const CbmStsParAsic &asicPar) |
| Set parameters for a single ASIC. | |
| Int_t | GetModuleSide (uint32_t channel) const |
| Get the side of the module based on the channel. | |
| uint32_t | GetAsicIndex (uint32_t channel) const |
| Get the asic index based on the channel of the module. | |
| std::string | ToString () const |
| String output. | |
Private Member Functions | |
| ClassDefNV (CbmStsParModule, 2) | |
Private Attributes | |
| uint32_t | fNofChannels = 0 |
| Number of readout channels. | |
| uint32_t | fNofAsicChannels = 0. |
| Number of channels per ASIC. | |
| std::vector< CbmStsParAsic > | fAsicPars {} |
| ASIC parameters. | |
Parameters for one STS module.
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 27 of file CbmStsParModule.h.
|
inline |
Default constructor.
Definition at line 31 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), ClassDefNV(), and operator=().
| CbmStsParModule::CbmStsParModule | ( | uint32_t | nChannels, |
| uint32_t | nAsicChannels ) |
Standard constructor.
| nChannels | Number of readout channels |
| nAsics | Number of readout channels per ASIC |
Definition at line 18 of file CbmStsParModule.cxx.
References fAsicPars, fNofAsicChannels, and fNofChannels.
| CbmStsParModule::CbmStsParModule | ( | const CbmStsParModule & | other | ) |
Copy constructor (implicitely disable move constructor and assignment)
Definition at line 29 of file CbmStsParModule.cxx.
References CbmStsParModule(), fAsicPars, fNofAsicChannels, fNofChannels, GetAsicParams(), GetNofAsicChannels(), and GetNofChannels().
|
inline |
Destructor.
Definition at line 50 of file CbmStsParModule.h.
|
private |
References CbmStsParModule().
| uint32_t CbmStsParModule::DeactivateRandomChannels | ( | double | fraction | ) |
Randomly deactivate a fraction of the channels.
| fraction | Fraction of channels to deactivate |
Definition at line 50 of file CbmStsParModule.cxx.
References fAsicPars.
| uint32_t CbmStsParModule::GetAsicIndex | ( | uint32_t | channel | ) | const |
Get the asic index based on the channel of the module.
| channel | << Channel number |
Definition at line 117 of file CbmStsParModule.cxx.
References fNofAsicChannels, and fNofChannels.
|
inline |
All ASIC parameters.
Definition at line 70 of file CbmStsParModule.h.
References fAsicPars.
Referenced by CbmStsParModule(), cbm_sts_utils::ChargeBinning(), and operator=().
| Int_t CbmStsParModule::GetModuleSide | ( | uint32_t | channel | ) | const |
Get the side of the module based on the channel.
| channel | << Channel number |
Definition at line 106 of file CbmStsParModule.cxx.
References fNofChannels.
|
inline |
Number of channels per ASIC.
Definition at line 76 of file CbmStsParModule.h.
References fNofAsicChannels.
Referenced by CbmStsParModule(), and operator=().
|
inline |
Number of ASICs.
Definition at line 82 of file CbmStsParModule.h.
References fAsicPars.
Referenced by GetParAsic(), and ToString().
|
inline |
Number of channels.
Definition at line 88 of file CbmStsParModule.h.
References fNofChannels.
Referenced by CbmStsAlgoAnaCluster::AnaSize2(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsParModule(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsDigitizeQa::Finish(), CbmStsDigitizeQa::Init(), operator=(), and CbmStsDigitizeQa::ProcessDigisAndPoints().
| const CbmStsParAsic & CbmStsParModule::GetParAsic | ( | uint32_t | channel | ) | const |
ASIC parameters for a given channel.
| channel | Channel number |
Definition at line 63 of file CbmStsParModule.cxx.
References fAsicPars, fNofAsicChannels, fNofChannels, and GetNofAsics().
Referenced by CbmStsAlgoAnaCluster::AnaSize2(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), IsChannelActive(), and CbmStsAlgoAnaCluster::WeightedMean().
| Bool_t CbmStsParModule::IsChannelActive | ( | uint32_t | channel | ) | const |
Check for a channel being active.
| channel | Channel number |
Definition at line 75 of file CbmStsParModule.cxx.
References fNofAsicChannels, GetParAsic(), and CbmStsParAsic::IsChannelActive().
| CbmStsParModule & CbmStsParModule::operator= | ( | const CbmStsParModule & | other | ) |
Copy assignment operator.
Definition at line 39 of file CbmStsParModule.cxx.
References CbmStsParModule(), fAsicPars, fNofAsicChannels, fNofChannels, GetAsicParams(), GetNofAsicChannels(), and GetNofChannels().
| void CbmStsParModule::SetAllAsics | ( | const CbmStsParAsic & | asicPar | ) |
Set all ASICs with the same parameter set.
| asicPar | Parameters for all ASICs |
Definition at line 85 of file CbmStsParModule.cxx.
References fAsicPars, fNofAsicChannels, CbmStsParAsic::GetNofChannels(), and CbmStsParAsic::Init().
Referenced by CbmStsDigitizePixel::InitParams().
| void CbmStsParModule::SetAsic | ( | uint32_t | asicNr, |
| const CbmStsParAsic & | asicPar ) |
Set parameters for a single ASIC.
| asicPar | ASIC parameter set |
Definition at line 97 of file CbmStsParModule.cxx.
References fAsicPars.
| string CbmStsParModule::ToString | ( | ) | const |
String output.
Definition at line 128 of file CbmStsParModule.cxx.
References fNofAsicChannels, fNofChannels, and GetNofAsics().
|
private |
ASIC parameters.
Definition at line 131 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), CbmStsParModule(), DeactivateRandomChannels(), GetAsicParams(), GetNofAsics(), GetParAsic(), operator=(), SetAllAsics(), and SetAsic().
|
private |
Number of channels per ASIC.
Definition at line 130 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), CbmStsParModule(), GetAsicIndex(), GetNofAsicChannels(), GetParAsic(), IsChannelActive(), operator=(), SetAllAsics(), and ToString().
|
private |
Number of readout channels.
Definition at line 129 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), CbmStsParModule(), GetAsicIndex(), GetModuleSide(), GetNofChannels(), GetParAsic(), operator=(), and ToString().