EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Manages module Ids and names. More...
#include <EicRoot/blob/master/cbmbase/CbmModuleList.h>
Public Member Functions | |
CbmModuleList () | |
virtual | ~CbmModuleList () |
Static Public Member Functions | |
static TString | GetModuleName (Int_t moduleId) |
static Int_t | GetModuleId (const char *moduleName) |
Static Private Member Functions | |
static map< Int_t, TString > | DefineModules () |
Static Private Attributes | |
static map< Int_t, 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 54 of file CbmModuleList.h.
View newest version in sPHENIX GitHub at line 54 of file CbmModuleList.h
|
inline |
Constructor
Definition at line 60 of file CbmModuleList.h.
View newest version in sPHENIX GitHub at line 60 of file CbmModuleList.h
|
inlinevirtual |
Destructor
Definition at line 64 of file CbmModuleList.h.
View newest version in sPHENIX GitHub at line 64 of file CbmModuleList.h
|
staticprivate |
|
static |
Get module Id from module name
moduleName | Name of module (case insensitive) |
Definition at line 45 of file CbmModuleList.cxx.
View newest version in sPHENIX GitHub at line 45 of file CbmModuleList.cxx
|
static |
Get module name from module Id
moduleId | Unique module identifier (SystemId or kMagnet/kTarget/kPipe) |
Definition at line 61 of file CbmModuleList.cxx.
View newest version in sPHENIX GitHub at line 61 of file CbmModuleList.cxx
References FairLogger::endl(), ERROR, and fModules.
|
staticprivate |
Map of module identifier to module name
Definition at line 85 of file CbmModuleList.h.
View newest version in sPHENIX GitHub at line 85 of file CbmModuleList.h
Referenced by GetModuleId(), and GetModuleName().