Analysis Software
Documentation for sPHENIX simulation software
 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 
17 
18 namespace Acts {
19 
27  public:
29  GeometryObject() = default;
30 
32  GeometryObject(const GeometryObject&) = default;
33 
38  : m_geometryId(geometryId) {}
39 
44  if (&geometryId != this) {
45  m_geometryId = geometryId.m_geometryId;
46  }
47  return *this;
48  }
49 
51  const GeometryIdentifier& geometryId() const;
52 
60  BinningValue bValue) const = 0;
61 
68  virtual double binningPositionValue(const GeometryContext& gctx,
69  BinningValue bValue) const;
70 
75 
76  protected:
78 };
79 
81  return m_geometryId;
82 }
83 
85  const GeometryIdentifier& geometryId) {
87 }
88 
90  BinningValue bValue) const {
91  return VectorHelpers::cast(binningPosition(gctx, bValue), bValue);
92 }
93 
94 } // namespace Acts