ATLAS Offline Software
Loading...
Searching...
No Matches
LArGeoH62004EventAction.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 LARG4H6SD_LArGeoH62004EventAction_h
6#define LARG4H6SD_LArGeoH62004EventAction_h 1
7
8#include "G4UserEventAction.hh"
9// For the output write handle
11#include "TBEvent/TBEventInfo.h"
12
13
15
16namespace G4UA
17{
19 class LArGeoH62004EventAction final: public G4UserEventAction
20 {
21 public:
22 struct Config
23 {
24 float yTable=0.0;
25 float cryoXposition=0.0;
26 };
27
29
30 virtual void EndOfEventAction(const G4Event*) override;
31
32 private:
33 inline static std::atomic<int> m_evnum{0};
34
36 float m_xpos;
37 float m_ypos;
38 }; // class LArGeoH62004EventAction
39
40} // namespace G4UA
41
42#endif
Handle class for recording to StoreGate.
virtual void EndOfEventAction(const G4Event *) override
SG::WriteHandle< TBEventInfo > m_ev
static std::atomic< int > m_evnum
LArGeoH62004EventAction(const Config &config)