ECCE @ EIC Software
Reference for
ECCE @ 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
GenericCuboidVolumeBounds.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenericCuboidVolumeBounds.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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
#pragma once
10
11
#include "
Acts/Geometry/Volume.hpp
"
12
#include "
Acts/Geometry/VolumeBounds.hpp
"
13
#include "
Acts/Utilities/BoundingBox.hpp
"
14
#include "
Acts/Utilities/Definitions.hpp
"
15
16
#include <array>
17
#include <ostream>
18
#include <vector>
19
20
namespace
Acts {
21
22
class
IVisualization;
23
24
class
GenericCuboidVolumeBounds
:
public
VolumeBounds
{
25
public
:
26
static
constexpr
size_t
eSize
= 24;
27
28
GenericCuboidVolumeBounds
() =
delete
;
29
38
GenericCuboidVolumeBounds
(
39
const
std::array<Acts::Vector3D, 8>& vertices) noexcept(
false
);
40
44
GenericCuboidVolumeBounds
(
const
std::array<double, eSize>&
values
) noexcept(
45
false
);
46
47
~GenericCuboidVolumeBounds
()
override
=
default
;
48
49
VolumeBounds::BoundsType
type
() const final {
50
return
VolumeBounds::eGenericCuboid
;
51
}
52
56
std::vector<double>
values
() const final;
57
64
bool
inside
(const
Vector3D
& gpos,
double
tol = 0.) const override;
65
74
std::vector<std::
shared_ptr
<const
Surface
>>
decomposeToSurfaces
(
75
const
Transform3D
*
transform
) const override;
76
82
Volume
::BoundingBox
boundingBox
(const
Transform3D
* trf =
nullptr
,
83
const
Vector3D
& envelope = {0, 0, 0},
84
const
Volume* entity =
nullptr
)
const
final
;
85
87
std::ostream&
toStream
(std::ostream& sl)
const override
;
88
93
void
draw
(IVisualization& helper,
94
const
Transform3D
&
transform
= Transform3D::Identity())
const
;
95
96
private
:
97
std::array<Vector3D, 8>
m_vertices
;
98
std::array<Vector3D, 6>
m_normals
;
99
102
void
construct
() noexcept(
false
);
103
;
104
};
105
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
GenericCuboidVolumeBounds.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration