forked from LoickMarion/chroma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDummyProcess.hh
More file actions
48 lines (37 loc) · 1.13 KB
/
DummyProcess.hh
File metadata and controls
48 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* @class DummyProcess
*
* @detail Dummy classes used as placeholders in new opticalphoton tracks so
* that G4Track users can figure out the name of the process which
* created the track.
*/
#ifndef __DummyProcess__
#define __DummyProcess__
#include <G4VProcess.hh>
class DummyProcess : public G4VProcess {
public:
DummyProcess(const G4String& aName="NoName", G4ProcessType aType=fNotDefined)
: G4VProcess(aName, aType) { };
virtual G4double AlongStepGetPhysicalInteractionLength(
const G4Track&, G4double, G4double, G4double&, G4GPILSelection*) {
return 0;
}
virtual G4double AtRestGetPhysicalInteractionLength(
const G4Track&, G4ForceCondition*) {
return 0;
}
virtual G4double PostStepGetPhysicalInteractionLength(
const G4Track&, G4double, G4ForceCondition*) {
return 0;
}
virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) {
return 0;
}
virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) {
return 0;
}
virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) {
return 0;
}
};
#endif // __DummyProcess__