ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeantinoRecording.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GeantinoRecording.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 
14 #include <G4RunManager.hh>
15 #include <memory>
16 
19 
20 namespace Acts {
21 // Using some short hands for Recorded Material
23 
24 // And recorded material track
25 // - this is start: position, start momentum
26 // and the Recorded material
28  std::pair<std::pair<Acts::Vector3D, Acts::Vector3D>, RecordedMaterial>;
29 } // namespace Acts
30 
31 namespace FW {
32 
43  public:
45  struct Config {
46  std::string geantMaterialCollection = "geant-material-tracks";
47 
50  std::shared_ptr<DD4hepG4::DD4hepToG4Svc> geant4Service = nullptr;
51 
53  std::string gdmlFile;
55  size_t tracksPerEvent = 0;
56 
58  int seed1 = 12345;
60  int seed2 = 45678;
61  };
62 
64  GeantinoRecording(const Config& cnf,
66 
67  FW::ProcessCode execute(const AlgorithmContext& context) const final override;
68 
69  private:
73  std::unique_ptr<G4RunManager> m_runManager;
74 };
75 } // namespace FW