15 L1CaloRegion::L1CaloRegion(
unsigned et,
bool overFlow,
bool tauVeto,
bool mip,
bool quiet,
unsigned crate,
unsigned card,
unsigned rgn) :
16 m_id(crate, card, rgn),
20 pack(et, overFlow, tauVeto, mip, quiet);
25 m_id(crate, 999, rgn),
29 pack((et & 0xff), (et >= 0xff), fineGrain,
false,
false);
44 pack(et, overFlow, fineGrain, mip, quiet);
73 r.
pack(et, overFlow, tauVeto, mip, quiet);
85 r.
pack((et & 0xff), (et >= 0xff), fineGrain,
false,
false);
100 r.
pack(et, overFlow, fineGrain, mip, quiet);
123 const bool fineGrain,
142 if (mip) {
m_data |= 0x1000; }
143 else {
m_data &= 0xefff; }
148 if (quiet) {
m_data |= 0x2000; }
149 else {
m_data &= 0xdfff; }
153 bool checkOvF = overFlow || (et>=0x400);
156 ((checkOvF) ? 0x400 : 0x0) |
157 ((fineGrain) ? 0x800 : 0x0) |
158 ((mip) ? 0x1000 : 0x0) |
159 ((quiet) ? 0x2000 : 0x0);
163 bool checkOvF = overFlow || (et>=0x400);
166 ((checkOvF) ? 0x400 : 0x0) |
167 ((fineGrain) ? 0x800 : 0x0) |
168 ((mip) ? 0x1000 : 0x0) |
169 ((quiet) ? 0x2000 : 0x0);
174 os <<
"L1CaloRegion:";
175 os <<
" Et=" << reg.
et();
178 os <<
" tau=" << reg.
tauVeto() << endl;
179 os <<
" RCT crate=" << reg.
rctCrate();
180 os <<
" RCT card=" << reg.
rctCard();
182 os <<
" RCT eta=" << reg.
rctEta();
183 os <<
" RCT phi=" << reg.
rctPhi() << endl;
184 os <<
" GCT eta=" << reg.
gctEta();
185 os <<
" GCT phi=" << reg.
gctPhi() << endl;
186 os << hex <<
" cap block=" << reg.
capBlock() << dec <<
", index=" << reg.
capIndex() <<
", BX=" << reg.
bx();
int16_t bx() const
get bunch-crossing index
unsigned capIndex() const
what index within capture block
~L1CaloRegion()
destructor
unsigned et() const
get Et
bool overFlow() const
get overflow
uint16_t m_data
region data : et, overflow, fine grain/tau veto, mip and quiet bits
unsigned rctEta() const
get local eta index (within RCT crate)
unsigned rctCrate() const
get RCT crate ID
unsigned rctCard() const
get RCT reciever card ID (valid output for HB/HE)
void setRawData(uint32_t data)
set data
void setBx(int16_t bx)
set bx
static L1CaloRegion makeHBHERegion(const unsigned et, const bool overFlow, const bool tauVeto, const bool mip, const bool quiet, const unsigned crate, const unsigned card, const unsigned rgn)
constructor HB/HE region from components
unsigned rctRegionIndex() const
get RCT region index
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void setRegionId(L1CaloRegionDetId id)
set region ID
void setCaptureBlock(uint16_t capBlock)
set cap block
bool tauVeto() const
get tau veto bit
void setCaptureIndex(uint16_t capIndex)
set cap index
unsigned rctPhi() const
get local phi index (within RCT crate)
void setMip(bool mip)
set MIP bit (required for GCT emulator standalone operation)
void pack(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
block
Formating index page's pieces.
void pack12BitsEt(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
static L1CaloRegion makeGctJetRegion(const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx)
construct region for use in GCT internal jet-finding
bool fineGrain() const
get fine grain bit
unsigned gctEta() const
get GCT eta index
static L1CaloRegion makeRegionFromGctIndices(const unsigned et, const bool overFlow, const bool fineGrain, const bool mip, const bool quiet, const unsigned ieta, const unsigned iphi)
construct region from GCT indices
unsigned gctPhi() const
get GCT phi index
char data[epos_bytes_allocation]
void setQuiet(bool quiet)
set quiet bit (required for GCT emulator standalone operation)
static L1CaloRegion makeHFRegion(const unsigned et, const bool fineGrain, const unsigned crate, const unsigned rgn)
construct HF region from components
A calorimeter trigger region (sum of 4x4 trigger towers)
static L1CaloRegion makeRegionFromUnpacker(const uint16_t data, const unsigned ieta, const unsigned iphi, const uint16_t block, const uint16_t index, const int16_t bx)
constructor from raw data and GCT indices for unpacking
unsigned capBlock() const
which capture block did this come from
L1CaloRegion()
default constructor