ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkGeometrySurfaces
src
SubtractedCylinderSurface.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SubtractedCylinderSurface.cxx, (c) ATLAS Detector Software
8
9
// Trk
10
#include "
TrkGeometrySurfaces/SubtractedCylinderSurface.h
"
11
// STD
12
#include <iomanip>
13
#include <iostream>
14
15
// constructor
16
Trk::SubtractedCylinderSurface::SubtractedCylinderSurface
(
const
Trk::CylinderSurface
& ps,
17
std::shared_ptr<const AreaExcluder> vol,
18
bool
shared
)
19
:
Trk
::
CylinderSurface
(ps)
20
,
m_subtrVol
(
std
::move(vol))
21
,
m_shared
(
shared
)
22
{}
23
24
// copy constructor
25
Trk::SubtractedCylinderSurface::SubtractedCylinderSurface
(
const
SubtractedCylinderSurface
& psf) =
default
;
26
27
// copy constructor with shift
28
Trk::SubtractedCylinderSurface::SubtractedCylinderSurface
(
const
SubtractedCylinderSurface
& psf,
29
const
Amg::Transform3D
& transf)
30
:
Trk
::
CylinderSurface
(psf, transf)
31
,
m_subtrVol
{psf.
m_subtrVol
}
32
,
m_shared
(psf.
m_shared
)
33
{}
34
35
//Assignement
36
Trk::SubtractedCylinderSurface
&
37
Trk::SubtractedCylinderSurface::operator=
(
const
Trk::SubtractedCylinderSurface
& psf) =
default
;
38
39
bool
40
Trk::SubtractedCylinderSurface::operator==
(
const
Trk::Surface
& sf)
const
41
{
42
// first check the type not to compare apples with oranges
43
const
Trk::SubtractedCylinderSurface
* scsf =
dynamic_cast<
const
Trk::SubtractedCylinderSurface
*
>
(&sf);
44
if
(!scsf)
45
return
false
;
46
bool
surfaceEqual =
Trk::CylinderSurface::operator==
(sf);
47
bool
sharedEqual = (surfaceEqual) ? (
shared
() == scsf->
shared
()) :
false
;
48
return
sharedEqual;
49
}
SubtractedCylinderSurface.h
Trk::CylinderSurface
Class for a CylinderSurface in the ATLAS detector.
Definition
CylinderSurface.h:55
Trk::CylinderSurface::CylinderSurface
CylinderSurface()
Default Constructor.
Definition
CylinderSurface.cxx:21
Trk::CylinderSurface::operator==
virtual bool operator==(const Surface &sf) const override
Equality operator.
Definition
CylinderSurface.cxx:179
Trk::SubtractedCylinderSurface
Class for a cylinder subtracted/shared surface in the ATLAS detector.
Definition
SubtractedCylinderSurface.h:33
Trk::SubtractedCylinderSurface::SubtractedCylinderSurface
SubtractedCylinderSurface()=default
Defaults.
Trk::SubtractedCylinderSurface::shared
bool shared() const
This method indicates the subtraction mode.
Trk::SubtractedCylinderSurface::operator==
virtual bool operator==(const Surface &sf) const override final
Equality operator.
Definition
SubtractedCylinderSurface.cxx:40
Trk::SubtractedCylinderSurface::m_shared
bool m_shared
Definition
SubtractedCylinderSurface.h:76
Trk::SubtractedCylinderSurface::m_subtrVol
std::shared_ptr< const AreaExcluder > m_subtrVol
Definition
SubtractedCylinderSurface.h:75
Trk::SubtractedCylinderSurface::operator=
SubtractedCylinderSurface & operator=(SubtractedCylinderSurface &&)=default
Trk::Surface
Abstract Base Class for tracking surfaces.
Definition
Surface.h:79
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition
GeoPrimitives.h:46
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0