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. | |
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.
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.
CbmStsParModule::CbmStsParModule | ( | const CbmStsParModule & | other | ) |
Copy constructor (implicitely disable move constructor and assignment)
Definition at line 29 of file CbmStsParModule.cxx.
References fAsicPars, fNofAsicChannels, fNofChannels, GetAsicParams(), GetNofAsicChannels(), and GetNofChannels().
|
inline |
Destructor.
Definition at line 50 of file CbmStsParModule.h.
|
private |
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.
|
inline |
All ASIC parameters.
Definition at line 70 of file CbmStsParModule.h.
References fAsicPars.
Referenced by CbmStsParModule(), CbmStsSimModule::GenerateNoise(), and operator=().
|
inline |
Number of channels per ASIC.
Definition at line 76 of file CbmStsParModule.h.
References fNofAsicChannels.
Referenced by CbmStsParModule(), CbmStsSimModule::GenerateNoise(), and operator=().
|
inline |
Number of ASICs.
Definition at line 82 of file CbmStsParModule.h.
References fAsicPars.
Referenced by CbmStsSimModule::GenerateNoise(), 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(), CbmStsSimModule::GetNofChannels(), CbmStsDigitizeQa::Init(), CbmStsSimModule::InitAnalogBuffer(), 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 CbmStsSimModule::AddSignal(), CbmStsAlgoAnaCluster::AnaSize2(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsAlgoFindClusters::CheckChannel(), CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSimModule::Digitize(), IsChannelActive(), CbmStsSimModule::ProcessAnalogBuffer(), CbmStsSimModule::ToString(), 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().
Referenced by CbmStsSimModule::AddSignal().
CbmStsParModule & CbmStsParModule::operator= | ( | const CbmStsParModule & | other | ) |
Copy assignment operator.
Definition at line 39 of file CbmStsParModule.cxx.
References 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 CbmStsDigitize::InitParams(), and 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 106 of file CbmStsParModule.cxx.
References fNofAsicChannels, fNofChannels, and GetNofAsics().
Referenced by CbmStsParSetModule::ToString().
|
private |
ASIC parameters.
Definition at line 117 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 116 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), GetNofAsicChannels(), GetParAsic(), IsChannelActive(), operator=(), SetAllAsics(), and ToString().
|
private |
Number of readout channels.
Definition at line 115 of file CbmStsParModule.h.
Referenced by CbmStsParModule(), GetNofChannels(), GetParAsic(), operator=(), and ToString().