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 
9 #pragma once
10 
13 
14 #include <map>
15 #include <memory>
16 #include <vector>
17 
18 namespace Acts {
19 
20 class TrackingVolume;
21 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
23 
32  public:
34  GlueVolumesDescriptor() = default;
39  const std::map<BoundarySurfaceFace,
40  std::shared_ptr<const TrackingVolumeArray>>& gvs);
41 
43  ~GlueVolumesDescriptor() = default;
49  std::shared_ptr<const TrackingVolumeArray> gvs);
50 
57  std::shared_ptr<const TrackingVolumeArray> glueVolumes(
58  BoundarySurfaceFace bsf) const;
59 
62  const std::vector<BoundarySurfaceFace>& glueFaces() const;
63 
65  std::string screenOutput() const;
66 
67  private:
68  std::map<BoundarySurfaceFace, std::shared_ptr<const TrackingVolumeArray>>
70  std::vector<BoundarySurfaceFace> m_glueFaces;
71 };
72 
73 inline const std::vector<BoundarySurfaceFace>&
75  return m_glueFaces;
76 }
77 
78 std::ostream& operator<<(std::ostream& sl, const GlueVolumesDescriptor& gvd);
79 } // namespace Acts