CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
MuonHOAcceptance::deadIdRegion Struct Reference

Public Member Functions

bool adjacentEta (deadIdRegion const &other)
 
bool adjacentPhi (deadIdRegion const &other)
 
 deadIdRegion (int eMin=0, int eMax=0, int pMin=0, int pMax=0)
 
 deadIdRegion (deadIdRegion const &other)
 
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
MuonHOAcceptance::deadIdRegion::deadIdRegion ( deadIdRegion const &  other)
inline

Definition at line 46 of file MuonHOAcceptance.h.

46  :
47  etaMin(other.etaMin), etaMax(other.etaMax),
48  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().

63  {
64  return ( (other.etaMin-1 == etaMax) ||
65  (etaMin-1 == other.etaMax ) );
66  }
bool MuonHOAcceptance::deadIdRegion::adjacentPhi ( deadIdRegion const &  other)
inline

Definition at line 67 of file MuonHOAcceptance.h.

References phiMax, and phiMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

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

Definition at line 387 of file MuonHOAcceptance.cc.

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

Referenced by MuonHOAcceptance::mergeRegionLists().

387  {
388  etaMin = std::min(etaMin, other.etaMin);
389  etaMax = std::max(etaMax, other.etaMax);
390  phiMin = std::min(phiMin, other.phiMin);
391  phiMax = std::max(phiMax, other.phiMax);
392 }
T min(T a, T b)
Definition: MathUtil.h:58
bool MuonHOAcceptance::deadIdRegion::operator== ( deadIdRegion const &  other)
inline

Definition at line 53 of file MuonHOAcceptance.h.

References etaMax, etaMin, phiMax, and phiMin.

53  {
54  return ((other.etaMin==etaMin) && (other.etaMax==etaMax) &&
55  (other.phiMin==phiMin) && (other.phiMax==phiMax));
56  }
bool MuonHOAcceptance::deadIdRegion::sameEta ( deadIdRegion const &  other)
inline

Definition at line 57 of file MuonHOAcceptance.h.

References etaMax, and etaMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

57  {
58  return ((other.etaMin==etaMin) && (other.etaMax==etaMax));
59  }
bool MuonHOAcceptance::deadIdRegion::samePhi ( deadIdRegion const &  other)
inline

Definition at line 60 of file MuonHOAcceptance.h.

References phiMax, and phiMin.

Referenced by MuonHOAcceptance::mergeRegionLists().

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

Member Data Documentation

int MuonHOAcceptance::deadIdRegion::etaMax

Definition at line 50 of file MuonHOAcceptance.h.

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

int MuonHOAcceptance::deadIdRegion::etaMin

Definition at line 49 of file MuonHOAcceptance.h.

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

int MuonHOAcceptance::deadIdRegion::phiMax

Definition at line 52 of file MuonHOAcceptance.h.

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

int MuonHOAcceptance::deadIdRegion::phiMin

Definition at line 51 of file MuonHOAcceptance.h.

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