ATLAS Offline Software
CaloCondUtils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOCONDBLOBOBJS_CALOCONDUTILS_H
6 #define CALOCONDBLOBOBJS_CALOCONDUTILS_H
7 
13 #include <string>
14 #include <map>
15 
17  public:
18 
19  enum SYSTEM{EMECZNEG = 0,
20  EMBZNEG = 1,
21  EMBZPOS = 2,
22  EMECZPOS = 3,
23  HEC =16,
24  FCAL =32,
25  TILE =48};
26 
29  static unsigned int getCoolChannelId(const SYSTEM sys);
30 
33  static unsigned int getNCells(const SYSTEM sys);
34 
40  static std::string getFullTag(const std::string& folder, const std::string& tag);
41 
47  static unsigned int getDbCaloGain(int caloGain);
48 
49  //private:
50  //static std::map<SYSTEM,unsigned int> m_nCells;
51 };
52 #endif
CaloCondUtils::EMECZPOS
@ EMECZPOS
Definition: CaloCondUtils.h:22
CaloCondUtils::FCAL
@ FCAL
Definition: CaloCondUtils.h:24
CaloCondUtils::HEC
@ HEC
Definition: CaloCondUtils.h:23
CaloCondUtils::TILE
@ TILE
Definition: CaloCondUtils.h:25
CaloCondUtils::SYSTEM
SYSTEM
Definition: CaloCondUtils.h:19
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CaloCondUtils::getFullTag
static std::string getFullTag(const std::string &folder, const std::string &tag)
Returns the full tag string, composed of camelized folder name and tag part.
Definition: CaloCondUtils.cxx:71
CaloCondUtils::EMECZNEG
@ EMECZNEG
Definition: CaloCondUtils.h:19
CaloCondUtils::EMBZNEG
@ EMBZNEG
Definition: CaloCondUtils.h:20
CaloCondUtils::getNCells
static unsigned int getNCells(const SYSTEM sys)
Returns the number of cells for a given system.
Definition: CaloCondUtils.cxx:26
CaloCondUtils::getDbCaloGain
static unsigned int getDbCaloGain(int caloGain)
Returns the non-negative gainId to be used with the COOL DB.
Definition: CaloCondUtils.cxx:86
CaloCondUtils::getCoolChannelId
static unsigned int getCoolChannelId(const SYSTEM sys)
Returns the cool channel id associated with a given system.
Definition: CaloCondUtils.cxx:18
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
CaloCondUtils
Static class providing utility functions.
Definition: CaloCondUtils.h:16
CaloCondUtils::EMBZPOS
@ EMBZPOS
Definition: CaloCondUtils.h:21