File indexing completed on 2025-01-18 09:58:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #define INCLXX_IN_GEANT4_MODE 1
0035
0036 #include "globals.hh"
0037
0038
0039
0040
0041
0042
0043
0044
0045 #ifndef G4INCLCASCADEACTION_HH
0046 #define G4INCLCASCADEACTION_HH 1
0047
0048 #include "G4INCLIAvatar.hh"
0049 #include "G4INCLNucleus.hh"
0050 #include "G4INCLFinalState.hh"
0051 #include "G4INCLIPropagationModel.hh"
0052 #include "G4INCLIAvatar.hh"
0053 #include "G4INCLConfig.hh"
0054
0055 namespace G4INCL {
0056
0057 class CascadeAction {
0058
0059 friend class INCL;
0060
0061 public:
0062 CascadeAction();
0063 virtual ~CascadeAction();
0064
0065 virtual void beforeRunUserAction(Config const *) {}
0066 virtual void beforeCascadeUserAction(IPropagationModel *) {}
0067 virtual void beforePropagationUserAction(IPropagationModel *) {}
0068 virtual void beforeAvatarUserAction(IAvatar *, Nucleus *) {}
0069 virtual void afterAvatarUserAction(IAvatar *, Nucleus *, FinalState *) {}
0070 virtual void afterPropagationUserAction(IPropagationModel *, IAvatar *) {}
0071 virtual void afterCascadeUserAction(Nucleus *) {}
0072 virtual void afterRunUserAction() {}
0073
0074 private:
0075
0076
0077 void beforeRunAction(Config const *config);
0078 void beforeCascadeAction(IPropagationModel *);
0079 void beforePropagationAction(IPropagationModel *pm);
0080 void beforeAvatarAction(IAvatar *a, Nucleus *n);
0081 void afterAvatarAction(IAvatar *a, Nucleus *n, FinalState *fs);
0082 void afterPropagationAction(IPropagationModel *pm, IAvatar *avatar);
0083 void afterCascadeAction(Nucleus *);
0084 void afterRunAction();
0085
0086 void beforeRunDefaultAction(Config const *config);
0087 void beforeCascadeDefaultAction(IPropagationModel *pm);
0088 void beforePropagationDefaultAction(IPropagationModel *pm);
0089 void beforeAvatarDefaultAction(IAvatar *a, Nucleus *n);
0090 void afterAvatarDefaultAction(IAvatar *a, Nucleus *n, FinalState *fs);
0091 void afterPropagationDefaultAction(IPropagationModel *pm, IAvatar *avatar);
0092 void afterCascadeDefaultAction(Nucleus *);
0093 void afterRunDefaultAction();
0094
0095 private:
0096 long stepCounter;
0097 };
0098
0099 }
0100 #endif