30 auto resRCTEMCands_ =
static_cast<CaloCollections*
>(coll)->getCaloEmCands();
39 std::vector<uint32_t>
uint;
44 int mp7link = (
int)(
block.header().getID() / 2);
54 LogDebug(
"L1T") <<
"--------------- mp7 link =" << mp7link <<
"RCT crate id=" <<
crate 55 <<
", RCT crate even=" << even << std::endl;
58 for (
int i = 0;
i < 6;
i++)
62 for (
int j = 0;
j < 4;
j++) {
67 LogDebug(
"L1T") <<
"UNPACKER, CRATE" <<
crate <<
"NON ISO em rank=" << rank <<
", region=" << reg
68 <<
", card=" << card << std::endl;
71 resRCTEMCands_->push_back(em);
74 for (
int j = 0;
j < 4;
j++) {
79 LogDebug(
"L1T") <<
"UNPACKER, CRATE" <<
crate <<
"ISO em rank=" << rank <<
", region=" << reg
80 <<
", card=" << card << std::endl;
82 resRCTEMCands_->push_back(em);
93 auto resRCTRegions_ =
static_cast<CaloCollections*
>(coll)->getCaloRegions();
97 std::vector<uint32_t>
uint;
106 int mp7link = (
int)(
block.header().getID() / 2);
116 LogDebug(
"L1T") <<
"--------------- mp7 link =" << mp7link <<
"RCT crate id=" <<
crate 117 <<
", RCT crate even=" << even << std::endl;
120 for (
int i = 0;
i < 6;
i++)
124 for (
int j = 0;
j < 8;
j++) {
128 LogDebug(
"L1T") <<
"UNPACKER, CRATE" <<
crate <<
"region=" <<
j <<
", rgnEt=" << hfet << std::endl;
131 resRCTRegions_->push_back(rgn);
136 for (
int i = 0;
i < 6;
i++)
140 for (
int j = 0;
j < 7;
j++) {
141 for (
int k = 0;
k < 2;
k++) {
148 LogDebug(
"L1T") <<
"UNPACKER, CRATE=" <<
crate <<
",region=" <<
k <<
", card=" <<
j <<
", rgnEt=" << RCet
149 <<
", overflow=" << overflow <<
", tauveto=" << tauveto <<
", hadveto=" << hadveto
153 resRCTRegions_->push_back(rgn);
161 if (
block.header().getCapID() == 0) {
163 }
else if (
block.header().getCapID() == 1) {
constexpr int32_t ceil(float num)
void unpack_em(const Block &block, UnpackerCollections *coll)
void unpack_region(const Block &block, UnpackerCollections *coll)
void getBXRange(int nbx, int &first, int &last)
void setBx(int16_t bx)
set bx
Level-1 Region Calorimeter Trigger EM candidate.
bool unpack(const Block &block, UnpackerCollections *coll) override
void GetLinkRCT(int linkMP7, unsigned int &RCTcrate, bool &RCTeven)
#define DEFINE_L1T_UNPACKER(type)
A calorimeter trigger region (sum of 4x4 trigger towers)