ATLAS Offline Software
InnerDetector
InDetRecTools
TRT_DetElementsRoadTool_xk
TRT_DetElementsRoadTool_xk
TRT_DetElementsComparison.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRT_DetElementsComparison_h
6
#define TRT_DetElementsComparison_h
7
8
#include "
TrkParameters/TrackParameters.h
"
9
10
11
namespace
InDet
{
12
14
// Object function for ordering barrel pixels and silicons wafers
15
// in azimuthal angle order
17
18
class
compTRTDetElements_A
{
19
20
public
:
21
22
bool
operator ()
(
const
InDetDD::TRT_BaseElement
*
e1
,
23
const
InDetDD::TRT_BaseElement
*
e2
)
24
{
25
const
Amg::Transform3D
& T1 =
e1
->surface().transform();
26
const
Amg::Transform3D
& T2 =
e2
->surface().transform();
27
double
f1
= atan2(T1(1,0),T1(0,0));
28
double
f2
= atan2(T2(1,0),T2(0,0));
29
return
(
f1
<
f2
);
30
}
31
};
32
34
// Object function for ordering barrel pixels and silicons wafers
35
// in azimuthal angle and Z coordinates order
37
38
class
compTRTDetElements_AZ
{
39
40
public
:
41
42
bool
operator ()
(
const
InDetDD::TRT_BaseElement
*
e1
,
43
const
InDetDD::TRT_BaseElement
*
e2
)
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
}
52
};
53
}
54
#endif // TRT_DetElementsComparison_h
TrackParameters.h
egammaEnergyPositionAllSamples::e1
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
InDet
Primary Vertex Finder.
Definition:
VP1ErrorUtils.h:36
InDet::compTRTDetElements_AZ::operator()
bool operator()(const InDetDD::TRT_BaseElement *e1, const InDetDD::TRT_BaseElement *e2)
Definition:
TRT_DetElementsComparison.h:42
TRTCalib_cfilter.p1
p1
Definition:
TRTCalib_cfilter.py:130
read_hist_ntuple.f2
f2
Definition:
read_hist_ntuple.py:20
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition:
GeoPrimitives.h:46
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition:
GeoPrimitives.h:47
InDet::compTRTDetElements_A::operator()
bool operator()(const InDetDD::TRT_BaseElement *e1, const InDetDD::TRT_BaseElement *e2)
Definition:
TRT_DetElementsComparison.h:22
InDet::compTRTDetElements_AZ
Definition:
TRT_DetElementsComparison.h:38
egammaEnergyPositionAllSamples::e2
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
InDet::compTRTDetElements_A
Definition:
TRT_DetElementsComparison.h:18
InDetDD::TRT_BaseElement
Definition:
TRT_BaseElement.h:57
read_hist_ntuple.f1
f1
Definition:
read_hist_ntuple.py:4
Generated on Sun Dec 22 2024 21:21:34 for ATLAS Offline Software by
1.8.18