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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
include
Acts
EventData
Fitter
Geometry
detail
AbstractVolume.hpp
ApproachDescriptor.hpp
BoundarySurfaceFace.hpp
BoundarySurfaceT.hpp
ConeLayer.hpp
CuboidVolumeBounds.hpp
CuboidVolumeBuilder.hpp
CutoutCylinderVolumeBounds.hpp
CylinderLayer.hpp
CylinderVolumeBounds.hpp
CylinderVolumeBuilder.hpp
CylinderVolumeHelper.hpp
DetectorElementBase.hpp
DiscLayer.hpp
Extent.hpp
GenericApproachDescriptor.hpp
GenericCuboidVolumeBounds.hpp
GeometryContext.hpp
GeometryID.hpp
GeometryObject.hpp
GeometryObjectSorter.hpp
GeometryStatics.hpp
GlueVolumesDescriptor.hpp
HierarchicalGeometryContainer.hpp
IConfinedTrackingVolumeBuilder.hpp
ILayerArrayCreator.hpp
ILayerBuilder.hpp
ITrackingGeometryBuilder.hpp
ITrackingVolumeArrayCreator.hpp
ITrackingVolumeBuilder.hpp
ITrackingVolumeHelper.hpp
Layer.hpp
LayerArrayCreator.hpp
LayerCreator.hpp
NavigationLayer.hpp
PassiveLayerBuilder.hpp
PlaneLayer.hpp
Polyhedron.hpp
ProtoLayer.hpp
SurfaceArrayCreator.hpp
TrackingGeometry.hpp
TrackingGeometryBuilder.hpp
TrackingVolume.hpp
TrackingVolumeArrayCreator.hpp
TrapezoidVolumeBounds.hpp
Volume.hpp
VolumeBounds.hpp
MagneticField
Material
Propagator
Seeding
Surfaces
TrackFinder
Utilities
Vertexing
Visualization
src
doc
Examples
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
VolumeBounds.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file VolumeBounds.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 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
#include <iomanip>
11
#include <iostream>
12
#include <memory>
13
#include "
Acts/Geometry/Volume.hpp
"
14
#include "
Acts/Utilities/BinningType.hpp
"
15
#include "
Acts/Utilities/BoundingBox.hpp
"
16
#include "
Acts/Utilities/Definitions.hpp
"
17
18
namespace
Acts {
19
20
class
Surface
;
21
class
Volume;
22
23
class
VolumeBounds;
24
using
VolumeBoundsPtr
= std::shared_ptr<const VolumeBounds>;
25
26
using
SurfacePtr
= std::shared_ptr<const Surface>;
27
using
SurfacePtrVector
= std::vector<SurfacePtr>;
28
43
class
VolumeBounds
{
44
public
:
45
// @enum BoundsType
48
enum
BoundsType
:
int
{
49
eCone
= 0,
50
eCuboid
= 1,
51
eCutoutCylinder
= 2,
52
eCylinder
= 3,
53
eGenericCuboid
= 4,
54
eTrapezoid
= 5,
55
eOther
= 6
56
};
57
58
VolumeBounds
() =
default
;
59
60
virtual
~VolumeBounds
() =
default
;
61
65
virtual
BoundsType
type
()
const
= 0;
66
71
virtual
std::vector<double>
values
()
const
= 0;
72
79
virtual
bool
inside
(
const
Vector3D
& gpos,
double
tol = 0.)
const
= 0;
80
88
virtual
SurfacePtrVector
decomposeToSurfaces
(
89
const
Transform3D
*
transform
)
const
= 0;
90
96
virtual
Volume::BoundingBox
boundingBox
(
97
const
Transform3D
* trf =
nullptr
,
const
Vector3D
& envelope = {0, 0, 0},
98
const
Volume* entity =
nullptr
)
const
= 0;
99
105
virtual
Vector3D
binningOffset
(
BinningValue
bValue)
const
;
106
112
virtual
double
binningBorder
(
BinningValue
bValue)
const
;
113
117
virtual
std::ostream&
toStream
(std::ostream& sl)
const
= 0;
118
};
119
121
inline
Vector3D
VolumeBounds::binningOffset
(
122
BinningValue
/*bValue*/
)
const
{
// standard offset is 0.,0.,0.
123
return
Vector3D
(0., 0., 0.);
124
}
125
126
inline
double
VolumeBounds::binningBorder
(
BinningValue
/*bValue*/
)
const
{
127
return
0.;
128
}
129
131
std::ostream&
operator<<
(std::ostream& sl,
const
VolumeBounds
& vb);
132
133
inline
bool
operator==
(
const
VolumeBounds
& lhs,
const
VolumeBounds
& rhs) {
134
if
(&lhs == &rhs) {
135
return
true
;
136
}
137
return
(lhs.
type
() == rhs.
type
()) && (lhs.
values
() == rhs.
values
());
138
}
139
140
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
VolumeBounds.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration