24 : FairParGenericSet(name, title, context)
49 if (fraction <= 0.)
return 0;
50 UInt_t nDeactivated = 0;
52 nDeactivated += entry.second.DeactivateRandomChannels(fraction);
62 LOG(fatal) << GetName() <<
": ASCII input is not defined!";
86 if (
fParams.count(address)) LOG(fatal) << GetName() <<
": Replacing parameters for sensor address " << address;
98 if (
fParams.empty()) ss <<
"Empty";
100 ss <<
"Parameters for " <<
fParams.size() <<
" sensors";
ClassImp(CbmStsParSetModule) CbmStsParSetModule
Parameters for one STS module.
std::string ToString() const
String output.
Parameters container for CbmStsParModule.
virtual void putParams(FairParamList *parList)
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
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.