ATLAS Offline Software
Tracking
TrkDetDescr
TrkGeometry
src
CompoundLayer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// CompoundLayer.cxx, (c) ATLAS Detector software
8
9
// Trk
10
#include "
TrkGeometry/CompoundLayer.h
"
11
12
bool
Trk::CompoundLayer::isOnCompoundLayer
(
const
Amg::Vector3D
&gp,
13
double
thickness)
const
{
14
// try each surface in turn
15
bool
onSurface =
false
;
16
for
(
unsigned
int
i
= 0; !onSurface &&
i
<
m_surfaces
.size(); ++
i
) {
17
onSurface =
m_surfaces
[
i
]->isOnSurface(gp,
true
, thickness);
18
}
19
return
onSurface;
20
}
21
22
Trk::CompoundLayer::~CompoundLayer
() {
23
for
(
auto
& surface : m_surfaces) {
24
delete
surface;
25
}
26
}
Trk::CompoundLayer::m_surfaces
std::vector< const Surface * > m_surfaces
The constituent surfaces.
Definition:
CompoundLayer.h:82
Trk::CompoundLayer::isOnCompoundLayer
bool isOnCompoundLayer(const Amg::Vector3D &gp, double thickness) const
Searches through the surfaces with Layer specific tolerance to see if the gp is on one of the subsurf...
Definition:
CompoundLayer.cxx:12
CompoundLayer.h
Trk::CompoundLayer::~CompoundLayer
virtual ~CompoundLayer()
Destructor, deletes the consituent surfaces.
Definition:
CompoundLayer.cxx:22
lumiFormat.i
int i
Definition:
lumiFormat.py:85
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition:
GeoPrimitives.h:47
Generated on Sun Dec 22 2024 21:08:25 for ATLAS Offline Software by
1.8.18