ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DigitizationAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DigitizationAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017 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 
11 #include <memory>
12 #include <string>
13 #include <unordered_map>
14 
18 
19 namespace Acts {
20 class DigitizationModule;
21 class IdentifiedDetectorElement;
22 class PlanarModuleStepper;
23 class Surface;
24 class TrackingGeometry;
25 } // namespace Acts
26 
27 namespace FW {
28 
30 class DigitizationAlgorithm final : public BareAlgorithm {
31  public:
32  struct Config {
34  std::string inputSimulatedHits;
36  std::string outputClusters;
38  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry;
40  std::shared_ptr<const Acts::PlanarModuleStepper> planarModuleStepper;
42  std::shared_ptr<const RandomNumbers> randomNumbers;
43  };
44 
50 
55  ProcessCode execute(const AlgorithmContext& ctx) const final override;
56 
57  private:
58  struct Digitizable {
59  const Acts::Surface* surface = nullptr;
62  };
63 
66  std::unordered_map<Acts::GeometryID, Digitizable> m_digitizables;
67 };
68 
69 } // namespace FW