| 1 |
cafagna |
1.1 |
|
| 2 |
|
|
|
| 3 |
|
|
#include "GeneralPhysics.hh" |
| 4 |
|
|
|
| 5 |
|
|
#include "globals.hh" |
| 6 |
|
|
#include "G4ios.hh" |
| 7 |
|
|
|
| 8 |
|
|
|
| 9 |
|
|
GeneralPhysics::GeneralPhysics(const G4String& name) |
| 10 |
|
|
: G4VPhysicsConstructor(name) |
| 11 |
|
|
{ |
| 12 |
|
|
} |
| 13 |
|
|
|
| 14 |
|
|
GeneralPhysics::~GeneralPhysics() |
| 15 |
|
|
{ |
| 16 |
|
|
} |
| 17 |
|
|
|
| 18 |
|
|
#include "G4ParticleDefinition.hh" |
| 19 |
|
|
#include "G4ProcessManager.hh" |
| 20 |
|
|
// Bosons |
| 21 |
|
|
#include "G4ChargedGeantino.hh" |
| 22 |
|
|
#include "G4Geantino.hh" |
| 23 |
|
|
|
| 24 |
|
|
void GeneralPhysics::ConstructParticle() |
| 25 |
|
|
{ |
| 26 |
|
|
// pseudo-particles |
| 27 |
|
|
G4Geantino::GeantinoDefinition(); |
| 28 |
|
|
G4ChargedGeantino::ChargedGeantinoDefinition(); |
| 29 |
|
|
} |
| 30 |
|
|
|
| 31 |
|
|
void GeneralPhysics::ConstructProcess() |
| 32 |
|
|
{ |
| 33 |
|
|
// Add Decay Process |
| 34 |
|
|
theParticleIterator->reset(); |
| 35 |
|
|
while( (*theParticleIterator)() ){ |
| 36 |
|
|
G4ParticleDefinition* particle = theParticleIterator->value(); |
| 37 |
|
|
G4ProcessManager* pmanager = particle->GetProcessManager(); |
| 38 |
|
|
if (fDecayProcess.IsApplicable(*particle)) { |
| 39 |
|
|
pmanager ->AddProcess(&fDecayProcess); |
| 40 |
|
|
// set ordering for PostStepDoIt and AtRestDoIt |
| 41 |
|
|
pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep); |
| 42 |
|
|
pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest); |
| 43 |
|
|
} |
| 44 |
|
|
} |
| 45 |
|
|
} |
| 46 |
|
|
|
| 47 |
|
|
|