BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
ExN04GeneralPhysics.cxx
Go to the documentation of this file.
1//
2// ********************************************************************
3// * DISCLAIMER *
4// * *
5// * The following disclaimer summarizes all the specific disclaimers *
6// * of contributors to this software. The specific disclaimers,which *
7// * govern, are listed with their locations in: *
8// * http://cern.ch/geant4/license *
9// * *
10// * Neither the authors of this software system, nor their employing *
11// * institutes,nor the agencies providing financial support for this *
12// * work make any representation or warranty, express or implied, *
13// * regarding this software system or assume any liability for its *
14// * use. *
15// * *
16// * This code implementation is the intellectual property of the *
17// * GEANT4 collaboration. *
18// * By copying, distributing or modifying the Program (or any work *
19// * based on the Program) you indicate your acceptance of this *
20// * statement, and all its terms. *
21// ********************************************************************
22//
23//
24// $Id: ExN04GeneralPhysics.cxx,v 1.1.1.1 2004/09/28 05:16:53 liwd Exp $
25// GEANT4 tag $Name: G4Svc-00-01-52 $
26//
27//
28
30
31#include "globals.hh"
32#include "G4ios.hh"
33
35 : G4VPhysicsConstructor(name)
36{
37}
38
40{
41}
42
43#include "G4ParticleDefinition.hh"
44#include "G4ProcessManager.hh"
45// Bosons
46#include "G4ChargedGeantino.hh"
47#include "G4Geantino.hh"
48
50{
51 // pseudo-particles
52 G4Geantino::GeantinoDefinition();
53 G4ChargedGeantino::ChargedGeantinoDefinition();
54}
55
57{
58 // Add Decay Process
59 theParticleIterator->reset();
60 while( (*theParticleIterator)() ){
61 G4ParticleDefinition* particle = theParticleIterator->value();
62 G4ProcessManager* pmanager = particle->GetProcessManager();
63 if (fDecayProcess.IsApplicable(*particle)) {
64 pmanager ->AddProcess(&fDecayProcess);
65 // set ordering for PostStepDoIt and AtRestDoIt
66 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
67 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
68 }
69 }
70}
71
72
virtual void ConstructProcess()
ExN04GeneralPhysics(const G4String &name="general")
virtual void ConstructParticle()