ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
InDetTrackingGeometry
InDetTrackingGeometry
TRT_OverlapDescriptor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TRT_OverlapDescriptor.h, (c) ATLAS Detector software
8
9
#ifndef INDETTRACKINGGEOMETRY_TRT_OVERLAPDESCRIPTOR_H
10
#define INDETTRACKINGGEOMETRY_TRT_OVERLAPDESCRIPTOR_H
11
12
// Trk
13
#include "
TrkGeometry/OverlapDescriptor.h
"
14
// ID
15
#include "
InDetIdentifier/TRT_ID.h
"
16
17
namespace
Trk
{
18
class
Surface
;
19
}
20
21
namespace
InDet
{
22
30
31
class
TRT_OverlapDescriptor
:
public
Trk::OverlapDescriptor
{
32
public
:
34
TRT_OverlapDescriptor
(
const
TRT_ID
* helper,
double
bTolerance = 0.9,
double
oTolerance = 1.1) :
35
m_trtIdHelper
(helper),
36
m_breakTolerance
(bTolerance),
37
m_outsideTolerance
(oTolerance)
38
{}
39
40
TRT_OverlapDescriptor
(
const
TRT_OverlapDescriptor
& od) :
41
Trk
::
OverlapDescriptor
(),
42
m_trtIdHelper
(od.
m_trtIdHelper
),
43
m_breakTolerance
(od.
m_breakTolerance
),
44
m_outsideTolerance
(od.
m_outsideTolerance
)
45
{}
46
48
TRT_OverlapDescriptor
&
operator =
(
const
TRT_OverlapDescriptor
&) =
default
;
49
51
virtual
~TRT_OverlapDescriptor
(){}
52
54
TRT_OverlapDescriptor
*
clone
()
const
;
55
57
bool
reachableSurfaces
(std::vector<Trk::SurfaceIntersection>& cSurfaces,
58
const
Trk::Surface
& sf,
59
const
Amg::Vector3D
& pos,
60
const
Amg::Vector3D
& dir)
const
;
61
62
private
:
63
// this checks if the surface intersection is within bounds, if it returns 0 break, otherwise +/- for checking in +/- of index
64
int
checkAndFill
(std::vector<Trk::SurfaceIntersection>& cSurfaces,
65
const
Trk::Surface
& sf,
66
const
Amg::Vector3D
& pos,
67
const
Amg::Vector3D
& dir)
const
;
68
69
const
TRT_ID
*
m_trtIdHelper
;
70
double
m_breakTolerance
;
71
double
m_outsideTolerance
;
72
73
};
74
75
inline
TRT_OverlapDescriptor
*
TRT_OverlapDescriptor::clone
()
const
{
return
new
TRT_OverlapDescriptor
(*
this
); }
76
77
}
78
79
#endif
OverlapDescriptor.h
TRT_ID.h
This is an Identifier helper class for the TRT subdetector.
InDet::TRT_OverlapDescriptor
Class to describe overlaps in the TRT detector, it extends the Trk::OverlapDescriptor base class.
Definition
TRT_OverlapDescriptor.h:31
InDet::TRT_OverlapDescriptor::TRT_OverlapDescriptor
TRT_OverlapDescriptor(const TRT_OverlapDescriptor &od)
Copy Constructor.
Definition
TRT_OverlapDescriptor.h:40
InDet::TRT_OverlapDescriptor::m_outsideTolerance
double m_outsideTolerance
accept even if it outside the bounds by this tolerance
Definition
TRT_OverlapDescriptor.h:71
InDet::TRT_OverlapDescriptor::TRT_OverlapDescriptor
TRT_OverlapDescriptor(const TRT_ID *helper, double bTolerance=0.9, double oTolerance=1.1)
Constructor.
Definition
TRT_OverlapDescriptor.h:34
InDet::TRT_OverlapDescriptor::m_breakTolerance
double m_breakTolerance
if the straight line intersection is within this fraction of the bounds - don't look for neighbours
Definition
TRT_OverlapDescriptor.h:70
InDet::TRT_OverlapDescriptor::checkAndFill
int checkAndFill(std::vector< Trk::SurfaceIntersection > &cSurfaces, const Trk::Surface &sf, const Amg::Vector3D &pos, const Amg::Vector3D &dir) const
Definition
TRT_OverlapDescriptor.cxx:63
InDet::TRT_OverlapDescriptor::~TRT_OverlapDescriptor
virtual ~TRT_OverlapDescriptor()
Destructor.
Definition
TRT_OverlapDescriptor.h:51
InDet::TRT_OverlapDescriptor::clone
TRT_OverlapDescriptor * clone() const
Pseudo-Constructor.
Definition
TRT_OverlapDescriptor.h:75
InDet::TRT_OverlapDescriptor::operator=
TRT_OverlapDescriptor & operator=(const TRT_OverlapDescriptor &)=default
Default assignment.
InDet::TRT_OverlapDescriptor::m_trtIdHelper
const TRT_ID * m_trtIdHelper
the Id helper
Definition
TRT_OverlapDescriptor.h:69
InDet::TRT_OverlapDescriptor::reachableSurfaces
bool reachableSurfaces(std::vector< Trk::SurfaceIntersection > &cSurfaces, const Trk::Surface &sf, const Amg::Vector3D &pos, const Amg::Vector3D &dir) const
get the compatible surfaces
Definition
TRT_OverlapDescriptor.cxx:18
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
Trk::OverlapDescriptor
BaseClass to be overloaded for describing overlaps and next-by elements for the sub-detector implemen...
Definition
OverlapDescriptor.h:41
Trk::OverlapDescriptor::OverlapDescriptor
OverlapDescriptor()
Default constructor.
Definition
OverlapDescriptor.h:44
Trk::Surface
Abstract Base Class for tracking surfaces.
Definition
Surface.h:79
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0