ATLAS Offline Software
Loading...
Searching...
No Matches
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
10class 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
G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &stepData) final
G4double AtRestGetPhysicalInteractionLength(const G4Track &track, G4ForceCondition *condition) final
G4VParticleChange * AtRestDoIt(const G4Track &track, const G4Step &stepData) final
G4double AlongStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection) final
G4VParticleChange * AlongStepDoIt(const G4Track &track, const G4Step &stepData) final
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) final
G4MyProcess(G4String &aName, G4ProcessType aType)
const std::string selection