ATLAS Offline Software
Loading...
Searching...
No Matches
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"
12
13#include "GaudiKernel/ServiceHandle.h"
14
15namespace G4UA
16{
17
20 public G4UserSteppingAction,
21 public G4UserEventAction
22 {
23 public:
25
27 struct Report
28 {
29 int HIPevts=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:
47
48 }; // class HIPLArVolumeAccept
49
50} // namespace G4UA
51
52#endif
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
virtual void BeginOfEventAction(const G4Event *) override
virtual void UserSteppingAction(const G4Step *) override
virtual void EndOfEventAction(const G4Event *) override
const Report & getReport() const
Report class for merging per-thread results.