ATLAS Offline Software
Loading...
Searching...
No Matches
G4AtlantisDumper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4DEBUGGINGTOOLS_G4AtlantisDumper_H
6#define G4DEBUGGINGTOOLS_G4AtlantisDumper_H
7
8#include <fstream>
9#include <string>
10
11#include "G4UserSteppingAction.hh"
12#include "G4UserEventAction.hh"
14
16#include "GaudiKernel/ServiceHandle.h"
17
18namespace G4UA
19{
20
22 public G4UserSteppingAction,
23 public G4UserEventAction
24 {
25
26 public:
27
28 struct Config
29 {
30 double tedep_cut=0.1,
32 p_cut=10.0,
33 ke_cut=10.0;
34 };
35
37 virtual void UserSteppingAction(const G4Step*) override;
38 virtual void EndOfEventAction(const G4Event*) override;
39 virtual void BeginOfEventAction(const G4Event*) override;
40
41 private:
43
49 std::ofstream *m_file;
50 std::string m_filename;
51
52 }; // class G4AtlantisDumper
53
54} // namespace G4UA
55
56#endif //G4DEBUGGINGTOOLS_G4AtlantisDumper_H
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
ServiceHandle< StoreGateSvc > m_evtStore
Pointer to StoreGate (event store by default)
virtual void BeginOfEventAction(const G4Event *) override
virtual void EndOfEventAction(const G4Event *) override
G4AtlantisDumper(const Config &config)
virtual void UserSteppingAction(const G4Step *) override
ServiceHandle< StoreGateSvc > m_detStore
Pointer to StoreGate (detector store by default)