ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetTruth
InDetTruthTools
InDetTruthTools
PRD_TruthTrajectorySelectorID.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef INDETTRUTHTOOLS_PRD_TRUTHTRAJECTORYSELECTORID_H
6
#define INDETTRUTHTOOLS_PRD_TRUTHTRAJECTORYSELECTORID_H
7
9
// PRD_TruthTrajectorySelectorID.h, (c) ATLAS Detector software
11
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "
TrkTruthTrackInterfaces/IPRD_TruthTrajectorySelector.h
"
14
#include "
TrkEventPrimitives/LocalParameters.h
"
15
16
class
ThreePointCircle
{
17
18
public :
20
ThreePointCircle
(
const
std::vector<Amg::Vector3D>& vecPoints);
21
23
~ThreePointCircle
();
24
26
const
Amg::Vector2D
&
center
()
const
;
28
const
Amg::Translation3D
*
frameTranslation
()
const
;
29
30
//assignment is not safe unless a deep copy is made, so delete
31
ThreePointCircle
&
operator =
(
const
ThreePointCircle
&) =
delete
;
32
//copy is not safe unless a deep copy is made, so delete
33
ThreePointCircle
(
const
ThreePointCircle
&) =
delete
;
34
35
36
/* d0, z0, eta, phi, pt */
37
double
d0
()
const
;
38
double
z0
()
const
;
39
double
phi0
()
const
;
40
double
eta
()
const
;
41
double
pT
()
const
;
42
double
radius
()
const
;
43
44
private
:
45
void
constructCircle
(
const
Amg::Vector3D
&,
const
Amg::Vector3D
&,
const
Amg::Vector3D
&);
46
// the reference point
47
Amg::Translation3D
*
m_translation
;
48
// the parameters
49
double
m_d0
,
m_z0
,
m_phi0
,
m_eta
,
m_pt
;
50
double
m_radius
{};
51
Amg::Vector2D
m_center
;
52
53
};
54
55
inline
double
ThreePointCircle::d0
()
const
{
return
m_d0
; }
56
inline
double
ThreePointCircle::z0
()
const
{
return
m_z0
; }
57
inline
double
ThreePointCircle::phi0
()
const
{
return
m_phi0
; }
58
inline
double
ThreePointCircle::eta
()
const
{
return
m_eta
; }
59
inline
double
ThreePointCircle::pT
()
const
{
return
m_pt
; }
60
inline
double
ThreePointCircle::radius
()
const
{
return
m_radius
; }
61
62
inline
const
Amg::Vector2D
&
ThreePointCircle::center
()
const
{
return
m_center
; }
63
64
inline
const
Amg::Translation3D
*
ThreePointCircle::frameTranslation
()
const
{
return
m_translation
; }
65
66
67
class
AtlasDetectorID
;
68
69
namespace
InDet
{
78
class
PRD_TruthTrajectorySelectorID
:
public
AthAlgTool
,
virtual
public
Trk::IPRD_TruthTrajectorySelector
{
79
80
public
:
81
//** Constructor with parameters */
82
PRD_TruthTrajectorySelectorID
(
const
std::string& t,
const
std::string& n,
const
IInterface* p );
83
85
~PRD_TruthTrajectorySelectorID
() {}
86
87
// Athena algtool's Hooks
88
StatusCode
initialize
();
89
StatusCode
finalize
();
90
92
virtual
bool
pass
(
const
Trk::PRD_TruthTrajectory
& )
const
;
93
94
private
:
96
const
AtlasDetectorID
*
m_atlasId
{};
97
};
98
}
99
100
#endif
AthAlgTool.h
IPRD_TruthTrajectorySelector.h
LocalParameters.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition
AtlasDetectorID.h:53
InDet::PRD_TruthTrajectorySelectorID::~PRD_TruthTrajectorySelectorID
~PRD_TruthTrajectorySelectorID()
Tool Destructor.
Definition
PRD_TruthTrajectorySelectorID.h:85
InDet::PRD_TruthTrajectorySelectorID::pass
virtual bool pass(const Trk::PRD_TruthTrajectory &) const
Interface method from IPRD_TruthTrajectorySelector.
Definition
PRD_TruthTrajectorySelectorID.cxx:134
InDet::PRD_TruthTrajectorySelectorID::PRD_TruthTrajectorySelectorID
PRD_TruthTrajectorySelectorID(const std::string &t, const std::string &n, const IInterface *p)
Definition
PRD_TruthTrajectorySelectorID.cxx:20
InDet::PRD_TruthTrajectorySelectorID::m_atlasId
const AtlasDetectorID * m_atlasId
ID pixel helper.
Definition
PRD_TruthTrajectorySelectorID.h:96
InDet::PRD_TruthTrajectorySelectorID::initialize
StatusCode initialize()
Definition
PRD_TruthTrajectorySelectorID.cxx:26
InDet::PRD_TruthTrajectorySelectorID::finalize
StatusCode finalize()
Definition
PRD_TruthTrajectorySelectorID.cxx:37
ThreePointCircle::d0
double d0() const
Definition
PRD_TruthTrajectorySelectorID.h:55
ThreePointCircle::m_translation
Amg::Translation3D * m_translation
Definition
PRD_TruthTrajectorySelectorID.h:47
ThreePointCircle::frameTranslation
const Amg::Translation3D * frameTranslation() const
Translation.
Definition
PRD_TruthTrajectorySelectorID.h:64
ThreePointCircle::m_radius
double m_radius
Definition
PRD_TruthTrajectorySelectorID.h:50
ThreePointCircle::m_eta
double m_eta
Definition
PRD_TruthTrajectorySelectorID.h:49
ThreePointCircle::eta
double eta() const
Definition
PRD_TruthTrajectorySelectorID.h:58
ThreePointCircle::~ThreePointCircle
~ThreePointCircle()
Destructor.
Definition
PRD_TruthTrajectorySelectorID.cxx:51
ThreePointCircle::operator=
ThreePointCircle & operator=(const ThreePointCircle &)=delete
ThreePointCircle::z0
double z0() const
Definition
PRD_TruthTrajectorySelectorID.h:56
ThreePointCircle::phi0
double phi0() const
Definition
PRD_TruthTrajectorySelectorID.h:57
ThreePointCircle::m_center
Amg::Vector2D m_center
Definition
PRD_TruthTrajectorySelectorID.h:51
ThreePointCircle::ThreePointCircle
ThreePointCircle(const std::vector< Amg::Vector3D > &vecPoints)
The constructor from three points.
Definition
PRD_TruthTrajectorySelectorID.cxx:42
ThreePointCircle::m_pt
double m_pt
Definition
PRD_TruthTrajectorySelectorID.h:49
ThreePointCircle::center
const Amg::Vector2D & center() const
center
Definition
PRD_TruthTrajectorySelectorID.h:62
ThreePointCircle::pT
double pT() const
Definition
PRD_TruthTrajectorySelectorID.h:59
ThreePointCircle::constructCircle
void constructCircle(const Amg::Vector3D &, const Amg::Vector3D &, const Amg::Vector3D &)
Definition
PRD_TruthTrajectorySelectorID.cxx:56
ThreePointCircle::m_z0
double m_z0
Definition
PRD_TruthTrajectorySelectorID.h:49
ThreePointCircle::m_phi0
double m_phi0
Definition
PRD_TruthTrajectorySelectorID.h:49
ThreePointCircle::radius
double radius() const
Definition
PRD_TruthTrajectorySelectorID.h:60
ThreePointCircle::m_d0
double m_d0
Definition
PRD_TruthTrajectorySelectorID.h:49
ThreePointCircle::ThreePointCircle
ThreePointCircle(const ThreePointCircle &)=delete
Trk::IPRD_TruthTrajectorySelector
The interface for the truth PRD trajectory selector.
Definition
IPRD_TruthTrajectorySelector.h:30
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition
GeoPrimitives.h:44
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
Trk::PRD_TruthTrajectory
simple definitiion of a PRD_TruhtTrajectory
Definition
PRD_TruthTrajectory.h:27
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0