BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
BesGeneralPhysics.cc
Go to the documentation of this file.
1
3#include "globals.hh"
4#include "G4ios.hh"
5#include <iomanip>
6
8 : G4VPhysicsConstructor(name)
9{
10}
11
13{
14}
15
16#include "G4ParticleDefinition.hh"
17#include "G4ProcessManager.hh"
18// Bosons
19#include "G4ChargedGeantino.hh"
20#include "G4Geantino.hh"
21
23{
24 // pseudo-particles
25 G4Geantino::GeantinoDefinition();
26 G4ChargedGeantino::ChargedGeantinoDefinition();
27}
28
30{
31 theParticleIterator->reset();
32 while( (*theParticleIterator)() ){
33 G4ParticleDefinition* particle = theParticleIterator->value();
34 G4ProcessManager* pmanager = particle->GetProcessManager();
35 if (fDecayProcess.IsApplicable(*particle)) {
36 pmanager ->AddProcess(&fDecayProcess);
37 // set ordering for PostStepDoIt and AtRestDoIt
38 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
39 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
40 }
41 }
42}
43
44
45
46
47
48
49
50
51
BesGeneralPhysics(const G4String &name="general")
virtual void ConstructProcess()
virtual ~BesGeneralPhysics()
virtual void ConstructParticle()