ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlueVolumesDescriptor.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GlueVolumesDescriptor.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 // GlueVolumesDescriptor.h, Acts project
12 
13 #pragma once
14 #include <map>
15 #include <memory>
16 #include <vector>
19 
20 namespace Acts {
21 
22 class TrackingVolume;
23 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
25 
34  public:
36  GlueVolumesDescriptor() = default;
41  const std::map<BoundarySurfaceFace,
42  std::shared_ptr<const TrackingVolumeArray>>& gvs);
43 
45  ~GlueVolumesDescriptor() = default;
51  std::shared_ptr<const TrackingVolumeArray> gvs);
52 
59  std::shared_ptr<const TrackingVolumeArray> glueVolumes(
60  BoundarySurfaceFace bsf) const;
61 
64  const std::vector<BoundarySurfaceFace>& glueFaces() const;
65 
67  std::string screenOutput() const;
68 
69  private:
70  std::map<BoundarySurfaceFace, std::shared_ptr<const TrackingVolumeArray>>
72  std::vector<BoundarySurfaceFace> m_glueFaces;
73 };
74 
75 inline const std::vector<BoundarySurfaceFace>&
77  return m_glueFaces;
78 }
79 
80 std::ostream& operator<<(std::ostream& sl, const GlueVolumesDescriptor& gvd);
81 } // namespace Acts