Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlignedDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AlignedDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 <cstddef>
16 #include <memory>
17 #include <utility>
18 #include <vector>
19 
20 namespace Acts {
21 class TrackingGeometry;
22 class IMaterialDecorator;
23 } // namespace Acts
24 
25 namespace ActsExamples {
26 class IContextDecorator;
27 namespace Generic {
29 } // namespace Generic
30 } // namespace ActsExamples
31 
32 namespace ActsExamples::Contextual {
35 
37  public:
38  using ContextDecorators =
39  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
40  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
41 
42  struct Config : public GenericDetector::Config {
44  size_t seed = 1324354657;
46  size_t iovSize = 100;
48  size_t flushSize = 200;
50  bool doGarbageCollection = true;
56  double sigmaInRot = 20 * 0.001; // millirad
58  double sigmaOutRot = 0;
60  bool firstIovNominal = false;
63 
64  enum class Mode { Internal, External };
65  Mode mode = Mode::Internal;
66  };
67 
68  std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
69  const Config& cfg,
70  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator);
71 
72  std::vector<std::vector<std::shared_ptr<Generic::GenericDetectorElement>>>&
74  return m_detectorStore;
75  }
76 
77  private:
79  std::vector<std::vector<std::shared_ptr<Generic::GenericDetectorElement>>>
81 };
82 
83 } // namespace ActsExamples::Contextual