Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:25

0001 #include "DataFormats/L1CaloTrigger/interface/L1CaloMipQuietRegion.h"
0002 
0003 // Namespace resolution
0004 using std::dec;
0005 using std::endl;
0006 using std::hex;
0007 using std::noshowbase;
0008 using std::ostream;
0009 using std::showbase;
0010 
0011 L1CaloMipQuietRegion::L1CaloMipQuietRegion() : m_id(), m_data(0), m_bx(0) {}
0012 
0013 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned crate, unsigned card, unsigned rgn, int16_t bx)
0014     : m_id(crate, card, rgn),
0015       m_data(0),  // Over-ridden below
0016       m_bx(bx) {
0017   pack(mip, quiet);
0018 }
0019 
0020 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned ieta, unsigned iphi, int16_t bx)
0021     : m_id(ieta, iphi),
0022       m_data(0),  // Over-ridden below
0023       m_bx(bx) {
0024   pack(mip, quiet);
0025 }
0026 
0027 bool L1CaloMipQuietRegion::operator==(const L1CaloMipQuietRegion& rhs) const {
0028   return (m_data == rhs.raw() && m_bx == rhs.bx() && m_id == rhs.id());
0029 }
0030 
0031 ostream& operator<<(ostream& os, const L1CaloMipQuietRegion& rhs) {
0032   os << "L1CaloMipQuietRegion:"
0033      << " MIP=" << rhs.mip() << " Quiet=" << rhs.quiet() << endl
0034      << " RCT crate=" << rhs.rctCrate() << " RCT card=" << rhs.rctCard() << " RCT rgn=" << rhs.rctRegionIndex()
0035      << " RCT eta=" << rhs.rctEta() << " RCT phi=" << rhs.rctPhi() << endl
0036      << " GCT eta=" << rhs.gctEta() << " GCT phi=" << rhs.gctPhi() << " BX=" << rhs.bx() << endl;
0037   return os;
0038 }