ATLAS Offline Software
Public Types | Static Public Member Functions | List of all members
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. More...
 
static std::string getClassName (uint16_t type)
 Returns the class name. More...
 

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  };

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;
17  case TileCalibType::CMT:
18  strType = "TileCalibDrawerCmt";
19  break;
20  case TileCalibType::OFC:
21  strType = "TileCalibDrawerOfc";
22  break;
23  case TileCalibType::FLT:
24  strType = "TileCalibDrawerFlt";
25  break;
26  case TileCalibType::BCH:
27  strType = "TileCalibDrawerBch";
28  break;
29  case TileCalibType::INT:
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 }

The documentation for this class was generated from the following files:
TileCalibType::FLT
@ FLT
Enum for TileCalibDrawerFlt class.
Definition: TileCalibType.h:30
TileCalibType::INT
@ INT
Enum for TileCalibDrawerInt class.
Definition: TileCalibType.h:32
TileCalibType::CMT
@ CMT
Enum for TileCalibDrawerCmt class.
Definition: TileCalibType.h:28
TileCalibType::getClassName
static std::string getClassName(TileCalibType::TYPE type)
Returns the class name.
Definition: TileCalibType.cxx:10
TileCalibType::OFC
@ OFC
Enum for TileCalibDrawerOfc class.
Definition: TileCalibType.h:29
TileCalibType::TYPE
TYPE
Enumerator for different BLOB object types.
Definition: TileCalibType.h:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCalibType::BCH
@ BCH
Enum for TileCalibDrawerBch class.
Definition: TileCalibType.h:31
TileCalibType::BASE
@ BASE
Enum for TileCalibDrawerBase class.
Definition: TileCalibType.h:27