Miniumum Ionising Particle (MIP) and Quiet bits for a calorimeter trigger region. More...
#include <L1CaloMipQuietRegion.h>
Public Member Functions | |
int16_t | bx () const |
Get bunch crossing. More... | |
bool | empty () const |
Is the object empty? Currently always returns false. More... | |
unsigned | gctEta () const |
Get GCT eta index. More... | |
unsigned | gctPhi () const |
Get GCT phi index. More... | |
L1CaloRegionDetId | id () const |
Get global region ID. More... | |
L1CaloMipQuietRegion () | |
Default constructor. More... | |
L1CaloMipQuietRegion (bool mip, bool quiet, unsigned crate, unsigned card, unsigned rgn, int16_t bx) | |
Constructor for RCT emulator (HB/HE regions) More... | |
L1CaloMipQuietRegion (bool mip, bool quiet, unsigned ieta, unsigned iphi, int16_t bx=0) | |
Construct with GCT eta,phi indices, for testing GCT emulator. More... | |
bool | mip () const |
Get MIP bit. More... | |
bool | operator!= (const L1CaloMipQuietRegion &rhs) const |
Inequality operator. More... | |
bool | operator== (const L1CaloMipQuietRegion &rhs) const |
Equality operator; compares all data: MIP/Quiet bits, bunch crossing & geographical. More... | |
bool | quiet () const |
Get Quiet bit. More... | |
uint8_t | raw () const |
Get raw data. More... | |
unsigned | rctCard () const |
Get RCT reciever card ID. More... | |
unsigned | rctCrate () const |
Get RCT crate ID. More... | |
unsigned | rctEta () const |
Get local eta index (within RCT crate). More... | |
unsigned | rctPhi () const |
Get local phi index (within RCT crate). More... | |
unsigned | rctRegionIndex () const |
Get RCT region index. More... | |
void | reset () |
Resets the data content - i.e. resets MIP/Quiet and bx, but not position ID! More... | |
void | setBx (int16_t bx) |
Set bunch crossing. More... | |
void | setMip (bool mip) |
Set MIP bit. More... | |
void | setQuiet (bool quiet) |
Set Quiet bit. More... | |
~L1CaloMipQuietRegion () | |
Destructor. More... | |
Private Member Functions | |
void | pack (bool mip, bool quiet) |
For use in constructors - packs MIP/Quiet bools up into m_data;. More... | |
Private Attributes | |
int16_t | m_bx |
Bunch crossing. More... | |
uint8_t | m_data |
MIP and Quiet bits for the region, packed in bit0 + bit1 respectively. More... | |
L1CaloRegionDetId | m_id |
Geographical info: region ID. More... | |
Miniumum Ionising Particle (MIP) and Quiet bits for a calorimeter trigger region.
Definition at line 15 of file L1CaloMipQuietRegion.h.
L1CaloMipQuietRegion::L1CaloMipQuietRegion | ( | ) |
Default constructor.
Definition at line 11 of file L1CaloMipQuietRegion.cc.
L1CaloMipQuietRegion::L1CaloMipQuietRegion | ( | bool | mip, |
bool | quiet, | ||
unsigned | crate, | ||
unsigned | card, | ||
unsigned | rgn, | ||
int16_t | bx | ||
) |
L1CaloMipQuietRegion::L1CaloMipQuietRegion | ( | bool | mip, |
bool | quiet, | ||
unsigned | ieta, | ||
unsigned | iphi, | ||
int16_t | bx = 0 |
||
) |
|
inline |
|
inline |
Get bunch crossing.
Definition at line 47 of file L1CaloMipQuietRegion.h.
References m_bx.
Referenced by operator<<(), operator==(), and setBx().
|
inline |
Is the object empty? Currently always returns false.
Definition at line 78 of file L1CaloMipQuietRegion.h.
|
inline |
Get GCT eta index.
Definition at line 71 of file L1CaloMipQuietRegion.h.
References L1CaloRegionDetId::ieta(), and m_id.
Referenced by operator<<().
|
inline |
Get GCT phi index.
Definition at line 73 of file L1CaloMipQuietRegion.h.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by operator<<().
|
inline |
Get global region ID.
Definition at line 59 of file L1CaloMipQuietRegion.h.
References m_id.
Referenced by operator==().
|
inline |
Get MIP bit.
Definition at line 43 of file L1CaloMipQuietRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1CaloMipQuietRegion(), operator<<(), pack(), and setMip().
|
inline |
Inequality operator.
Definition at line 37 of file L1CaloMipQuietRegion.h.
bool L1CaloMipQuietRegion::operator== | ( | const L1CaloMipQuietRegion & | rhs | ) | const |
|
inlineprivate |
For use in constructors - packs MIP/Quiet bools up into m_data;.
Definition at line 98 of file L1CaloMipQuietRegion.h.
References m_data, mip(), and quiet().
Referenced by L1CaloMipQuietRegion().
|
inline |
Get Quiet bit.
Definition at line 45 of file L1CaloMipQuietRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1CaloMipQuietRegion(), operator<<(), pack(), and setQuiet().
|
inline |
Get raw data.
Definition at line 41 of file L1CaloMipQuietRegion.h.
References m_data.
Referenced by operator==().
|
inline |
Get RCT reciever card ID.
Definition at line 63 of file L1CaloMipQuietRegion.h.
References m_id, and L1CaloRegionDetId::rctCard().
Referenced by operator<<().
|
inline |
Get RCT crate ID.
Definition at line 61 of file L1CaloMipQuietRegion.h.
References m_id, and L1CaloRegionDetId::rctCrate().
Referenced by operator<<().
|
inline |
Get local eta index (within RCT crate).
Definition at line 67 of file L1CaloMipQuietRegion.h.
References m_id, and L1CaloRegionDetId::rctEta().
Referenced by operator<<().
|
inline |
Get local phi index (within RCT crate).
Definition at line 69 of file L1CaloMipQuietRegion.h.
References m_id, and L1CaloRegionDetId::rctPhi().
Referenced by operator<<().
|
inline |
Get RCT region index.
Definition at line 65 of file L1CaloMipQuietRegion.h.
References m_id, and L1CaloRegionDetId::rctRegion().
Referenced by operator<<().
|
inline |
|
inline |
Set bunch crossing.
Definition at line 55 of file L1CaloMipQuietRegion.h.
|
inline |
|
inline |
Set Quiet bit.
Definition at line 53 of file L1CaloMipQuietRegion.h.
|
private |
Bunch crossing.
Definition at line 93 of file L1CaloMipQuietRegion.h.
Referenced by bx(), operator==(), reset(), and setBx().
|
private |
MIP and Quiet bits for the region, packed in bit0 + bit1 respectively.
Definition at line 91 of file L1CaloMipQuietRegion.h.
Referenced by mip(), operator==(), pack(), quiet(), raw(), reset(), setMip(), and setQuiet().
|
private |
Geographical info: region ID.
Definition at line 89 of file L1CaloMipQuietRegion.h.
Referenced by gctEta(), gctPhi(), id(), operator==(), rctCard(), rctCrate(), rctEta(), rctPhi(), and rctRegionIndex().