ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13#include <string>
14#include <map>
15
17 public:
18
19 enum SYSTEM{EMECZNEG = 0,
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
Static class providing utility functions.
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.
static unsigned int getCoolChannelId(const SYSTEM sys)
Returns the cool channel id associated with a given system.
static unsigned int getDbCaloGain(int caloGain)
Returns the non-negative gainId to be used with the COOL DB.
static unsigned int getNCells(const SYSTEM sys)
Returns the number of cells for a given system.