ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MMSteppingAction.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MMSteppingAction.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-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 
10 // MMMaterialStepAction.hpp
12 
13 #pragma once
14 
15 #include <vector>
16 
19 #include "G4UserSteppingAction.hh"
20 #include "globals.hh"
21 
22 namespace FW {
23 namespace Geant4 {
24 
33  public:
36 
38  ~MMSteppingAction() override;
39 
41  static MMSteppingAction* Instance();
42 
46  void UserSteppingAction(const G4Step* step) final override;
47 
50  void Reset();
51 
53  std::vector<Acts::MaterialInteraction> materialSteps() { return m_steps; }
54 
56  FW::SimHitContainer::sequence_type trackSteps() { return m_tracksteps; }
57 
58  private:
61 
63  std::vector<Acts::MaterialInteraction> m_steps = {};
65  FW::SimHitContainer::sequence_type m_tracksteps;
66 };
67 
68 } // namespace Geant4
69 } // namespace FW