1 |
|
2 |
#ifndef GeneralPhysics_h |
3 |
#define GeneralPhysics_h 1 |
4 |
|
5 |
#include "globals.hh" |
6 |
#include "G4ios.hh" |
7 |
|
8 |
#include "G4VPhysicsConstructor.hh" |
9 |
|
10 |
|
11 |
#include "G4Decay.hh" |
12 |
|
13 |
class GeneralPhysics : public G4VPhysicsConstructor |
14 |
{ |
15 |
public: |
16 |
GeneralPhysics(const G4String& name = "general"); |
17 |
virtual ~GeneralPhysics(); |
18 |
|
19 |
public: |
20 |
// This method will be invoked in the Construct() method. |
21 |
// each particle type will be instantiated |
22 |
virtual void ConstructParticle(); |
23 |
|
24 |
// This method will be invoked in the Construct() method. |
25 |
// each physics process will be instantiated and |
26 |
// registered to the process manager of each particle type |
27 |
virtual void ConstructProcess(); |
28 |
|
29 |
protected: |
30 |
G4Decay fDecayProcess; |
31 |
}; |
32 |
|
33 |
|
34 |
#endif |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|