38 int nBX, firstBX, lastBX;
47 for (
int bx=firstBX; bx<=lastBX; bx++){
52 std::vector <uint32_t> uint;
60 uint.push_back(block.
payload()[i++]);
61 uint.push_back(block.
payload()[i++]);
62 uint.push_back(block.
payload()[i++]);
63 uint.push_back(block.
payload()[i++]);
64 uint.push_back(block.
payload()[i++]);
65 uint.push_back(block.
payload()[i++]);
67 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
73 for(
int j = 0;
j < 4;
j++) {
75 unsigned int rank=(
unsigned int)converter.
GetNEEt(
j);
76 unsigned int reg=(
unsigned int)converter.
GetNEReg(
j);
77 unsigned int card=(
unsigned int)converter.
GetNECard(
j);
79 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"NON ISO em rank="<<rank<<
", region="<<reg<<
", card="<<card<<std::endl;
82 resRCTEMCands_->push_back(em);
85 for(
int j = 0;
j < 4;
j++) {
87 unsigned int rank=converter.
GetIEEt(
j);
91 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"ISO em rank="<<rank<<
", region="<<reg<<
", card="<<card<<std::endl;
93 resRCTEMCands_->push_back(em);
102 int nBX, firstBX, lastBX;
110 std::vector <uint32_t> uint;
113 for (
int bx=firstBX; bx<=lastBX; bx++){
123 uint.push_back(block.
payload()[i++]);
124 uint.push_back(block.
payload()[i++]);
125 uint.push_back(block.
payload()[i++]);
126 uint.push_back(block.
payload()[i++]);
127 uint.push_back(block.
payload()[i++]);
128 uint.push_back(block.
payload()[i++]);
130 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
137 for(
int j = 0;
j < 8;
j++) {
139 unsigned int hfet=(
unsigned int)converter.
GetHFEt(
j);
140 bool hfgrain=(bool)converter.
GetHFFg(
j);
142 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"region="<<
j<<
", rgnEt="<<hfet<<std::endl;
145 resRCTRegions_->push_back(rgn);
155 for(
int j = 0;
j < 7;
j++) {
156 for(
int k = 0;
k < 2;
k++) {
158 unsigned int RCet=(
unsigned int)converter.
GetRCEt(
j,
k);
159 bool overflow=(bool)converter.
GetRCOf(
j,
k);
164 LogDebug(
"L1T")<<
"UNPACKER, CRATE="<<crate<<
",region="<<
k<<
", card="<<
j<<
", rgnEt="<<RCet<<
", overflow="<<overflow<<
", tauveto="<<tauveto<<
", hadveto="<<hadveto<<std::endl;
167 resRCTRegions_->push_back(rgn);
int GetRCTau(int card, int region)
void unpack_em(const Block &block, UnpackerCollections *coll)
void unpack_region(const Block &block, UnpackerCollections *coll)
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
void setBx(int16_t bx)
set bx
Level-1 Region Calorimeter Trigger EM candidate.
std::vector< uint32_t > payload() const
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
void Set32bitWordLinkEven(int index, uint32_t value)
int GetRCHad(int card, int region)
void GetLinkRCT(int linkMP7, unsigned int &RCTcrate, bool &RCTeven)
int GetRCEt(int card, int region)
void Set32bitWordLinkOdd(int index, uint32_t value)
A calorimeter trigger region (sum of 4x4 trigger towers)
int GetRCOf(int card, int region)