ATLAS Offline Software
DerivedG4Process.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 G4MyProcess_h
6 #define G4MyProcess_h
7 
8 #include "G4VProcess.hh"
9 
10 class G4MyProcess : public G4VProcess {
11 
12  public:
13 
14  G4MyProcess( G4String& aName, G4ProcessType aType ) : G4VProcess( aName, aType )
15  {
16 
17  }
18 
20 
21  G4VParticleChange* PostStepDoIt(
22  const G4Track& track,
23  const G4Step& stepData
24  ) final
25  {
26  (void)track; //just for silence UNUSED warning! The same below
27  (void)stepData;
28  return nullptr;
29  }
30 
31  G4VParticleChange* AlongStepDoIt(
32  const G4Track& track,
33  const G4Step& stepData
34  ) final
35  {
36  (void)track;
37  (void)stepData;
38  return nullptr;
39  }
40 
41  G4VParticleChange* AtRestDoIt(
42  const G4Track& track,
43  const G4Step& stepData
44  ) final
45  {
46  (void)track;
47  (void)stepData;
48  return nullptr;
49  }
50 
52  const G4Track& track,
53  G4double previousStepSize,
54  G4double currentMinimumStep,
55  G4double& proposedSafety,
56  G4GPILSelection* selection) final
57  {
58  (void)track;
59  (void)previousStepSize;
60  (void)currentMinimumStep;
61  (void)proposedSafety;
62  (void)selection;
63  return 0.0;
64  }
65 
67  const G4Track& track,
68  G4ForceCondition* condition
69  ) final
70  {
71  (void)track;
72  (void)condition;
73  return 0.0;
74  }
75 
77  const G4Track& track,
78  G4double previousStepSize,
79  G4ForceCondition* condition
80  ) final
81  {
82  (void)track;
83  (void)previousStepSize;
84  (void)condition;
85  return 0.0;
86  }
87 };
88 
89 #endif
90 
G4MyProcess::PostStepGetPhysicalInteractionLength
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) final
Definition: DerivedG4Process.h:76
LArG4GenerateShowerLib.condition
condition
Definition: LArG4GenerateShowerLib.py:19
G4MyProcess
Definition: DerivedG4Process.h:10
G4MyProcess::AlongStepDoIt
G4VParticleChange * AlongStepDoIt(const G4Track &track, const G4Step &stepData) final
Definition: DerivedG4Process.h:31
G4MyProcess::~G4MyProcess
~G4MyProcess()
Definition: DerivedG4Process.h:19
G4MyProcess::AtRestDoIt
G4VParticleChange * AtRestDoIt(const G4Track &track, const G4Step &stepData) final
Definition: DerivedG4Process.h:41
G4MyProcess::PostStepDoIt
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &stepData) final
Definition: DerivedG4Process.h:21
selection
const std::string selection
Definition: fbtTestBasics.cxx:74
G4MyProcess::G4MyProcess
G4MyProcess(G4String &aName, G4ProcessType aType)
Definition: DerivedG4Process.h:14
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
G4MyProcess::AtRestGetPhysicalInteractionLength
G4double AtRestGetPhysicalInteractionLength(const G4Track &track, G4ForceCondition *condition) final
Definition: DerivedG4Process.h:66
G4MyProcess::AlongStepGetPhysicalInteractionLength
G4double AlongStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection) final
Definition: DerivedG4Process.h:51