![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/IInterface.h"
11 #include "GaudiKernel/MsgStream.h"
12 #include "GaudiKernel/StatusCode.h"
42 static const InterfaceID IID_ICpByteStreamV2Tool(
"CpByteStreamV2Tool", 1, 1);
46 return IID_ICpByteStreamV2Tool;
52 const std::string &
name,
55 m_cpmMaps(
"LVL1::CpmMappingTool/CpmMappingTool"),
56 m_errorTool(
"LVL1BS::L1CaloErrorByteStreamTool/L1CaloErrorByteStreamTool"),
57 m_robDataProvider(
"ROBDataProviderSvc",
name),
58 m_channels(80), m_crates(4), m_modules(14), m_cmxs(2), m_maxTobs(5),
59 m_chips(16), m_locs(4),
60 m_subDetector(
eformat::TDAQ_CALO_CLUSTER_PROC_DAQ)
62 declareInterface<CpByteStreamV2Tool>(
this);
65 "Crate/Module/Channel to Eta/Phi/Layer mapping tool");
67 "Tool to collect errors for monitoring");
70 "Offset of CP crate numbers in bytestream");
72 "Offset of CP crate numbers in RDOs");
76 "ROB fragment source identifiers");
80 "Format version number in sub-block header");
82 "Format identifier (0-1) in sub-block header");
84 "The number of S-Links per crate");
86 "The number of slices in the simulation");
88 "If >0, the number of slices in bytestream");
90 "Minimum crate number, allows partial output");
92 "Maximum crate number, allows partial output");
117 return StatusCode::SUCCESS;
122 const std::string& sgKey,
125 const std::vector<uint32_t>& vID(
sourceIDs());
129 ATH_MSG_DEBUG(
"Number of ROB fragments:" << robFrags.size());
130 return convert(sgKey, robFrags, ttCollection);
134 const std::string& sgKey,
144 const std::string& sgKey,
147 const std::vector<uint32_t>& vID(
sourceIDs());
151 ATH_MSG_DEBUG(
"Number of ROB fragments:" << robFrags.size());
152 return convert(sgKey, robFrags, tobCollection);
156 const std::string& sgKey,
166 const std::string& sgKey,
169 const std::vector<uint32_t>& vID(
sourceIDs());
173 ATH_MSG_DEBUG(
"Number of ROB fragments:" << robFrags.size());
174 return convert(sgKey, robFrags, hitCollection);
178 const std::string& sgKey,
192 return StatusCode::FAILURE;
231 int timeslicesNew = 1;
244 if (
mod % modulesPerSlink == 0)
246 const int daqOrRoi = 0;
247 const int slink = (
m_slinks == 2) ? 2 * (
mod / modulesPerSlink)
248 :
mod / modulesPerSlink;
251 msg() <<
"Treating crate " << hwCrate
252 <<
" slink " << slink <<
endmsg;
263 msg(MSG::ERROR) <<
"Inconsistent number of slices or "
264 <<
"triggered slice offsets in data for crate "
265 << hwCrate <<
" slink " << slink <<
endmsg;
266 return StatusCode::FAILURE;
274 <<
"Slices/offset: " << timeslices <<
" " << trigCpm;
275 if (timeslices != timeslicesNew)
277 msg() <<
" modified to " << timeslicesNew <<
" " << trigCpmNew;
282 userHeader.
setCpm(trigCpmNew);
286 theROD->push_back(userHeader.
header());
297 hwCrate,
module, timeslicesNew);
299 if (neutralFormat)
break;
316 std::vector<int> emData;
317 std::vector<int> hadData;
318 std::vector<int> emError;
319 std::vector<int> hadError;
334 const int index = ( neutralFormat ) ? 0 :
slice;
337 hadData[
slice], emErr, hadErr);
348 subBlock->
setStatus(failingBCN, gLinkTimeout, gLinkDown,
349 moduleError, fIFOOverflow, bCNMismatch,
350 gLinkProtocol, gLinkParity);
363 if ( !subBlock->
pack())
365 msg(MSG::ERROR) <<
"CPM sub-block packing failed" <<
endmsg;
366 return StatusCode::FAILURE;
370 msg() <<
"CPM sub-block data words: "
373 subBlock->
write(theROD);
379 for (
int cmx = 0; cmx <
m_cmxs; ++cmx)
393 if (neutralFormat)
break;
398 for (
int cpm = 1; cpm <=
m_modules; ++cpm)
400 for (
int chip = 0; chip <
m_chips; ++chip)
402 for (
int loc = 0; loc <
m_locs; ++loc)
404 const int key =
tobKey(crate, cmx, cpm, chip, loc);
410 std::vector<int> isolation;
411 std::vector<int>
error;
412 std::vector<unsigned int> presence;
426 const int index = ( neutralFormat ) ? 0 :
slice;
445 std::vector<unsigned int> hits0;
446 std::vector<unsigned int> hits1;
447 std::vector<int> err0;
448 std::vector<int> err1;
457 const int index = ( neutralFormat ) ? 0 :
slice;
473 if ( !subBlock->pack())
475 msg(MSG::ERROR) <<
"CMX-Cp sub-block packing failed" <<
endmsg;
476 return StatusCode::FAILURE;
480 msg() <<
"CMX-Cp sub-block data words: "
481 << subBlock->dataWords() <<
endmsg;
483 subBlock->write(theROD);
488 return StatusCode::SUCCESS;
505 for (
int slink = 0; slink < maxSlinks; ++slink)
507 const int daqOrRoi = 0;
527 const std::string& sgKey,
545 std::set<uint32_t> dupCheck;
548 for (; rob != robEnd; ++rob)
551 ATH_MSG_DEBUG(
"Treating ROB fragment " << robCount <<
" source_id = " << std::hex << (*rob)->rob_source_id() << std::dec);
555 const uint32_t robid = (*rob)->source_id();
556 if ((*rob)->nstatus() > 0)
559 (*rob)->status(robData);
563 if (
debug)
msg() <<
"ROB status error - skipping fragment" <<
endmsg;
570 if (!dupCheck.insert(robid).second)
582 (*rob)->rod_data(payloadBeg);
583 payloadEnd = payloadBeg + (*rob)->rod_ndata();
592 const uint32_t sourceID = (*rob)->rod_source_id();
603 msg() <<
"Wrong source identifier in data: ROD "
604 << MSG::hex << sourceID <<
" ROB " << robid
611 const int minorVersion = (*rob)->rod_version() & 0xffff;
621 msg() <<
"Treating crate " << rodCrate
634 const int headerWords = userHeader.
words();
635 if (headerWords != 1)
638 if (
debug)
msg() <<
"Unexpected number of user header words: "
642 for (
int i = 0;
i < headerWords; ++
i) ++
payload;
644 const int trigCpm = userHeader.
cpm();
647 msg() <<
"Minor format version number: " << MSG::hex
648 << minorVersion << MSG::dec <<
endmsg
649 <<
"Triggered slice offset: " << trigCpm <<
endmsg;
676 cmxCpSubBlock.
clear();
678 if (cmxCpSubBlock.
crate() != rodCrate)
680 if (
debug)
msg() <<
"Inconsistent crate number in ROD source ID"
708 if (cpmSubBlock.
crate() != rodCrate)
710 if (
debug)
msg() <<
"Inconsistent crate number in ROD source ID"
731 return StatusCode::SUCCESS;
743 const int hwCrate = subBlock->
crate();
747 const int timeslices = subBlock->
timeslices();
748 const int sliceNum = subBlock->
slice();
751 msg() <<
"CMX-CP: Crate " << hwCrate
752 <<
" Position " << cmx
753 <<
" Firmware " << firmware
754 <<
" Summing " << summing
755 <<
" Total slices " << timeslices
756 <<
" Slice " << sliceNum
759 if (timeslices <= trigCpm)
761 if (
debug)
msg() <<
"Triggered slice from header "
762 <<
"inconsistent with number of slices: "
763 << trigCpm <<
", " << timeslices <<
endmsg;
767 if (timeslices <= sliceNum)
769 if (
debug)
msg() <<
"Total slices inconsistent with slice number: "
770 << timeslices <<
", " << sliceNum <<
endmsg;
780 msg() <<
"CMX-CP sub-block unpacking failed: " << errMsg <<
endmsg;
791 const int subStatus = dErr.
error();
795 const int sliceBeg = ( neutralFormat ) ? 0 : sliceNum;
796 const int sliceEnd = ( neutralFormat ) ? timeslices : sliceNum + 1;
806 for (
int cpm = 1; cpm <=
m_modules; ++cpm)
809 for (
int tob = 0; tob <
m_maxTobs; ++tob)
814 if (
energy == 0 && isolation == 0 &&
error == 0)
break;
816 const int chip = subBlock->
chip(
slice, cpm, tob);
829 const int key =
tobKey(crate, cmx, cpm, chip, loc);
833 ld.energyVec.assign(timeslices, 0);
834 ld.isolVec.assign(timeslices, 0);
835 ld.errorVec.assign(timeslices, 0);
836 ld.presenceMapVec.assign(timeslices, 0);
840 ld.presenceMapVec[
slice] = presenceMap;
842 std::make_unique<LVL1::CMXCPTob>(swCrate, cmx, cpm, chip, loc,
843 ld.energyVec,
ld.isolVec,
ld.errorVec,
844 ld.presenceMapVec, trigCpm);
845 tdata.
m_tobMap.insert(std::make_pair(
key, tbp.get()));
850 ld.energyVec =
tb->energyVec();
851 ld.isolVec =
tb->isolationVec();
852 ld.errorVec =
tb->errorVec();
853 ld.presenceMapVec =
tb->presenceMapVec();
854 const int nsl =
ld.energyVec.size();
855 if (timeslices != nsl)
857 if (
debug)
msg() <<
"Inconsistent number of slices in sub-blocks"
872 ld.presenceMapVec[
slice] = presenceMap;
873 tb->addTob(
ld.energyVec,
ld.isolVec,
ld.errorVec,
ld.presenceMapVec);
885 for (
int source = 0; source < maxSid; ++source)
892 const unsigned int hits0 = subBlock->
hits(
slice, source, 0);
893 const unsigned int hits1 = subBlock->
hits(
slice, source, 1);
900 err0 = err0Bits.
error();
904 err1 = err1Bits.
error();
905 if (hits0 || hits1 || err0 || err1)
911 ld.hitsVec0.assign(timeslices, 0);
912 ld.hitsVec1.assign(timeslices, 0);
913 ld.errVec0.assign(timeslices, 0);
914 ld.errVec1.assign(timeslices, 0);
920 std::make_unique<LVL1::CMXCPHits>(swCrate, cmx, source,
921 ld.hitsVec0,
ld.hitsVec1,
922 ld.errVec0,
ld.errVec1, trigCpm);
928 ld.hitsVec0 =
ch->hitsVec0();
929 ld.hitsVec1 =
ch->hitsVec1();
930 ld.errVec0 =
ch->errorVec0();
931 ld.errVec1 =
ch->errorVec1();
932 const int nsl =
ld.hitsVec0.size();
933 if (timeslices != nsl)
935 if (
debug)
msg() <<
"Inconsistent number of slices in sub-blocks"
951 ch->addHits(
ld.hitsVec0,
ld.hitsVec1,
ld.errVec0,
ld.errVec1);
971 const int hwCrate = subBlock->
crate();
973 const int timeslices = subBlock->
timeslices();
974 const int sliceNum = subBlock->
slice();
977 msg() <<
"CPM: Crate " << hwCrate
979 <<
" Total slices " << timeslices
980 <<
" Slice " << sliceNum <<
endmsg;
988 if (timeslices <= trigCpm)
990 if (
debug)
msg() <<
"Triggered slice from header "
991 <<
"inconsistent with number of slices: "
992 << trigCpm <<
", " << timeslices <<
endmsg;
996 if (timeslices <= sliceNum)
998 if (
debug)
msg() <<
"Total slices inconsistent with slice number: "
999 << timeslices <<
", " << sliceNum <<
endmsg;
1009 msg() <<
"CPM sub-block unpacking failed: " << errMsg <<
endmsg;
1019 const int subStatus = dErr.
error();
1021 const int sliceBeg = ( neutralFormat ) ? 0 : sliceNum;
1022 const int sliceEnd = ( neutralFormat ) ? timeslices : sliceNum + 1;
1035 int emErr1 = subStatus;
1041 emErr1 = emErrBits.
error();
1043 int hadErr1 = subStatus;
1049 hadErr1 = hadErrBits.
error();
1051 if (em || had || emErr1 || hadErr1)
1060 const unsigned int key =
ld.towerKey.ttKey(
phi,
eta);
1064 ld.emVec.assign(timeslices, 0);
1065 ld.hadVec.assign(timeslices, 0);
1066 ld.emErrVec.assign(timeslices, 0);
1067 ld.hadErrVec.assign(timeslices, 0);
1071 ld.hadErrVec[
slice] = hadErr1;
1073 std::make_unique<LVL1::CPMTower>(
phi,
eta,
ld.emVec,
ld.emErrVec,
1074 ld.hadVec,
ld.hadErrVec, trigCpm);
1075 data.m_ttMap.insert(std::make_pair(
key, ttp.get()));
1076 data.m_ttCollection->push_back(std::move(ttp));
1080 ld.emVec =
tt->emEnergyVec();
1081 ld.hadVec =
tt->hadEnergyVec();
1082 ld.emErrVec =
tt->emErrorVec();
1083 ld.hadErrVec =
tt->hadErrorVec();
1084 const int nsl =
ld.emVec.size();
1085 if (timeslices != nsl)
1089 msg() <<
"Inconsistent number of slices in sub-blocks"
1098 if (
debug)
msg() <<
"Duplicate data for slice "
1106 ld.hadErrVec[
slice] = hadErr1;
1107 tt->fill(
ld.emVec,
ld.emErrVec,
ld.hadVec,
ld.hadErrVec, trigCpm);
1111 else if (
verbose && (em || had || emErr || hadErr))
1113 msg(
MSG::VERBOSE) <<
"Non-zero data but no channel mapping for channel "
1135 ConstCpmTowerMap::const_iterator mapIter = ttMap.find(
key);
1136 if (mapIter != ttMap.end())
return mapIter->second;
1141 const unsigned int key)
const
1143 CpmTowerMap::const_iterator mapIter =
data.m_ttMap.find(
key);
1144 if (mapIter !=
data.m_ttMap.end())
return mapIter->second;
1154 ConstCmxCpTobMap::const_iterator mapIter = tobMap.find(
key);
1155 if (mapIter != tobMap.end())
return mapIter->second;
1160 const int key)
const
1162 CmxCpTobMap::const_iterator mapIter =
data.m_tobMap.find(
key);
1163 if (mapIter !=
data.m_tobMap.end())
return mapIter->second;
1173 ConstCmxCpHitsMap::const_iterator mapIter = hitsMap.find(
key);
1174 if (mapIter != hitsMap.end())
return mapIter->second;
1179 const int key)
const
1181 CmxCpHitsMap::const_iterator mapIter =
data.m_hitsMap.find(
key);
1182 if (mapIter !=
data.m_hitsMap.end())
return mapIter->second;
1198 for (;
pos != pose; ++
pos)
1201 const unsigned int key = towerKey.
ttKey(
tt->phi(),
tt->eta());
1202 ttMap.insert(std::make_pair(
key,
tt));
1210 const tobCollection,
1218 for (;
pos != pose; ++
pos)
1222 const int cmx = tob->
cmx();
1223 const int cpm = tob->
cpm();
1224 const int chip = tob->
chip();
1226 const int key =
tobKey(crate, cmx, cpm, chip, loc);
1227 tobMap.insert(std::make_pair(
key, tob));
1235 const hitCollection,
1243 for (;
pos != pose; ++
pos)
1247 const int cmx =
hits->cmx();
1248 const int source =
hits->source();
1250 hitsMap.insert(std::make_pair(
key,
hits));
1258 const int chip,
const int loc)
const
1260 return (((((((crate << 1) | cmx) << 4) | cpm) << 4) | chip) << 2) | loc;
1266 const int source)
const
1268 return (((crate << 1) | cmx) << 3) | source;
1274 const int modulesPerSlink,
int ×lices,
int &trigCpm,
1292 if ( !
tt )
continue;
1293 const int numdat = 4;
1294 std::vector<int> sums(numdat);
1295 std::vector<int> sizes(numdat);
1297 (
tt->emEnergyVec()).end(), 0);
1299 (
tt->hadEnergyVec()).end(), 0);
1301 (
tt->emErrorVec()).end(), 0);
1303 (
tt->hadErrorVec()).end(), 0);
1304 sizes[0] = (
tt->emEnergyVec()).
size();
1305 sizes[1] = (
tt->hadEnergyVec()).
size();
1306 sizes[2] = (
tt->emErrorVec()).
size();
1307 sizes[3] = (
tt->hadErrorVec()).
size();
1308 const int peak =
tt->peak();
1309 for (
int i = 0;
i < numdat; ++
i)
1311 if (sums[
i] == 0)
continue;
1317 else if (
slices != sizes[
i] || trigC != peak)
return false;
1324 for (
int cmx = 0; cmx <
m_cmxs; ++cmx)
1326 for (
int cpm = 1; cpm <=
m_modules; ++ cpm)
1328 for (
int chip = 0; chip <
m_chips; ++chip)
1330 for (
int loc = 0; loc <
m_locs; ++loc)
1332 const int key =
tobKey(crate, cmx, cpm, chip, loc);
1337 const int numdat = 3;
1338 std::vector<int> sums(numdat);
1339 std::vector<int> sizes(numdat);
1349 const int peak = tob->
peak();
1350 for (
int i = 0;
i < numdat; ++
i)
1352 if (sums[
i] == 0)
continue;
1358 else if (
slices != sizes[
i] || trigC != peak)
return false;
1372 const int numdat = 4;
1373 std::vector<unsigned int> sums(numdat);
1374 std::vector<int> sizes(numdat);
1376 (
hits->hitsVec0()).end(), 0);
1378 (
hits->hitsVec1()).end(), 0);
1380 (
hits->errorVec0()).end(), 0);
1382 (
hits->errorVec1()).end(), 0);
1383 sizes[0] = (
hits->hitsVec0()).
size();
1384 sizes[1] = (
hits->hitsVec1()).
size();
1385 sizes[2] = (
hits->errorVec0()).
size();
1386 sizes[3] = (
hits->errorVec1()).
size();
1387 const int peak =
hits->peak();
1388 for (
int i = 0;
i < numdat; ++
i)
1390 if (sums[
i] == 0)
continue;
1396 else if (
slices != sizes[
i] || trigC != peak)
return false;
int localCoord(int slice, int cpm, int tob) const
Return Local coordinate for given cpm and tob.
uint16_t minorVersionPreLS1() const
Return last ROD header minor version for pre-LS1 data.
void clear()
Clear all data.
char data[hepevt_bytes_allocation_ATLAS]
int slink(uint32_t code) const
Return slink from unpacked moduleID.
Const iterator class for DataVector/DataList.
int cmx() const
returns CMX number (0/1)==(Left/Right)==(Tau/Em)
int unpackErrorCode() const
Return the unpacking error code.
Scalar phi() const
phi method
Template class for assembling a full atlas raw event from subfragments.
bool ends_with(const char *s, const char *suffix)
Test whether one null-terminated byte string ends with another.
Scalar eta() const
pseudorapidity method
static int peak(int oldPeak, int oldSlices, int newSlices)
Return new triggered slice offset.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int isolation(int slice, int cpm, int tob) const
Return isolation for given cpm and tob.
int hadData(int slice, int channel) const
Return Had data for given channel.
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
const std::vector< int > & errorVec() const
returns error
unsigned int presenceMap(int slice, int cpm) const
Return presence map for given CPM.
Summary of CP (EM/tau) hits produced by the merger modules.
void write(FullEventAssembler< L1CaloSrcIdMap >::RODDATA *theROD) const
Output complete packed sub-block to ROD vector.
bool msgLvl(const MSG::Level lvl) const
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
OFFLINE_FRAGMENTS_NAMESPACE::PointerType read(const OFFLINE_FRAGMENTS_NAMESPACE::PointerType beg, const OFFLINE_FRAGMENTS_NAMESPACE::PointerType end)
Input complete packed sub-block from ROD array.
void setPresenceMap(int slice, int cpm, unsigned int map)
Store presence map.
int tobError(int slice, int cpm, int tob) const
Return error bits for given cpm and tob.
Sub-Block class for CPM data post LS1.
unsigned int hits(int slice, int source, int flag) const
Return hit/topo counts for given source ID and HL flag.
static bool cmxBlock(uint32_t word)
Determine if header word corresponds to CMX.
void setHits(int slice, int source, int flag, unsigned int hits, int error)
Store hit counts for given source ID and HL flag.
const std::vector< int > & isolationVec() const
returns isolation
Cluster Processor container for writing bytestream.
void setTob(int slice, int cpm, int chip, int loc, int energy, int isol, int error)
Store TOB (RoI) data for given CPM, chip, local coord.
The CPMTower class contains the TriggerTower information received by the Cluster Processor Modules.
static void data(const std::vector< int > &oldVec, std::vector< int > &newVec, int newSlices)
Return modified data vector<int>
(Non-const) Iterator class for DataVector/DataList.
int timeslices() const
Return number of timeslices.
const std::vector< int > & energyVec() const
For multi-slice readout.
int hitsError(int slice, int source, int flag) const
Return hit error for given source ID and HL flag.
::StatusCode StatusCode
StatusCode definition for legacy code.
void set(ErrorBit bit, int value=1)
Set an error bit or data.
int crate(uint32_t code) const
Return crate from unpacked moduleID.
bool unpack()
Unpack data.
#define CHECK(...)
Evaluate an expression and check for errors.
Sub-Block class for CMX-CP data post LS1.
void fillTowerData(int slice, int channel, int em, int had, int emErr, int hadErr)
Store trigger tower data.
std::vector< const ROBF * > VROBFRAG
void setCpmHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store CPM header.
int hadError(int slice, int channel) const
Return Had error for given channel.
void setRoiOverflow(int slice, int source, int overflow)
Store RoI overflow for given source ID.
static SubBlockWordType wordType(uint32_t word)
Word identification.
int roiOverflow(int slice, int source) const
Return RoI overflow for given source ID.
int chip(int slice, int cpm, int tob) const
Return chip for given cpm and tob.
C++20-like starts_with/ends_with for strings.
int error() const
Return the full error word.
std::string unpackErrorMsg() const
Return the unpacking error message for printing.
int chip() const
returns chip number (3 or 4 bits?)
int crate() const
Data accessors.
int emData(int slice, int channel) const
Return Em data for given channel.
uint16_t minorVersion() const
Return ROD header minor version to use when writing BS.
int dataWords() const
Return number of data words.
uint32_t subStatus() const
Return Sub-status word.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void clear()
Clear all data.
static CmxFirmwareCode cmxType(uint32_t word)
CMX differentiation (CMX_CP, CMX_JET, or CMX_ENERGY)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
int peak() const
returns peak slice number
eformat::SubDetector subDet(uint32_t code) const
Return sub-detector for given ID.
void setCmxHeader(int version, int format, int slice, int crate, int summing, int firmware, int position, int timeslices)
Store CMX header.
void setRodMinorVersion(uint16_t m)
change the ROD minor version
int cpm() const
returns CPM number
bool anyTowerData(int channel) const
Return true if there is tower data for given channel.
int energy(int slice, int cpm, int tob) const
Return energy for given cpm and tob.
uint32_t getRodID(int crate, int slink, int daqOrRoi, eformat::SubDetector subdet) const
Make a ROD Source ID.
int location() const
returns location (3 or 2 bits?)
std::vector< uint32_t > RODDATA
ROD data as a vector of unsigned int.
int get(ErrorBit bit) const
Return an error bit or data.
virtual unsigned int ttKey(const TriggerTower &tower)
returns the key of the passed tower
int maxSlinks() const
Return the maximum possible number of slinks.
TOB data received by the merger modules.
void setStatus(uint32_t failingBCN, bool glinkTimeout, bool glinkDown, bool upstreamError, bool daqOverflow, bool bcnMismatch, bool glinkProtocol, bool glinkParity)
Store error status trailer.
int daqOrRoi(uint32_t code) const
Return daqOrRoi from unpacked moduleID.
The TriggerTowerKey object provides the key for each trigger tower depending on its eta-phi coords.
RODDATA * getRodData(uint32_t id)
get a block of ROD data
bool unpack()
Unpack data.
int emError(int slice, int channel) const
Return Em error for given channel.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.