ATLAS Offline Software
Public Types | Static Public Member Functions | List of all members
CaloCondType Class Reference

Class encoding CaloCondBlob types. More...

#include <CaloCondType.h>

Collaboration diagram for CaloCondType:

Public Types

enum  TYPE { BASE = 0, FLT = 1 }
 Enumerator for different BLOB object types. More...
 

Static Public Member Functions

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

Detailed Description

Class encoding CaloCondBlob types.

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

This class encodes all known CaloCondBlob 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 CaloCondType.h.

Member Enumeration Documentation

◆ TYPE

Enumerator for different BLOB object types.

Enumerator
BASE 

Enum for CaloCondBlobBase class.

FLT 

Enum for CaloCondBlobFlt class.

Definition at line 27 of file CaloCondType.h.

27  {
28  BASE= 0,
29  FLT = 1
30  };

Member Function Documentation

◆ getClassName() [1/2]

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

Returns the class name.

Parameters
typeThe CaloCondType::TYPE enumerator

Definition at line 10 of file CaloCondType.cxx.

11 {
12  std::string strType;
13  switch(type){
14  case CaloCondType::BASE:
15  strType = "CaloCondBlobBase";
16  break;
17  case CaloCondType::FLT:
18  strType = "CaloCondBlobFlt";
19  break;
20  default:
21  strType = "UNKNOWN TYPE";
22  }
23  return strType;
24 }

◆ getClassName() [2/2]

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

Returns the class name.

Parameters
typeThe object type as uint16_t

Definition at line 29 of file CaloCondType.cxx.

30 {
31  return getClassName(static_cast<CaloCondType::TYPE>(type));
32 }

The documentation for this class was generated from the following files:
CaloCondType::TYPE
TYPE
Enumerator for different BLOB object types.
Definition: CaloCondType.h:27
CaloCondType::BASE
@ BASE
Enum for CaloCondBlobBase class.
Definition: CaloCondType.h:28
CaloCondType::getClassName
static std::string getClassName(CaloCondType::TYPE type)
Returns the class name.
Definition: CaloCondType.cxx:10
CaloCondType::FLT
@ FLT
Enum for CaloCondBlobFlt class.
Definition: CaloCondType.h:29
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78