Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IGeometryIdGenerator.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file IGeometryIdGenerator.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 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 <any>
12 
13 namespace Acts {
14 
15 class Surface;
16 
17 namespace Experimental {
18 
19 class Portal;
20 class DetectorVolume;
21 
26  public:
27  using GeoIdCache = std::any;
28 
29  virtual ~IGeometryIdGenerator() = default;
30 
33  virtual GeoIdCache generateCache() const = 0;
34 
40  virtual void assignGeometryId(GeoIdCache& cache,
41  DetectorVolume& dVolume) const = 0;
42 
48  virtual void assignGeometryId(GeoIdCache& cache, Portal& portal) const = 0;
49 
55  virtual void assignGeometryId(GeoIdCache& cache, Surface& surface) const = 0;
56 };
57 
58 } // namespace Experimental
59 } // namespace Acts