ATLAS Offline Software
Loading...
Searching...
No Matches
HitWrapper.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 G4UserActions_HitWrapper_H
6#define G4UserActions_HitWrapper_H
7
8
9#include "G4UserEventAction.hh"
11#include "GaudiKernel/ServiceHandle.h"
13
14namespace G4UA
15{
16
18 class HitWrapper : public AthMessaging, public G4UserEventAction
19 {
20 public:
21
22 struct Config
23 {
24 float time=25.;
25 };
26
27 HitWrapper(const Config& config);
28 virtual void EndOfEventAction(const G4Event*) override;
29
30 private:
31
37
39
40 }; // class HitWrapper
41
42} // namespace G4UA
43
44#endif
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition HitWrapper.h:36
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition HitWrapper.h:32
HitWrapper(const Config &config)
virtual void EndOfEventAction(const G4Event *) override
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition HitWrapper.h:34