ATLAS Offline Software
Loading...
Searching...
No Matches
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.
static std::string getClassName (uint16_t type)
 Returns the class name.

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 };
@ BASE
Enum for CaloCondBlobBase class.
@ FLT
Enum for CaloCondBlobFlt class.

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){
15 strType = "CaloCondBlobBase";
16 break;
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}
static std::string getClassName(CaloCondType::TYPE type)
Returns the class name.
TYPE
Enumerator for different BLOB object types.

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