ATLAS Offline Software
Simulation
G4Utilities
G4DebuggingTools
src
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"
13
#include "
AthenaBaseComps/AthMessaging.h
"
14
15
#include "
StoreGate/StoreGateSvc.h
"
16
#include "GaudiKernel/ServiceHandle.h"
17
18
namespace
G4UA
19
{
20
21
class
G4AtlantisDumper
:
public
AthMessaging
,
22
public
G4UserSteppingAction,
23
public
G4UserEventAction
24
{
25
26
public
:
27
28
struct
Config
29
{
30
double
tedep_cut
=0.1,
31
length_cut
=1.0,
32
p_cut
=10.0,
33
ke_cut
=10.0;
34
};
35
36
G4AtlantisDumper
(
const
Config
&
config
);
37
virtual
void
UserSteppingAction
(
const
G4Step*)
override
;
38
virtual
void
EndOfEventAction
(
const
G4Event*)
override
;
39
virtual
void
BeginOfEventAction
(
const
G4Event*)
override
;
40
41
private
:
42
Config
m_config
;
43
45
ServiceHandle<StoreGateSvc>
m_evtStore
;
47
ServiceHandle<StoreGateSvc>
m_detStore
;
48
int
m_nsteps
;
49
std::ofstream *
m_file
;
50
std::string
m_filename
;
51
52
};
// class G4AtlantisDumper
53
54
}
// namespace G4UA
55
56
#endif //G4DEBUGGINGTOOLS_G4AtlantisDumper_H
G4UA::G4AtlantisDumper::Config
Definition:
G4AtlantisDumper.h:29
G4UA::G4AtlantisDumper::Config::p_cut
double p_cut
Definition:
G4AtlantisDumper.h:32
G4UA::G4AtlantisDumper::m_evtStore
ServiceHandle< StoreGateSvc > m_evtStore
Pointer to StoreGate (event store by default)
Definition:
G4AtlantisDumper.h:45
G4UA::G4AtlantisDumper::Config::tedep_cut
double tedep_cut
Definition:
G4AtlantisDumper.h:30
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
G4UA::G4AtlantisDumper::m_filename
std::string m_filename
Definition:
G4AtlantisDumper.h:50
G4UA::G4AtlantisDumper::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Pointer to StoreGate (detector store by default)
Definition:
G4AtlantisDumper.h:47
G4UA::G4AtlantisDumper::m_config
Config m_config
Definition:
G4AtlantisDumper.h:42
G4UA::G4AtlantisDumper::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition:
G4AtlantisDumper.cxx:109
G4UA::G4AtlantisDumper::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition:
G4AtlantisDumper.cxx:99
config
Definition:
PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
G4UA::G4AtlantisDumper::Config::ke_cut
double ke_cut
Definition:
G4AtlantisDumper.h:33
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition:
AthMessaging.h:55
G4UA::G4AtlantisDumper::m_file
std::ofstream * m_file
Definition:
G4AtlantisDumper.h:49
G4UA::G4AtlantisDumper::Config::length_cut
double length_cut
Definition:
G4AtlantisDumper.h:31
G4UA::G4AtlantisDumper::G4AtlantisDumper
G4AtlantisDumper(const Config &config)
Definition:
G4AtlantisDumper.cxx:24
G4UA::G4AtlantisDumper
Definition:
G4AtlantisDumper.h:24
G4UA::G4AtlantisDumper::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition:
G4AtlantisDumper.cxx:33
AthMessaging.h
G4UA::G4AtlantisDumper::m_nsteps
int m_nsteps
Definition:
G4AtlantisDumper.h:48
StoreGateSvc.h
ServiceHandle< StoreGateSvc >
Generated on Sun Dec 22 2024 21:10:41 for ATLAS Offline Software by
1.8.18