11#ifndef CBMSTSPARSETMODULE_H
12#define CBMSTSPARSETMODULE_H 1
16#include <FairParGenericSet.h>
19#include <RtypesCore.h>
43 const char* context =
"Default");
65 virtual Bool_t
getParams(FairParamList* parList);
84 virtual void putParams(FairParamList* parList);
Parameters for one STS module.
Parameters container for CbmStsParModule.
virtual void putParams(FairParamList *parList)
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
ClassDef(CbmStsParSetModule, 1)
void SetGlobalPar(const CbmStsParModule ¶ms)
Set global parameters (for all modules)
CbmStsParModule fGlobalParams
Global parameters, used for all modules.
std::map< UInt_t, CbmStsParModule > fParams
Map of parameters. Key is module address.
Bool_t fUseGlobal
Flag for using global parameters.
CbmStsParSetModule(const char *name="CbmParSetModule", const char *title="STS parameters", const char *context="Default")
Constructor.
const CbmStsParModule & GetParModule(UInt_t address)
Get condition parameters of a sensor.
virtual void clear()
Reset all parameters.
void SetParModule(UInt_t address, const CbmStsParModule &par)
Set the parameters for a module.
UInt_t DeactivateRandomChannels(Double_t fraction)
Randomly deactivate a fraction of the channels.
std::string ToString() const
Info to string.
virtual ~CbmStsParSetModule()
Destructor.
Bool_t IsSet() const
Check whether parameter container is set.