ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::compTRTDetElements_AZ Class Reference

#include <TRT_DetElementsComparison.h>

Collaboration diagram for InDet::compTRTDetElements_AZ:

Public Member Functions

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

Detailed Description

Definition at line 38 of file TRT_DetElementsComparison.h.

Member Function Documentation

◆ operator()()

bool InDet::compTRTDetElements_AZ::operator() ( const InDetDD::TRT_BaseElement * e1,
const InDetDD::TRT_BaseElement * e2 )
inline

Definition at line 42 of file TRT_DetElementsComparison.h.

44 {
45 Amg::Vector3D p1 = e1->center();
46 Amg::Vector3D p2 = e2->center();
47 double f1 = atan2(p1.y(),p1.x());
48 double f2 = atan2(p2.y(),p2.x());
49 if(fabs(f1-f2)>.04) return(f1<f2);
50 return(p1.z()<p2.z());
51 }
Eigen::Matrix< double, 3, 1 > Vector3D
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling

The documentation for this class was generated from the following file: