19 os <<
", hw id=0x" << hex << hwID <<
dec;
35 auto it = VFATMapping.find(
fp);
36 if (it != VFATMapping.end()) {
37 edm::LogWarning(
"Totem") <<
"WARNING in DAQMapping::insert > Overwriting entry at " <<
fp <<
". Previous: " 38 <<
" " << VFATMapping[
fp] <<
"," 40 <<
" " << vi <<
". " << endl;
49 auto it = VFATMapping.find(fp1);
50 if (it != VFATMapping.end()) {
51 edm::LogWarning(
"Totem") <<
"WARNING in DAQMapping::insert > Overwriting T2 entry at " << fp2 <<
". Previous: " 52 <<
" " << VFATMapping[fp1] <<
"," 54 <<
" " << vi <<
". " << endl;
57 VFATMapping[fp1] = vi;
64 auto iterator = totemTimingChannelMap.find(hwId);
65 if (iterator != totemTimingChannelMap.end())
66 pair = iterator->second;
73 os <<
"TotemDAQMapping VFAT mapping" << endl;
74 for (
auto &
p : VFATMapping) {
75 os <<
" " <<
p.first <<
" -> ";
80 os <<
"TotemDAQMapping channel mapping" << endl;
81 for (
const auto &
p : totemTimingChannelMap) {
83 <<
" hw id=0x" << hex << (
int)
p.first <<
dec <<
" plane=" <<
p.second.plane <<
" channel=" <<
p.second.channel
TotemSymbID symbolicID
the symbolic id
void print(std::ostream &os, std::string subSystemName) const
void print(std::ostream &os, std::string subSystemName) const
void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi)
The mapping between FramePosition and VFATInfo.
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Hw Id mapping for Totem Timing (dynamical mapping in Sampic)
unsigned int getRawPosition() const
the getters and setters below are deprecated
unsigned int hwID
the hardware ID (16 bit)
#define TYPELOOKUP_DATA_REG(_dataclass_)
Log< level::Warning, false > LogWarning
Contains mappind data related to a VFAT.
const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const
Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair) ...