EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
LineSurface.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LineSurface.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#include "
Acts/Surfaces/LineSurface.hpp
"
10
11
#include "
Acts/Utilities/ThrowAssert.hpp
"
12
#include <cmath>
13
#include <utility>
14
15
Acts::LineSurface::LineSurface
(
const
Transform3D
&
transform
,
double
radius
,
16
double
halez)
17
:
GeometryObject
(),
18
Surface
(transform),
19
m_bounds(std::make_shared<const
LineBounds
>(radius, halez)) {}
20
21
Acts::LineSurface::LineSurface
(
const
Transform3D
&
transform
,
22
std::shared_ptr<const LineBounds> lbounds)
23
:
GeometryObject
(),
Surface
(transform), m_bounds(std::move(lbounds)) {}
24
25
Acts::LineSurface::LineSurface
(
const
std::shared_ptr<const LineBounds>& lbounds,
26
const
DetectorElementBase
& detelement)
27
:
GeometryObject
(),
Surface
(detelement), m_bounds(lbounds) {
28
throw_assert
(lbounds,
"LineBounds must not be nullptr"
);
29
}
30
31
Acts::LineSurface::LineSurface
(
const
LineSurface
& other)
32
:
GeometryObject
(),
Surface
(other), m_bounds(other.m_bounds) {}
33
34
Acts::LineSurface::LineSurface
(
const
GeometryContext
&
gctx
,
35
const
LineSurface
& other,
36
const
Transform3D
& shift)
37
:
GeometryObject
(),
Surface
(gctx, other, shift), m_bounds(other.m_bounds) {}
38
39
Acts::LineSurface
&
Acts::LineSurface::operator=
(
const
LineSurface
& other) {
40
if
(
this
!= &other) {
41
Surface::operator=
(other);
42
m_bounds = other.
m_bounds
;
43
}
44
return
*
this
;
45
}
acts
blob
sPHENIX
Core
src
Surfaces
LineSurface.cpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration