ATLAS Offline Software
Loading...
Searching...
No Matches
VerboseSelector.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_VerboseSelector_H
6#define G4DEBUGGINGTOOLS_VerboseSelector_H
7
8#include <string>
9
10#include "G4UserSteppingAction.hh"
11#include "G4UserTrackingAction.hh"
12#include "G4UserEventAction.hh"
14#include "GaudiKernel/ServiceHandle.h"
16
17namespace G4UA
18{
19
21 public G4UserEventAction,
22 public G4UserSteppingAction,
23 public G4UserTrackingAction
24 {
25
26 public:
27
28 struct Config
29 {
30
35 int verb=1;
36 double Xmin=0, Xmax=0;
37 double Ymin=0, Ymax=0;
38 double Zmin=0, Zmax=0;
39 std::vector<double> targetPdgIDs = {};
40
41 };
42
44 virtual void UserSteppingAction(const G4Step*) override;
45 virtual void PreUserTrackingAction(const G4Track*) override;
46 virtual void PostUserTrackingAction(const G4Track*) override;
47 virtual void BeginOfEventAction(const G4Event*) override;
48
49 private:
55 uint64_t m_evtCount;
56
57 }; // class VerboseSelector
58
59} // namespace G4UA
60
61#endif //G4DEBUGGINGTOOLS_VerboseSelector_H
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
virtual void BeginOfEventAction(const G4Event *) override
VerboseSelector(const Config &config)
ServiceHandle< StoreGateSvc > m_detStore
Pointer to StoreGate (detector store by default)
ServiceHandle< StoreGateSvc > m_evtStore
Pointer to StoreGate (event store by default)
virtual void UserSteppingAction(const G4Step *) override
virtual void PreUserTrackingAction(const G4Track *) override
virtual void PostUserTrackingAction(const G4Track *) override
std::vector< double > targetPdgIDs