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
GeometryObject.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GeometryObject.hpp
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
#pragma once
10
11
#include "
Acts/Geometry/GeometryContext.hpp
"
12
#include "
Acts/Geometry/GeometryID.hpp
"
13
#include "
Acts/Geometry/Polyhedron.hpp
"
14
#include "
Acts/Utilities/BinningType.hpp
"
15
#include "
Acts/Utilities/Definitions.hpp
"
16
#include "
Acts/Utilities/Helpers.hpp
"
17
18
namespace
Acts {
19
28
class
GeometryObject
{
29
public
:
31
GeometryObject
() =
default
;
32
34
GeometryObject
(
const
GeometryObject
&) =
default
;
35
39
GeometryObject
(
const
GeometryID
&
geoID
) :
m_geoID
(geoID) {}
40
44
GeometryObject
&
operator=
(
const
GeometryObject
&
geoID
) {
45
if
(&geoID !=
this
) {
46
m_geoID
= geoID.
m_geoID
;
47
}
48
return
*
this
;
49
}
50
52
const
GeometryID
&
geoID
()
const
;
53
60
virtual
const
Vector3D
binningPosition
(
const
GeometryContext
&
gctx
,
61
BinningValue
bValue)
const
= 0;
62
69
virtual
double
binningPositionValue
(
const
GeometryContext
&
gctx
,
70
BinningValue
bValue)
const
;
71
75
void
assignGeoID
(
const
GeometryID
&
geoID
);
76
77
protected
:
78
GeometryID
m_geoID
;
79
};
80
81
inline
const
GeometryID
&
GeometryObject::geoID
()
const
{
82
return
m_geoID
;
83
}
84
85
inline
void
GeometryObject::assignGeoID
(
const
GeometryID
& geoID) {
86
m_geoID
=
geoID
;
87
}
88
89
inline
double
GeometryObject::binningPositionValue
(
const
GeometryContext
&
gctx
,
90
BinningValue
bValue)
const
{
91
return
VectorHelpers::cast
(
binningPosition
(gctx, bValue), bValue);
92
}
93
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
GeometryObject.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration