ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4UserActions
src
HIPLArVolumeAccept.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef G4UserActions_HIPLArVolumeAccept_H
6
#define G4UserActions_HIPLArVolumeAccept_H
7
8
#include "G4UserSteppingAction.hh"
9
#include "G4UserEventAction.hh"
10
#include "G4UserRunAction.hh"
11
#include "
AthenaBaseComps/AthMessaging.h
"
12
13
#include "GaudiKernel/ServiceHandle.h"
14
15
namespace
G4UA
16
{
17
19
class
HIPLArVolumeAccept
:
public
AthMessaging
,
20
public
G4UserSteppingAction,
21
public
G4UserEventAction
22
{
23
public
:
24
HIPLArVolumeAccept
();
25
27
struct
Report
28
{
29
int
HIPevts
=0;
30
int
HIPevts_failed
=0;
31
void
merge
(
const
Report
& rep){
32
HIPevts
+=rep.HIPevts;
33
HIPevts_failed
+=rep.HIPevts_failed;
34
}
35
};
36
37
const
Report
&
getReport
()
const
38
{
return
m_report
; }
39
40
virtual
void
UserSteppingAction
(
const
G4Step*)
override
;
41
virtual
void
BeginOfEventAction
(
const
G4Event*)
override
;
42
virtual
void
EndOfEventAction
(
const
G4Event*)
override
;
43
44
private
:
45
Report
m_report
;
46
bool
m_HIPacc
;
47
48
};
// class HIPLArVolumeAccept
49
50
}
// namespace G4UA
51
52
#endif
AthMessaging.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
G4UA::HIPLArVolumeAccept::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition
HIPLArVolumeAccept.cxx:55
G4UA::HIPLArVolumeAccept::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition
HIPLArVolumeAccept.cxx:25
G4UA::HIPLArVolumeAccept::m_HIPacc
bool m_HIPacc
Definition
HIPLArVolumeAccept.h:46
G4UA::HIPLArVolumeAccept::m_report
Report m_report
Definition
HIPLArVolumeAccept.h:45
G4UA::HIPLArVolumeAccept::HIPLArVolumeAccept
HIPLArVolumeAccept()
Definition
HIPLArVolumeAccept.cxx:17
G4UA::HIPLArVolumeAccept::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition
HIPLArVolumeAccept.cxx:60
G4UA::HIPLArVolumeAccept::getReport
const Report & getReport() const
Definition
HIPLArVolumeAccept.h:37
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::HIPLArVolumeAccept::Report
Report class for merging per-thread results.
Definition
HIPLArVolumeAccept.h:28
G4UA::HIPLArVolumeAccept::Report::HIPevts_failed
int HIPevts_failed
Definition
HIPLArVolumeAccept.h:30
G4UA::HIPLArVolumeAccept::Report::HIPevts
int HIPevts
Definition
HIPLArVolumeAccept.h:29
G4UA::HIPLArVolumeAccept::Report::merge
void merge(const Report &rep)
Definition
HIPLArVolumeAccept.h:31
Generated on
for ATLAS Offline Software by
1.17.0