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 
9 #pragma once
10 
13 
14 #include <memory>
15 #include <string>
16 #include <vector>
17 
18 namespace Acts {
19 
20 class Layer;
21 class TrackingVolume;
22 class VolumeBounds;
23 class IVolumeMaterial;
24 
25 using LayerPtr = std::shared_ptr<const Layer>;
26 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
27 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
28 using VolumeBoundsPtr = std::shared_ptr<const VolumeBounds>;
29 
30 using LayerVector = std::vector<LayerPtr>;
31 using TrackingVolumeVector = std::vector<TrackingVolumePtr>;
32 using MutableTrackingVolumeVector = std::vector<MutableTrackingVolumePtr>;
33 
45  public:
47  virtual ~ITrackingVolumeHelper() = default;
48 
64  const GeometryContext& gctx, const LayerVector& layers,
65  std::shared_ptr<const IVolumeMaterial> volumeMaterial,
66  VolumeBoundsPtr volumeBounds, MutableTrackingVolumeVector mtvVector = {},
67  const Transform3D& transform = Transform3D::Identity(),
68  const std::string& volumeName = "UndefinedVolume",
69  BinningType btype = arbitrary) const = 0;
70 
86  const GeometryContext& gctx, const LayerVector& layers,
88  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
89  double loc0Max, double loc1Min, double loc1Max,
90  const std::string& volumeName = "UndefinedVolume",
91  BinningType btype = arbitrary) const = 0;
92 
106  const GeometryContext& gctx, MutableTrackingVolumeVector& mtvVector,
107  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
108  double loc0Max, double loc1Min, double loc1Max,
109  unsigned int materialLayers, bool cylinder = true,
110  const std::string& volumeName = "UndefinedVolume") const = 0;
111 
125  const GeometryContext& gctx, MutableTrackingVolumeVector& mtvVector,
126  std::shared_ptr<const IVolumeMaterial> volumeMaterial, double loc0Min,
127  double loc0Max, double loc1Min, double loc1Max,
128  const std::vector<double>& layerPositions, bool cylinder = true,
129  const std::string& volumeName = "UndefinedVolume",
130  BinningType btype = arbitrary) const = 0;
131 
139  const GeometryContext& gctx,
140  const TrackingVolumeVector& volumes) const = 0;
141 };
142 
143 } // namespace Acts