14using std::stringstream;
19 : fNofChannels(nChannels)
20 , fNofAsicChannels(nAsicChannels)
22 uint32_t nAsics = (nChannels % nAsicChannels ? nChannels / nAsicChannels + 1 : nChannels / nAsicChannels);
52 if (fraction <= 0.)
return 0;
53 uint32_t nDeactivated = 0;
55 nDeactivated += asic.DeactivateRandomChannels(fraction);
ClassImp(CbmConverterManager)
Parameters of the STS readout ASIC.
uint16_t GetNofChannels() const
Number of readout channels.
Bool_t IsChannelActive(uint16_t channel) const
Check for a channel being active.
void Init()
Initialisation.
Parameters for one STS module.
uint32_t GetNofChannels() const
Number of channels.
uint32_t DeactivateRandomChannels(double fraction)
Randomly deactivate a fraction of the channels.
std::vector< CbmStsParAsic > fAsicPars
ASIC parameters.
uint32_t GetNofAsics() const
Number of ASICs.
void SetAllAsics(const CbmStsParAsic &asicPar)
Set all ASICs with the same parameter set.
CbmStsParModule()
Default constructor.
uint32_t GetNofAsicChannels() const
Number of channels per ASIC.
uint32_t fNofAsicChannels
Number of channels per ASIC.
bool IsChannelActive(uint32_t channel) const
Check for a channel being active.
CbmStsParModule & operator=(const CbmStsParModule &other)
Copy assignment operator.
uint32_t fNofChannels
Number of readout channels.
std::string ToString() const
String output.
const std::vector< CbmStsParAsic > & GetAsicParams() const
All ASIC parameters.
void SetAsic(uint32_t asicNr, const CbmStsParAsic &asicPar)
Set parameters for a single ASIC.
const CbmStsParAsic & GetParAsic(uint32_t channel) const
ASIC parameters for a given channel.