EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ITrackingVolumeArrayCreator.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ITrackingVolumeArrayCreator.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 <vector>
17 
18 namespace Acts {
19 
20 class TrackingVolume;
21 
23 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
24 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
25 
27 using TrackingVolumeArray = BinnedArray<TrackingVolumePtr>;
29 using TrackingVolumeVector = std::vector<TrackingVolumePtr>;
30 
44  public:
46  virtual ~ITrackingVolumeArrayCreator() = default;
47 
56  virtual std::shared_ptr<const TrackingVolumeArray> trackingVolumeArray(
57  const GeometryContext& gctx, const TrackingVolumeVector& vols,
58  BinningValue bVal) const = 0;
59 };
60 } // namespace Acts