5#ifndef L1CALOCOOLCHANNELID_H
6#define L1CALOCOOLCHANNELID_H
19 unsigned int submodule,
20 unsigned int channel,
bool logical =
true);
25 unsigned int crate()
const {
return (
m_id & 0xff000000) >> 24; }
28 unsigned int module(
bool logical=
true)
const;
32 unsigned int id()
const {
return m_id; }
49 unsigned int submodule,
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
L1CaloModuleType moduleType() const
Return module type of this channel ID.
unsigned int physicalToLogicalModule(L1CaloModuleType mType, unsigned int module) const
L1CaloCoolChannelId & operator=(const L1CaloCoolChannelId &id)
Copy a L1CaloCoolChannelId.
unsigned int subModule() const
bool operator==(const L1CaloCoolChannelId &id) const
bool operator<(const L1CaloCoolChannelId &id) const
friend std::ostream & operator<<(std::ostream &output, const L1CaloCoolChannelId &r)
L1CaloCoolChannelId()
Create a L1CaloCoolChannelId from the integer ID field.
~L1CaloCoolChannelId()=default
unsigned int module(bool logical=true) const
Convert a typeId to a L1CaloModuleType.
unsigned int crate() const
void setId(unsigned int crate, L1CaloModuleType mType, unsigned int module, unsigned int submodule, unsigned int channel)
Set the CoolChannelId value from its component fields.
unsigned int logicalToPhysicalModule(L1CaloModuleType mType, unsigned int module) const
unsigned int channel() const
Infrastructure class encapsulating our known module types.