CMS 3D CMS Logo

Public Member Functions | Public Attributes

MuonHOAcceptance::deadIdRegion Struct Reference

List of all members.

Public Member Functions

bool adjacentEta (deadIdRegion const &other)
bool adjacentPhi (deadIdRegion const &other)
 deadIdRegion (deadIdRegion const &other)
 deadIdRegion (int eMin=0, int eMax=0, int pMin=0, int pMax=0)
void merge (deadIdRegion const &other)
bool operator== (deadIdRegion const &other)
bool sameEta (deadIdRegion const &other)
bool samePhi (deadIdRegion const &other)

Public Attributes

int etaMax
int etaMin
int phiMax
int phiMin

Detailed Description

Definition at line 43 of file MuonHOAcceptance.h.


Constructor & Destructor Documentation

MuonHOAcceptance::deadIdRegion::deadIdRegion ( int  eMin = 0,
int  eMax = 0,
int  pMin = 0,
int  pMax = 0 
) [inline]

Definition at line 44 of file MuonHOAcceptance.h.

                                                                           :
      etaMin(eMin), etaMax(eMax), phiMin(pMin), phiMax(pMax) { }
MuonHOAcceptance::deadIdRegion::deadIdRegion ( deadIdRegion const &  other) [inline]

Definition at line 46 of file MuonHOAcceptance.h.

                                              :
      etaMin(other.etaMin), etaMax(other.etaMax), 
      phiMin(other.phiMin), phiMax(other.phiMax) { }

Member Function Documentation

bool MuonHOAcceptance::deadIdRegion::adjacentEta ( deadIdRegion const &  other) [inline]

Definition at line 63 of file MuonHOAcceptance.h.

References etaMax, and etaMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

                                                 {
      return ( (other.etaMin-1 == etaMax) || 
               (etaMin-1 == other.etaMax ) );
    }
bool MuonHOAcceptance::deadIdRegion::adjacentPhi ( deadIdRegion const &  other) [inline]

Definition at line 67 of file MuonHOAcceptance.h.

References phiMax, and phiMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

                                                 {
      return ( (other.phiMin-1 == phiMax) ||
               (phiMin-1 == other.phiMax) );
    }
void MuonHOAcceptance::deadIdRegion::merge ( deadIdRegion const &  other)

Definition at line 387 of file MuonHOAcceptance.cc.

References etaMax, etaMin, max(), min, phiMax, and phiMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

                                                                   {
  etaMin = std::min(etaMin, other.etaMin);
  etaMax = std::max(etaMax, other.etaMax);
  phiMin = std::min(phiMin, other.phiMin);
  phiMax = std::max(phiMax, other.phiMax);
}
bool MuonHOAcceptance::deadIdRegion::operator== ( deadIdRegion const &  other) [inline]

Definition at line 53 of file MuonHOAcceptance.h.

References etaMax, etaMin, phiMax, and phiMin.

                                                  { 
      return ((other.etaMin==etaMin) && (other.etaMax==etaMax) &&
              (other.phiMin==phiMin) && (other.phiMax==phiMax));
    }
bool MuonHOAcceptance::deadIdRegion::sameEta ( deadIdRegion const &  other) [inline]

Definition at line 57 of file MuonHOAcceptance.h.

References etaMax, and etaMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

                                             {
      return ((other.etaMin==etaMin) && (other.etaMax==etaMax));
    }
bool MuonHOAcceptance::deadIdRegion::samePhi ( deadIdRegion const &  other) [inline]

Definition at line 60 of file MuonHOAcceptance.h.

References phiMax, and phiMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

                                             {
      return ((other.phiMax==phiMax) && (other.phiMin==phiMin));
    }

Member Data Documentation

Definition at line 50 of file MuonHOAcceptance.h.

Referenced by adjacentEta(), merge(), operator==(), and sameEta().

Definition at line 49 of file MuonHOAcceptance.h.

Referenced by adjacentEta(), merge(), operator==(), and sameEta().

Definition at line 52 of file MuonHOAcceptance.h.

Referenced by adjacentPhi(), merge(), operator==(), and samePhi().

Definition at line 51 of file MuonHOAcceptance.h.

Referenced by adjacentPhi(), merge(), operator==(), and samePhi().