ATLAS Offline Software
SteppingValidation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SteppingValidation_H
6 #define SteppingValidation_H
7 
8 #include "G4UserRunAction.hh"
9 #include "G4UserEventAction.hh"
10 #include "G4UserSteppingAction.hh"
11 
12 #include "SimTestHisto.h"
13 
14 // Forward declarations
15 class TH1;
16 class TH2;
17 class G4Track;
18 
19 
20 namespace G4UA
21 {
22 
24  class SteppingValidation : public G4UserRunAction,
25  public G4UserEventAction,
26  public G4UserSteppingAction,
27  public SimTestHisto
28  {
29 
30  public:
31 
32  // Constructor
34 
37  virtual void BeginOfRunAction(const G4Run*) override;
38  virtual void EndOfEventAction(const G4Event*) override;
39  virtual void BeginOfEventAction(const G4Event*) override;
40  virtual void UserSteppingAction(const G4Step*) override;
42 
43  private:
44 
46  TH2 *m_EvsR;
47  G4Track *m_prim, *m_sec;
49 
50  }; // class SteppingValidation
51 
52 } // namespace G4UA
53 
54 #endif
G4UA::SteppingValidation::m_nsec
double m_nsec
Definition: SteppingValidation.h:48
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::SteppingValidation::m_primF
double m_primF
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::m_dh2
double m_dh2
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::m_secE
TH1 * m_secE
Definition: SteppingValidation.h:45
SimTestHisto
Utility helper class for dealing with histograms in the sim tests.
Definition: SimTestHisto.h:26
G4UA::SteppingValidation::m_primH
double m_primH
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::m_prim
G4Track * m_prim
Definition: SteppingValidation.h:47
G4UA::SteppingValidation::m_dp2
double m_dp2
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::m_dh
double m_dh
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition: SteppingValidation.cxx:76
G4UA::SteppingValidation::m_latEta
TH1 * m_latEta
Definition: SteppingValidation.h:45
G4UA::SteppingValidation::m_sec
G4Track * m_sec
Definition: SteppingValidation.h:47
G4UA::SteppingValidation::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition: SteppingValidation.cxx:57
SimTestHisto.h
G4UA::SteppingValidation::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition: SteppingValidation.cxx:32
G4UA::SteppingValidation::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition: SteppingValidation.cxx:67
G4UA::SteppingValidation::m_stepL
TH1 * m_stepL
Definition: SteppingValidation.h:45
G4UA::SteppingValidation::m_latPhi
TH1 * m_latPhi
Definition: SteppingValidation.h:45
G4UA::SteppingValidation::m_mscAngle
TH1 * m_mscAngle
Definition: SteppingValidation.h:45
G4UA::SteppingValidation::SteppingValidation
SteppingValidation()
Definition: SteppingValidation.cxx:23
G4UA::SteppingValidation::m_EvsR
TH2 * m_EvsR
Definition: SteppingValidation.h:46
G4UA::SteppingValidation
User action to do some basic step-based validation of G4.
Definition: SteppingValidation.h:28
G4UA::SteppingValidation::m_stepELoss
TH1 * m_stepELoss
Definition: SteppingValidation.h:45
G4UA::SteppingValidation::m_dp
double m_dp
Definition: SteppingValidation.h:48
G4UA::SteppingValidation::m_stepProc
TH1 * m_stepProc
Definition: SteppingValidation.h:45