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