6#include "GaudiKernel/MsgStream.h"
20 return static_cast<unsigned int>(sys);
73 std::string folderTag(
"");
75 for (
const char i : folder) {
80 return (folderTag+
"-"+tag);
100 if(caloGain>=0 && caloGain<=2)
return static_cast<unsigned int>(caloGain);
103 if(caloGain==-16)
return 0;
104 if(caloGain==-15)
return 1;
105 if(caloGain==-12)
return 2;
106 if(caloGain==-11)
return 3;
107 if(caloGain== -4)
return 0;
108 if(caloGain== -3)
return 3;
113 log << MSG::WARNING <<
"invalid gain found... probably corrupted data /badly decoded ? returns DbCaloGain 0" <<
endmsg;
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.
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)