EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmModuleList Class Reference

Manages module Ids and names. More...

#include <EicRoot/blob/master/cbmbase/CbmModuleList.h>

+ Collaboration diagram for CbmModuleList:

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
 

Detailed Description

Manages module Ids and names.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Version
1.0

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

Constructor & Destructor Documentation

CbmModuleList::CbmModuleList ( )
inline

Constructor

Definition at line 60 of file CbmModuleList.h.

View newest version in sPHENIX GitHub at line 60 of file CbmModuleList.h

virtual CbmModuleList::~CbmModuleList ( )
inlinevirtual

Destructor

Definition at line 64 of file CbmModuleList.h.

View newest version in sPHENIX GitHub at line 64 of file CbmModuleList.h

Member Function Documentation

map< Int_t, TString > CbmModuleList::DefineModules ( )
staticprivate

Initialisation of module map

Definition at line 13 of file CbmModuleList.cxx.

View newest version in sPHENIX GitHub at line 13 of file CbmModuleList.cxx

References data, kDummy, kEcal, kMagnet, kMuch, kMvd, kPipe, kPsd, kRef, kRich, kSts, kTarget, kTof, and kTrd.

Int_t CbmModuleList::GetModuleId ( const char *  moduleName)
static

Get module Id from module name

Parameters
moduleNameName of module (case insensitive)
Returns
Unique module Id

Definition at line 45 of file CbmModuleList.cxx.

View newest version in sPHENIX GitHub at line 45 of file CbmModuleList.cxx

References fModules, and it.

TString CbmModuleList::GetModuleName ( Int_t  moduleId)
static

Get module name from module Id

Parameters
moduleIdUnique module identifier (SystemId or kMagnet/kTarget/kPipe)
Returns
Name of module (in capitals)

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.

+ Here is the call graph for this function:

Member Data Documentation

map< Int_t, TString > CbmModuleList::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().


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