ATLAS Offline Software
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 
17 namespace 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
G4UA::CosmicPerigeeAction::m_idZ
double m_idZ
Definition: CosmicPerigeeAction.h:50
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::CosmicPerigeeAction::m_idR
double m_idR
Definition: CosmicPerigeeAction.h:51
python.SystemOfUnits.MeV
int MeV
Definition: SystemOfUnits.py:154
G4UA::CosmicPerigeeAction
NEEDS DOCUMENTATION.
Definition: CosmicPerigeeAction.h:24
G4UA::CosmicPerigeeAction::CosmicPerigeeAction
CosmicPerigeeAction(const Config &config)
Definition: CosmicPerigeeAction.cxx:20
G4UA::CosmicPerigeeAction::Config
Definition: CosmicPerigeeAction.h:29
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
G4UA::CosmicPerigeeAction::m_config
Config m_config
Configuration options.
Definition: CosmicPerigeeAction.h:43
WriteHandle.h
Handle class for recording to StoreGate.
G4UA::CosmicPerigeeAction::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition: CosmicPerigeeAction.cxx:30
G4UA::CosmicPerigeeAction::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition: CosmicPerigeeAction.cxx:56
G4UA::CosmicPerigeeAction::Config::pMinPrimary
float pMinPrimary
Definition: CosmicPerigeeAction.h:30
G4UA::CosmicPerigeeAction::m_trackRecordCollection
SG::WriteHandle< TrackRecordCollection > m_trackRecordCollection
Output track track record.
Definition: CosmicPerigeeAction.h:46
TrackRecordCollection.h
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
G4UA::CosmicPerigeeAction::PreUserTrackingAction
virtual void PreUserTrackingAction(const G4Track *) override
Definition: CosmicPerigeeAction.cxx:49
G4UA::CosmicPerigeeAction::m_hasBeenSaved
bool m_hasBeenSaved
State members.
Definition: CosmicPerigeeAction.h:49
G4UA::CosmicPerigeeAction::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition: CosmicPerigeeAction.cxx:44