CMS 3D CMS Logo

L1CaloMipQuietRegion.cc
Go to the documentation of this file.
2 
3 // Namespace resolution
4 using std::dec;
5 using std::endl;
6 using std::hex;
7 using std::noshowbase;
8 using std::ostream;
9 using std::showbase;
10 
11 L1CaloMipQuietRegion::L1CaloMipQuietRegion() : m_id(), m_data(0), m_bx(0) {}
12 
13 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned crate, unsigned card, unsigned rgn, int16_t bx)
14  : m_id(crate, card, rgn),
15  m_data(0), // Over-ridden below
16  m_bx(bx) {
17  pack(mip, quiet);
18 }
19 
20 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned ieta, unsigned iphi, int16_t bx)
21  : m_id(ieta, iphi),
22  m_data(0), // Over-ridden below
23  m_bx(bx) {
24  pack(mip, quiet);
25 }
26 
28  return (m_data == rhs.raw() && m_bx == rhs.bx() && m_id == rhs.id());
29 }
30 
31 ostream& operator<<(ostream& os, const L1CaloMipQuietRegion& rhs) {
32  os << "L1CaloMipQuietRegion:"
33  << " MIP=" << rhs.mip() << " Quiet=" << rhs.quiet() << endl
34  << " RCT crate=" << rhs.rctCrate() << " RCT card=" << rhs.rctCard() << " RCT rgn=" << rhs.rctRegionIndex()
35  << " RCT eta=" << rhs.rctEta() << " RCT phi=" << rhs.rctPhi() << endl
36  << " GCT eta=" << rhs.gctEta() << " GCT phi=" << rhs.gctPhi() << " BX=" << rhs.bx() << endl;
37  return os;
38 }
L1CaloMipQuietRegion::rctEta
unsigned rctEta() const
Get local eta index (within RCT crate).
Definition: L1CaloMipQuietRegion.h:67
L1CaloMipQuietRegion::m_bx
int16_t m_bx
Bunch crossing.
Definition: L1CaloMipQuietRegion.h:93
L1CaloMipQuietRegion::mip
bool mip() const
Get MIP bit.
Definition: L1CaloMipQuietRegion.h:43
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
L1CaloMipQuietRegion::raw
uint8_t raw() const
Get raw data.
Definition: L1CaloMipQuietRegion.h:41
L1CaloMipQuietRegion::m_id
L1CaloRegionDetId m_id
Geographical info: region ID.
Definition: L1CaloMipQuietRegion.h:89
L1CaloMipQuietRegion
Miniumum Ionising Particle (MIP) and Quiet bits for a calorimeter trigger region.
Definition: L1CaloMipQuietRegion.h:15
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
L1CaloMipQuietRegion::id
L1CaloRegionDetId id() const
Get global region ID.
Definition: L1CaloMipQuietRegion.h:59
L1CaloMipQuietRegion::m_data
uint8_t m_data
MIP and Quiet bits for the region, packed in bit0 + bit1 respectively.
Definition: L1CaloMipQuietRegion.h:91
L1CaloMipQuietRegion::bx
int16_t bx() const
Get bunch crossing.
Definition: L1CaloMipQuietRegion.h:47
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
L1CaloMipQuietRegion::gctPhi
unsigned gctPhi() const
Get GCT phi index.
Definition: L1CaloMipQuietRegion.h:73
L1CaloMipQuietRegion::rctPhi
unsigned rctPhi() const
Get local phi index (within RCT crate).
Definition: L1CaloMipQuietRegion.h:69
L1CaloMipQuietRegion.h
L1CaloMipQuietRegion::rctRegionIndex
unsigned rctRegionIndex() const
Get RCT region index.
Definition: L1CaloMipQuietRegion.h:65
L1CaloMipQuietRegion::L1CaloMipQuietRegion
L1CaloMipQuietRegion()
Default constructor.
Definition: L1CaloMipQuietRegion.cc:11
L1CaloMipQuietRegion::quiet
bool quiet() const
Get Quiet bit.
Definition: L1CaloMipQuietRegion.h:45
L1CaloMipQuietRegion::gctEta
unsigned gctEta() const
Get GCT eta index.
Definition: L1CaloMipQuietRegion.h:71
L1CaloMipQuietRegion::rctCrate
unsigned rctCrate() const
Get RCT crate ID.
Definition: L1CaloMipQuietRegion.h:61
L1CaloMipQuietRegion::pack
void pack(bool mip, bool quiet)
For use in constructors - packs MIP/Quiet bools up into m_data;.
Definition: L1CaloMipQuietRegion.h:98
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
L1CaloMipQuietRegion::rctCard
unsigned rctCard() const
Get RCT reciever card ID.
Definition: L1CaloMipQuietRegion.h:63
L1CaloMipQuietRegion::operator==
bool operator==(const L1CaloMipQuietRegion &rhs) const
Equality operator; compares all data: MIP/Quiet bits, bunch crossing & geographical.
Definition: L1CaloMipQuietRegion.cc:27
operator<<
ostream & operator<<(ostream &os, const L1CaloMipQuietRegion &rhs)
Definition: L1CaloMipQuietRegion.cc:31