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.

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()
28  ? f1.zside() < s1.zside()
29  : f1.iphi() != s1.iphi()
30  ? f1.iphi() < s1.iphi()
31  : f1.ietaAbs() != s1.ietaAbs() ? f1.ietaAbs() < s1.ietaAbs() : f1.depth() < s1.depth();
32  } else {
33  return first.rawId() < second.rawId();
34  }
35  }

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

HcalGenericDetId
Definition: HcalGenericDetId.h:15
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
HcalDetId
Definition: HcalDetId.h:12
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219