29 int nBX, firstBX, lastBX;
38 for (
int bx=firstBX; bx<=lastBX; bx++){
43 std::vector <uint32_t> uint;
51 uint.push_back(block.
payload()[i++]);
52 uint.push_back(block.
payload()[i++]);
53 uint.push_back(block.
payload()[i++]);
54 uint.push_back(block.
payload()[i++]);
55 uint.push_back(block.
payload()[i++]);
56 uint.push_back(block.
payload()[i++]);
58 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
64 for(
int j = 0; j < 4; j++) {
66 unsigned int rank=(
unsigned int)converter.
GetNEEt(j);
67 unsigned int reg=(
unsigned int)converter.
GetNEReg(j);
70 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"NON ISO em rank="<<rank<<
", region="<<reg<<
", card="<<card<<std::endl;
73 resRCTEMCands_->push_back(em);
76 for(
int j = 0; j < 4; j++) {
78 unsigned int rank=converter.
GetIEEt(j);
79 unsigned int reg=converter.
GetIEReg(j);
82 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"ISO em rank="<<rank<<
", region="<<reg<<
", card="<<card<<std::endl;
84 resRCTEMCands_->push_back(em);
93 int nBX, firstBX, lastBX;
101 std::vector <uint32_t> uint;
104 for (
int bx=firstBX; bx<=lastBX; bx++){
114 uint.push_back(block.
payload()[i++]);
115 uint.push_back(block.
payload()[i++]);
116 uint.push_back(block.
payload()[i++]);
117 uint.push_back(block.
payload()[i++]);
118 uint.push_back(block.
payload()[i++]);
119 uint.push_back(block.
payload()[i++]);
121 LogDebug(
"L1T")<<
"--------------- mp7 link ="<<mp7link<<
"RCT crate id="<<crate<<
", RCT crate even="<<even<<std::endl;
128 for(
int j = 0; j < 8; j++) {
130 unsigned int hfet=(
unsigned int)converter.
GetHFEt(j);
133 LogDebug(
"L1T")<<
"UNPACKER, CRATE"<<crate<<
"region="<<j<<
", rgnEt="<<hfet<<std::endl;
136 resRCTRegions_->push_back(rgn);
146 for(
int j = 0; j < 7; j++) {
147 for(
int k = 0;
k < 2;
k++) {
149 unsigned int RCet=(
unsigned int)converter.
GetRCEt(j,
k);
155 LogDebug(
"L1T")<<
"UNPACKER, CRATE="<<crate<<
",region="<<
k<<
", card="<<j<<
", rgnEt="<<RCet<<
", overflow="<<overflow<<
", tauveto="<<tauveto<<
", hadveto="<<hadveto<<std::endl;
158 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
bool unpack(const Block &block, UnpackerCollections *coll) override
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)
#define DEFINE_L1T_UNPACKER(type)
A calorimeter trigger region (sum of 4x4 trigger towers)
int GetRCOf(int card, int region)