ATLAS Offline Software
Loading...
Searching...
No Matches
CosmicPerigeeAction.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_CosmicPerigeeAction_H
6#define G4UserActions_CosmicPerigeeAction_H
7
9#include "TrackRecord/TrackRecordCollection.h" // Can't be forward declared - it's a type def
10
11#include "G4UserSteppingAction.hh"
12#include "G4UserEventAction.hh"
13#include "G4UserTrackingAction.hh"
14
15#include "CLHEP/Units/SystemOfUnits.h"
16
17namespace G4UA
18{
19
21 class CosmicPerigeeAction final : public G4UserSteppingAction,
22 public G4UserEventAction,
23 public G4UserTrackingAction
24 {
25
26 public:
27
28 struct Config
29 {
30 float pMinPrimary = 100*CLHEP::MeV;
31 };
32
34
35 virtual void UserSteppingAction(const G4Step*) override;
36 virtual void EndOfEventAction(const G4Event*) override;
37 virtual void BeginOfEventAction(const G4Event*) override;
38 virtual void PreUserTrackingAction(const G4Track*) override;
39
40 private:
41
44
47
50 double m_idZ;
51 double m_idR;
52
53 }; // class CosmicPerigeeAction
54
55} // namespace G4UA
56
57#endif
Handle class for recording to StoreGate.
virtual void EndOfEventAction(const G4Event *) override
Config m_config
Configuration options.
virtual void UserSteppingAction(const G4Step *) override
CosmicPerigeeAction(const Config &config)
SG::WriteHandle< TrackRecordCollection > m_trackRecordCollection
Output track track record.
virtual void BeginOfEventAction(const G4Event *) override
bool m_hasBeenSaved
State members.
virtual void PreUserTrackingAction(const G4Track *) override