ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ITrackingVolumeHelper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ITrackingVolumeHelper.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 
10 // ITrackingVolumeHelper.hpp, Acts project
12 
13 #pragma once
14 
15 #include <memory>
16 #include <string>
17 #include <vector>
20 
21 namespace Acts {
22 
23 class Layer;
24 class TrackingVolume;
25 class VolumeBounds;
26 class IVolumeMaterial;
27 
28 using LayerPtr = std::shared_ptr<const Layer>;
29 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
30 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
31 using VolumeBoundsPtr = std::shared_ptr<const VolumeBounds>;
32 
33 using LayerVector = std::vector<LayerPtr>;
34 using TrackingVolumeVector = std::vector<TrackingVolumePtr>;
35 using MutableTrackingVolumeVector = std::vector<MutableTrackingVolumePtr>;
36 
48  public:
50  virtual ~ITrackingVolumeHelper() = default;
51 
67  const GeometryContext& gctx, const LayerVector& layers,
68  std::shared_ptr<const IVolumeMaterial> volumeMaterial,
69  VolumeBoundsPtr volumeBounds, MutableTrackingVolumeVector mtvVector = {},
70  std::shared_ptr<const Transform3D> transform = nullptr,
71  const std::string& volumeName = "UndefinedVolume",
72  BinningType btype = arbitrary) const = 0;
73 
89  const GeometryContext& gctx, const LayerVector& layers,
91  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
92  double loc0Max, double loc1Min, double loc1Max,
93  const std::string& volumeName = "UndefinedVolume",
94  BinningType btype = arbitrary) const = 0;
95 
109  const GeometryContext& gctx, MutableTrackingVolumeVector& mtvVector,
110  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
111  double loc0Max, double loc1Min, double loc1Max,
112  unsigned int materialLayers, bool cylinder = true,
113  const std::string& volumeName = "UndefinedVolume") const = 0;
114 
128  const GeometryContext& gctx, MutableTrackingVolumeVector& mtvVector,
129  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
130  double loc0Max, double loc1Min, double loc1Max,
131  const std::vector<double>& layerPositions, bool cylinder = true,
132  const std::string& volumeName = "UndefinedVolume",
133  BinningType btype = arbitrary) const = 0;
134 
142  const GeometryContext& gctx,
143  const TrackingVolumeVector& volumes) const = 0;
144 };
145 
146 } // namespace Acts