Go to the documentation of this file. 1 #ifndef L1CALOMIPQUIETREGION_H
2 #define L1CALOMIPQUIETREGION_H
78 bool empty()
const {
return false; }
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
void setMip(bool mip)
Set MIP bit.
unsigned rctEta() const
return local RCT eta index (0-10)
unsigned rctEta() const
Get local eta index (within RCT crate).
int16_t m_bx
Bunch crossing.
bool mip() const
Get MIP bit.
std::ostream & operator<<(std::ostream &os, const L1CaloMipQuietRegion &rhs)
Stream insertion operator - no need to be a friend.
uint8_t raw() const
Get raw data.
L1CaloRegionDetId m_id
Geographical info: region ID.
Miniumum Ionising Particle (MIP) and Quiet bits for a calorimeter trigger region.
void reset()
Resets the data content - i.e. resets MIP/Quiet and bx, but not position ID!
unsigned ieta() const
global eta index (0-21)
~L1CaloMipQuietRegion()
Destructor.
L1CaloRegionDetId id() const
Get global region ID.
uint8_t m_data
MIP and Quiet bits for the region, packed in bit0 + bit1 respectively.
bool empty() const
Is the object empty? Currently always returns false.
int16_t bx() const
Get bunch crossing.
unsigned gctPhi() const
Get GCT phi index.
unsigned rctPhi() const
Get local phi index (within RCT crate).
unsigned iphi() const
global phi index (0-17)
unsigned rctRegionIndex() const
Get RCT region index.
unsigned rctPhi() const
return local RCT phi index (0-1)
bool operator!=(const L1CaloMipQuietRegion &rhs) const
Inequality operator.
L1CaloMipQuietRegion()
Default constructor.
bool quiet() const
Get Quiet bit.
unsigned rctCard() const
return RCT card number (0-6)
void setBx(int16_t bx)
Set bunch crossing.
unsigned gctEta() const
Get GCT eta index.
unsigned rctCrate() const
Get RCT crate ID.
void pack(bool mip, bool quiet)
For use in constructors - packs MIP/Quiet bools up into m_data;.
unsigned rctCard() const
Get RCT reciever card ID.
bool operator==(const L1CaloMipQuietRegion &rhs) const
Equality operator; compares all data: MIP/Quiet bits, bunch crossing & geographical.
void setQuiet(bool quiet)
Set Quiet bit.
unsigned rctCrate() const
return RCT crate number (0-17)