ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalibType Class Reference

Class encoding TileCalibDrawer types. More...

#include <TileCalibType.h>

Collaboration diagram for TileCalibType:

Public Types

enum  TYPE {
  BASE = 0 , CMT = 1 , OFC = 2 , FLT = 10 ,
  BCH = 20 , INT = 30
}
 Enumerator for different BLOB object types. More...

Static Public Member Functions

static std::string getClassName (TileCalibType::TYPE type)
 Returns the class name.
static std::string getClassName (uint16_t type)
 Returns the class name.

Detailed Description

Class encoding TileCalibDrawer types.

Author
Nils Gollub nils..nosp@m.goll.nosp@m.ub@ce.nosp@m.rn.c.nosp@m.h

This class encodes all known TileCalibDrawer types as enums and provides methods to access the corresponding class name.

WARNING: Once set, the type for a given type should NEVER be changed! Otherwise BLOBs written previously to the DB will not be interpreted correctly anymore!

Definition at line 23 of file TileCalibType.h.

Member Enumeration Documentation

◆ TYPE

Enumerator for different BLOB object types.

Enumerator
BASE 

Enum for TileCalibDrawerBase class.

CMT 

Enum for TileCalibDrawerCmt class.

OFC 

Enum for TileCalibDrawerOfc class.

FLT 

Enum for TileCalibDrawerFlt class.

BCH 

Enum for TileCalibDrawerBch class.

INT 

Enum for TileCalibDrawerInt class.

Definition at line 26 of file TileCalibType.h.

26 {
27 BASE= 0,
28 CMT = 1,
29 OFC = 2,
30 FLT = 10,
31 BCH = 20,
32 INT = 30
33 };
@ FLT
Enum for TileCalibDrawerFlt class.
@ OFC
Enum for TileCalibDrawerOfc class.
@ INT
Enum for TileCalibDrawerInt class.
@ CMT
Enum for TileCalibDrawerCmt class.
@ BCH
Enum for TileCalibDrawerBch class.
@ BASE
Enum for TileCalibDrawerBase class.

Member Function Documentation

◆ getClassName() [1/2]

std::string TileCalibType::getClassName ( TileCalibType::TYPE type)
static

Returns the class name.

Parameters
typeThe TileCalibType::TYPE enumerator

Definition at line 10 of file TileCalibType.cxx.

11{
12 std::string strType;
13 switch(type){
15 strType = "TileCalibDrawerBase";
16 break;
18 strType = "TileCalibDrawerCmt";
19 break;
21 strType = "TileCalibDrawerOfc";
22 break;
24 strType = "TileCalibDrawerFlt";
25 break;
27 strType = "TileCalibDrawerBch";
28 break;
30 strType = "TileCalibDrawerInt";
31 break;
32 default:
33 strType = "UNKNOWN TYPE";
34 }
35 return strType;
36}

◆ getClassName() [2/2]

std::string TileCalibType::getClassName ( uint16_t type)
static

Returns the class name.

Parameters
typeThe object type as uint16_t

Definition at line 41 of file TileCalibType.cxx.

42{
43 return getClassName(static_cast<TileCalibType::TYPE>(type));
44}
TYPE
Enumerator for different BLOB object types.
static std::string getClassName(TileCalibType::TYPE type)
Returns the class name.

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