CbmRoot
|
Manages module Ids and names. More...
#include <CbmModuleList.h>
Public Member Functions | |
CbmModuleList () | |
virtual | ~CbmModuleList () |
Static Public Member Functions | |
static TString | GetModuleName (ECbmModuleId moduleId) |
static TString | GetModuleNameCaps (ECbmModuleId moduleId) |
static ECbmModuleId | GetModuleId (const char *moduleName) |
Static Private Member Functions | |
static std::map< ECbmModuleId, TString > | DefineModules () |
Static Private Attributes | |
static std::map< ECbmModuleId, TString > | fModules |
Manages module Ids and names.
CbmModuleList is a tool to assess module names from their identifier and vice versa through static methods. Modules can be (detector) systems or passive ones.
Definition at line 27 of file CbmModuleList.h.
|
inline |
Constructor
Definition at line 31 of file CbmModuleList.h.
|
inlinevirtual |
Destructor
Definition at line 35 of file CbmModuleList.h.
|
staticprivate |
|
static |
Get module Id from module name
moduleName | Name of module (case insensitive) |
Definition at line 52 of file CbmModuleList.cxx.
|
static |
Get module name from module Id
moduleId | Unique module identifier (SystemId or kMagnet/kTarget/kPipe) |
Definition at line 66 of file CbmModuleList.cxx.
References fModules.
Referenced by CbmDigitization::GetGeoTag(), and GetModuleNameCaps().
|
static |
Get module name in capitals from module Id
moduleId | Unique module identifier (SystemId or kMagnet/kTarget/kPipe) |
Definition at line 77 of file CbmModuleList.cxx.
References GetModuleName().
Referenced by CbmDigitization::CheckInput(), CbmBuildEventsIdeal::Exec(), CbmDaq::FillTimeSlice(), CbmDaq::GetBufferStatus(), PairAnalysisHelper::GetDetName(), CbmBuildEventsIdeal::Init(), CbmBuildEventsIdealNew::Init(), CbmEventStore::ToString(), CbmSetup::ToString(), and CbmTimeSlice::ToString().
|
staticprivate |
Map of module identifier to module name
Definition at line 61 of file CbmModuleList.h.
Referenced by GetModuleId(), and GetModuleName().