Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4SpinDecayPhysics Class Reference

#include <G4SpinDecayPhysics.hh>

Inheritance diagram for G4SpinDecayPhysics:
Collaboration diagram for G4SpinDecayPhysics:

Public Member Functions

 G4SpinDecayPhysics ()
 
 G4SpinDecayPhysics (const G4String &name)
 
virtual ~G4SpinDecayPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 46 of file G4SpinDecayPhysics.hh.

Constructor & Destructor Documentation

G4SpinDecayPhysics::G4SpinDecayPhysics ( )

Definition at line 57 of file G4SpinDecayPhysics.cc.

58  : G4VPhysicsConstructor("SpinDecay"), decayWithSpin(NULL), poldecay(NULL)
59 {
60 }
G4VPhysicsConstructor(const G4String &="")
G4SpinDecayPhysics::G4SpinDecayPhysics ( const G4String name)

Definition at line 62 of file G4SpinDecayPhysics.cc.

63  : G4VPhysicsConstructor(name), decayWithSpin(NULL), poldecay(NULL)
64 {
65 }
G4VPhysicsConstructor(const G4String &="")
G4SpinDecayPhysics::~G4SpinDecayPhysics ( )
virtual

Definition at line 67 of file G4SpinDecayPhysics.cc.

68 {
69  if (decayWithSpin) delete decayWithSpin;
70  if (poldecay) delete poldecay;
71 }

Member Function Documentation

void G4SpinDecayPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 73 of file G4SpinDecayPhysics.cc.

74 {
78 
83 
86 
89 
91 
92  G4DecayTable* MuonPlusDecayTable = new G4DecayTable();
93  MuonPlusDecayTable -> Insert(new
94  G4MuonDecayChannelWithSpin("mu+",0.986));
95  MuonPlusDecayTable -> Insert(new
97  G4MuonPlus::MuonPlusDefinition() -> SetDecayTable(MuonPlusDecayTable);
98 
99  G4DecayTable* MuonMinusDecayTable = new G4DecayTable();
100  MuonMinusDecayTable -> Insert(new
101  G4MuonDecayChannelWithSpin("mu-",0.986));
102  MuonMinusDecayTable -> Insert(new
104  G4MuonMinus::MuonMinusDefinition() -> SetDecayTable(MuonMinusDecayTable);
105 }
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4MuonPlus * MuonPlusDefinition()
Definition: G4MuonPlus.cc:94
void Insert(const PVNodeID *pvPath, size_t pathLength, G4int index, Node *node)
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
static G4AntiNeutrinoMu * AntiNeutrinoMuDefinition()
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:98
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
static G4MuonMinus * MuonMinusDefinition()
Definition: G4MuonMinus.cc:95
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4NeutrinoMu * NeutrinoMuDefinition()
Definition: G4NeutrinoMu.cc:80
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81

Here is the call graph for this function:

void G4SpinDecayPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 107 of file G4SpinDecayPhysics.cc.

108 {
109  decayWithSpin = new G4DecayWithSpin();
110 
112 
113  G4VProcess* decay;
114  decay = processTable->FindProcess("Decay",G4MuonPlus::MuonPlus());
115 
116  G4ProcessManager* fManager;
117  fManager = G4MuonPlus::MuonPlus()->GetProcessManager();
118 
119  if (fManager) {
120  if (decay) fManager->RemoveProcess(decay);
121  fManager->AddProcess(decayWithSpin);
122  // set ordering for PostStepDoIt and AtRestDoIt
123  fManager ->SetProcessOrdering(decayWithSpin, idxPostStep);
124  fManager ->SetProcessOrdering(decayWithSpin, idxAtRest);
125  }
126 
128 
129  if (fManager) {
130  if (decay) fManager->RemoveProcess(decay);
131  fManager->AddProcess(decayWithSpin);
132  // set ordering for PostStepDoIt and AtRestDoIt
133  fManager ->SetProcessOrdering(decayWithSpin, idxPostStep);
134  fManager ->SetProcessOrdering(decayWithSpin, idxAtRest);
135  }
136 
137  poldecay = new G4PionDecayMakeSpin();
138 
139  decay = processTable->FindProcess("Decay",G4PionPlus::PionPlus());
140 
141  fManager = G4PionPlus::PionPlus()->GetProcessManager();
142 
143  if (fManager) {
144  if (decay) fManager->RemoveProcess(decay);
145  fManager->AddProcess(poldecay);
146  // set ordering for PostStepDoIt and AtRestDoIt
147  fManager ->SetProcessOrdering(poldecay, idxPostStep);
148  fManager ->SetProcessOrdering(poldecay, idxAtRest);
149  }
150 
151  decay = processTable->FindProcess("Decay",G4PionMinus::PionMinus());
152 
154 
155  if (fManager) {
156  if (decay) fManager->RemoveProcess(decay);
157  fManager->AddProcess(poldecay);
158  // set ordering for PostStepDoIt and AtRestDoIt
159  fManager ->SetProcessOrdering(poldecay, idxPostStep);
160  fManager ->SetProcessOrdering(poldecay, idxAtRest);
161  }
162 }
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
ParticleList decay(Cluster *const c)
Carries out a cluster decay.
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:98
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
G4VProcess * RemoveProcess(G4VProcess *aProcess)
static G4ProcessTable * GetProcessTable()
G4VProcess * FindProcess(const G4String &processName, const G4String &particleName) const

Here is the call graph for this function:


The documentation for this class was generated from the following files: