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

#include <SiDetElementsComparison.h>

Collaboration diagram for InDet::compDetElements_ZRA:

Public Member Functions

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

Detailed Description

Definition at line 62 of file SiDetElementsComparison.h.

Member Function Documentation

◆ operator()()

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

Definition at line 66 of file SiDetElementsComparison.h.

68  {
69 
70  Amg::Vector3D p1 = e1->center();
71  Amg::Vector3D p2 = e2->center();
72  double z1 = p1.z();
73  double z2 = p2.z();
74  if(fabs(z1-z2)>.1) return(fabs(z1)<fabs(z2));
75 
76  if(e1->isPixel() && e2->isSCT ()) return true ;
77  if(e1->isSCT () && e2->isPixel()) return false;
78 
79  double r1 = sqrt(p1.x()*p1.x()+p1.y()*p1.y());
80  double r2 = sqrt(p2.x()*p2.x()+p2.y()*p2.y());
81  if(r2-r1> 10.) return true;
82  if(r1-r2> 10.) return false;
83 
84  double f1 = atan2(p1.y(),p1.x());
85  double f2 = atan2(p2.y(),p2.x());
86  return(f1<f2);
87  }

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
MCP::ScaleSmearParam::r2
@ r2
read_hist_ntuple.f2
f2
Definition: read_hist_ntuple.py:20
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