Analysis Software
Documentation for sPHENIX simulation 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 <iosfwd>
15 #include <map>
16 #include <memory>
17 #include <string>
18 #include <vector>
19 
20 namespace Acts {
21 
22 class TrackingVolume;
23 
24 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
26 
35  public:
37  GlueVolumesDescriptor() = default;
42  const std::map<BoundarySurfaceFace,
43  std::shared_ptr<const TrackingVolumeArray>>& gvs);
44 
46  ~GlueVolumesDescriptor() = default;
52  std::shared_ptr<const TrackingVolumeArray> gvs);
53 
60  std::shared_ptr<const TrackingVolumeArray> glueVolumes(
61  BoundarySurfaceFace bsf) const;
62 
65  const std::vector<BoundarySurfaceFace>& glueFaces() const;
66 
68  std::string screenOutput() const;
69 
70  private:
71  std::map<BoundarySurfaceFace, std::shared_ptr<const TrackingVolumeArray>>
73  std::vector<BoundarySurfaceFace> m_glueFaces;
74 };
75 
76 inline const std::vector<BoundarySurfaceFace>&
78  return m_glueFaces;
79 }
80 
81 std::ostream& operator<<(std::ostream& sl, const GlueVolumesDescriptor& gvd);
82 } // namespace Acts