CMS 3D CMS Logo

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 17 of file CastorDbASCIIIO.cc.

Member Function Documentation

◆ operator()()

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

Definition at line 19 of file CastorDbASCIIIO.cc.

References HcalDetId::depth(), DeadROC_duringRun::f1, dqmdumpme::first, HcalDetId::ietaAbs(), HcalDetId::iphi(), edm::second(), and HcalDetId::zside().

19  {
20  HcalGenericDetId first(fFirst);
21  HcalGenericDetId second(fSecond);
22  if (first.genericSubdet() != second.genericSubdet())
23  return first.genericSubdet() < second.genericSubdet();
24  if (first.isHcalDetId()) {
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  } else {
32  return first.rawId() < second.rawId();
33  }
34  }
U second(std::pair< T, U > const &p)