ATLAS Offline Software
Public Member Functions | List of all members
InDet::compDetElements_RAZ Class Reference

#include <SiDetElementsComparison.h>

Collaboration diagram for InDet::compDetElements_RAZ:

Public Member Functions

bool operator() (const InDetDD::SiDetectorElement *e1, const InDetDD::SiDetectorElement *e2) const
 

Detailed Description

Definition at line 37 of file SiDetElementsComparison.h.

Member Function Documentation

◆ operator()()

bool InDet::compDetElements_RAZ::operator() ( const InDetDD::SiDetectorElement e1,
const InDetDD::SiDetectorElement e2 
) const
inline

Definition at line 41 of file SiDetElementsComparison.h.

43  {
44 
45  Amg::Vector3D p1 = e1->center();
46  Amg::Vector3D p2 = e2->center();
47  double r1 = sqrt(p1.x()*p1.x()+p1.y()*p1.y());
48  double r2 = sqrt(p2.x()*p2.x()+p2.y()*p2.y());
49  if(fabs(r1-r2)>.1) return(r1<r2);
50  double f1 = atan2(p1.y(),p1.x());
51  double f2 = atan2(p2.y(),p2.x());
52  if(fabs(f1-f2)>.04) return(f1<f2);
53  return(p1.z()<p2.z());
54  }

The documentation for this class was generated from the following file:
egammaEnergyPositionAllSamples::e1
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
MCP::ScaleSmearParam::r2
@ r2
read_hist_ntuple.f2
f2
Definition: read_hist_ntuple.py:20
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
egammaEnergyPositionAllSamples::e2
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
MCP::ScaleSmearParam::r1
@ r1
read_hist_ntuple.f1
f1
Definition: read_hist_ntuple.py:4