CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
CastorDbASCIIIO::DetIdLess Class Reference

Public Member Functions

bool operator() (DetId fFirst, DetId fSecond) const
 

Detailed Description

Definition at line 18 of file CastorDbASCIIIO.cc.

Member Function Documentation

bool CastorDbASCIIIO::DetIdLess::operator() ( DetId  fFirst,
DetId  fSecond 
) const
inline

Definition at line 20 of file CastorDbASCIIIO.cc.

References HcalDetId::depth(), python.connectstrParser::f1, first, HcalGenericDetId::genericSubdet(), HcalDetId::ietaAbs(), HcalDetId::iphi(), HcalGenericDetId::isHcalDetId(), DetId::rawId(), edm::second(), and HcalDetId::zside().

20  {
21  HcalGenericDetId first (fFirst);
22  HcalGenericDetId second (fSecond);
23  if (first.genericSubdet () != second.genericSubdet ()) return first.genericSubdet () < second.genericSubdet ();
24  if (first.isHcalDetId ()) {
25  HcalDetId f1 (first);
26  HcalDetId s1 (second);
27  return f1.zside () != s1.zside () ? f1.zside () < s1.zside () :
28  f1.iphi () != s1.iphi () ? f1.iphi () < s1.iphi () :
29  f1.ietaAbs () != s1.ietaAbs () ? f1.ietaAbs () < s1.ietaAbs () :
30  f1.depth () < s1.depth ();
31  }
32  else {
33  return first.rawId() < second.rawId();
34  }
35  }
U second(std::pair< T, U > const &p)
bool first
Definition: L1TdeRCT.cc:94