BmnRoot
Loading...
Searching...
No Matches
BmnModuleList Class Reference

Manages module Ids and names. More...

#include <BmnModuleList.h>

Public Member Functions

 BmnModuleList ()
 
virtual ~BmnModuleList ()
 

Static Public Member Functions

static TString GetModuleName (Int_t moduleId)
 
static TString GetModuleNameCaps (Int_t moduleId)
 
static Int_t GetModuleId (const char *moduleName)
 

Detailed Description

Manages module Ids and names.

Version
1.0

BmnModuleList 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 25 of file BmnModuleList.h.

Constructor & Destructor Documentation

◆ BmnModuleList()

BmnModuleList::BmnModuleList ( )
inline

Constructor

Definition at line 30 of file BmnModuleList.h.

◆ ~BmnModuleList()

virtual BmnModuleList::~BmnModuleList ( )
inlinevirtual

Destructor

Definition at line 34 of file BmnModuleList.h.

Member Function Documentation

◆ GetModuleId()

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

Get module Id from module name

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

Definition at line 40 of file BmnModuleList.cxx.

◆ GetModuleName()

TString BmnModuleList::GetModuleName ( Int_t  moduleId)
static

Get module name from module Id

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

Definition at line 56 of file BmnModuleList.cxx.

Referenced by GetModuleNameCaps().

◆ GetModuleNameCaps()

TString BmnModuleList::GetModuleNameCaps ( Int_t  moduleId)
static

Get module name in capitals from module Id

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

Definition at line 68 of file BmnModuleList.cxx.

References GetModuleName().

Referenced by BmnDaqBuffer::PrintStatus(), and BmnDaqBuffer::ToString().


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