CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/L1CaloTrigger/src/L1CaloMipQuietRegion.cc

Go to the documentation of this file.
00001 #include "DataFormats/L1CaloTrigger/interface/L1CaloMipQuietRegion.h"
00002 
00003 
00004 // Namespace resolution
00005 using std::ostream;
00006 using std::endl;
00007 using std::hex;
00008 using std::dec;
00009 using std::showbase;
00010 using std::noshowbase;
00011 
00012 
00013 L1CaloMipQuietRegion::L1CaloMipQuietRegion():
00014   m_id(),
00015   m_data(0),
00016   m_bx(0)
00017 {
00018 }
00019 
00020 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned crate,
00021                                            unsigned card, unsigned rgn, int16_t bx):
00022   m_id(crate, card, rgn),
00023   m_data(0), // Over-ridden below
00024   m_bx(bx)
00025 {
00026   pack(mip, quiet);
00027 }
00028 
00029 L1CaloMipQuietRegion::L1CaloMipQuietRegion(bool mip, bool quiet, unsigned ieta,
00030                                            unsigned iphi, int16_t bx):
00031   m_id(ieta, iphi),
00032   m_data(0), // Over-ridden below
00033   m_bx(bx)
00034 {
00035   pack(mip, quiet);
00036 }
00037 
00038 bool L1CaloMipQuietRegion::operator==(const L1CaloMipQuietRegion& rhs) const
00039 {
00040   return ( m_data==rhs.raw() && m_bx==rhs.bx() && m_id==rhs.id() );
00041 }
00042 
00043 ostream& operator<< (ostream& os, const L1CaloMipQuietRegion& rhs)
00044 {
00045   os <<"L1CaloMipQuietRegion:"
00046      << " MIP=" << rhs.mip()
00047      << " Quiet=" << rhs.quiet() << endl
00048      << " RCT crate=" << rhs.rctCrate()
00049      << " RCT card=" << rhs.rctCard()
00050      << " RCT rgn=" << rhs.rctRegionIndex()
00051      << " RCT eta=" << rhs.rctEta()
00052      << " RCT phi=" << rhs.rctPhi() << endl
00053      << " GCT eta=" << rhs.gctEta()
00054      << " GCT phi=" << rhs.gctPhi()
00055      << " BX=" << rhs.bx() << endl;
00056   return os;
00057 }