CbmRoot
Loading...
Searching...
No Matches
CbmStsParSetModule Class Reference

Parameters container for CbmStsParModule. More...

#include <CbmStsParSetModule.h>

Inheritance diagram for CbmStsParSetModule:
[legend]
Collaboration diagram for CbmStsParSetModule:
[legend]

Public Member Functions

 CbmStsParSetModule (const char *name="CbmParSetModule", const char *title="STS parameters", const char *context="Default")
 Constructor.
 
virtual ~CbmStsParSetModule ()
 Destructor.
 
virtual void clear ()
 Reset all parameters.
 
UInt_t DeactivateRandomChannels (Double_t fraction)
 Randomly deactivate a fraction of the channels.
 
virtual Bool_t getParams (FairParamList *parList)
 Reading parameters from ASCII. Abstract in base class.
 
const CbmStsParModuleGetParModule (UInt_t address)
 Get condition parameters of a sensor.
 
Bool_t IsSet () const
 Check whether parameter container is set.
 
virtual void putParams (FairParamList *parList)
 
void SetGlobalPar (const CbmStsParModule &params)
 Set global parameters (for all modules)
 
void SetParModule (UInt_t address, const CbmStsParModule &par)
 Set the parameters for a module.
 
std::string ToString () const
 Info to string.
 

Private Member Functions

 ClassDef (CbmStsParSetModule, 1)
 

Private Attributes

Bool_t fUseGlobal = kFALSE
 Flag for using global parameters.
 
CbmStsParModule fGlobalParams {}
 Global parameters, used for all modules.
 
std::map< UInt_t, CbmStsParModulefParams {}
 Map of parameters. Key is module address.
 

Detailed Description

Parameters container for CbmStsParModule.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
31.03.2020

A set of parameters for each STS module is administered through FairRuntimeDb.

Definition at line 34 of file CbmStsParSetModule.h.

Constructor & Destructor Documentation

◆ CbmStsParSetModule()

CbmStsParSetModule::CbmStsParSetModule ( const char * name = "CbmParSetModule",
const char * title = "STS parameters",
const char * context = "Default" )

Constructor.

Parameters
nameName of parameter set
titleParameter container factory name
contextNo idea

◆ ~CbmStsParSetModule()

CbmStsParSetModule::~CbmStsParSetModule ( )
virtual

Destructor.

Definition at line 31 of file CbmStsParSetModule.cxx.

Member Function Documentation

◆ ClassDef()

CbmStsParSetModule::ClassDef ( CbmStsParSetModule ,
1  )
private

◆ clear()

void CbmStsParSetModule::clear ( )
virtual

◆ DeactivateRandomChannels()

UInt_t CbmStsParSetModule::DeactivateRandomChannels ( Double_t fraction)

Randomly deactivate a fraction of the channels.

Parameters
fractionFraction of channels to deactivate
Returns
Number of deactivated channels

Definition at line 47 of file CbmStsParSetModule.cxx.

References fParams.

Referenced by CbmStsDigitize::InitParams().

◆ getParams()

Bool_t CbmStsParSetModule::getParams ( FairParamList * parList)
virtual

Reading parameters from ASCII. Abstract in base class.

An ASCII I/O is not implemented. The method throws an error.

Definition at line 60 of file CbmStsParSetModule.cxx.

◆ GetParModule()

const CbmStsParModule & CbmStsParSetModule::GetParModule ( UInt_t address)

Get condition parameters of a sensor.

Parameters
Moduleaddress
Returns
Module parameter object

Definition at line 69 of file CbmStsParSetModule.cxx.

References fGlobalParams, fParams, and fUseGlobal.

Referenced by CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsDigitizeQa::Init(), CbmStsDigitize::InitModules(), CbmRecoStsPixel::ProcessData(), and CbmStsSetup::SetModuleParameters().

◆ IsSet()

Bool_t CbmStsParSetModule::IsSet ( ) const
inline

Check whether parameter container is set.

Returns
True if container is set

The container is set if either global parameters are defined or the parameter map is filled.

Definition at line 81 of file CbmStsParSetModule.h.

References fParams, and fUseGlobal.

◆ putParams()

void CbmStsParSetModule::putParams ( FairParamList * parList)
virtual

Definition at line 79 of file CbmStsParSetModule.cxx.

◆ SetGlobalPar()

void CbmStsParSetModule::SetGlobalPar ( const CbmStsParModule & params)
inline

Set global parameters (for all modules)

Parameters
conditionsModule parameter object

Definition at line 90 of file CbmStsParSetModule.h.

References fGlobalParams, and fUseGlobal.

Referenced by CbmRecoSts::InitParams(), and CbmTaskStsHitFinderParWrite::InitParams().

◆ SetParModule()

void CbmStsParSetModule::SetParModule ( UInt_t address,
const CbmStsParModule & par )

Set the parameters for a module.

Parameters
addressModule address
parModule parameter object

Definition at line 84 of file CbmStsParSetModule.cxx.

References fParams.

Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitizePixel::InitParams().

◆ ToString()

Member Data Documentation

◆ fGlobalParams

CbmStsParModule CbmStsParSetModule::fGlobalParams {}
private

Global parameters, used for all modules.

Definition at line 112 of file CbmStsParSetModule.h.

Referenced by GetParModule(), SetGlobalPar(), and ToString().

◆ fParams

std::map<UInt_t, CbmStsParModule> CbmStsParSetModule::fParams {}
private

Map of parameters. Key is module address.

Definition at line 115 of file CbmStsParSetModule.h.

Referenced by clear(), DeactivateRandomChannels(), GetParModule(), IsSet(), SetParModule(), and ToString().

◆ fUseGlobal

Bool_t CbmStsParSetModule::fUseGlobal = kFALSE
private

Flag for using global parameters.

Definition at line 109 of file CbmStsParSetModule.h.

Referenced by clear(), GetParModule(), IsSet(), SetGlobalPar(), and ToString().


The documentation for this class was generated from the following files: