Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TGeoCylinderDiscSplitter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TGeoCylinderDiscSplitter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 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 class TGeoNode;
19 
20 namespace Acts {
21 
22 class TGeoDetectorElement;
23 
28  public:
30  struct Config {
35 
37  int discPhiSegments = -1;
40  };
41 
47  const Config& cfg,
48  std::unique_ptr<const Acts::Logger> logger = Acts::getDefaultLogger(
49  "TGeoCylinderDiscSplitter", Acts::Logging::INFO));
50 
51  ~TGeoCylinderDiscSplitter() override = default;
52 
61  std::vector<std::shared_ptr<const Acts::TGeoDetectorElement>> split(
62  const GeometryContext& gctx,
63  std::shared_ptr<const Acts::TGeoDetectorElement> tgde) const override;
64 
65  private:
67 
69  const Acts::Logger& logger() const { return *m_logger; }
70 
72  std::unique_ptr<const Acts::Logger> m_logger;
73 };
74 
75 } // namespace Acts