Geant4
10.01.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RE01UnknownDecayPhysics.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
28
//
29
// $Id: RE01UnknownDecayPhysics.cc 68761 2013-04-05 12:35:00Z gcosmo $
30
//
31
#include "
RE01UnknownDecayPhysics.hh
"
32
33
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34
RE01UnknownDecayPhysics::RE01UnknownDecayPhysics
(
const
G4String
&
name
)
35
:
G4VPhysicsConstructor
(name)
36
{;}
37
38
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
39
RE01UnknownDecayPhysics::~RE01UnknownDecayPhysics
()
40
{;}
41
42
#include "
G4ProcessManager.hh
"
43
#include "
G4UnknownParticle.hh
"
44
45
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46
void
RE01UnknownDecayPhysics::ConstructParticle
()
47
{
48
G4UnknownParticle::UnknownParticleDefinition
();
49
}
50
51
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52
void
RE01UnknownDecayPhysics::ConstructProcess
()
53
{
54
// Add Decay Process
55
aParticleIterator
->reset();
56
while
( (*
aParticleIterator
)() ){
57
G4ParticleDefinition
* particle =
aParticleIterator
->value();
58
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
59
if
(particle->
GetParticleName
()==
"unknown"
) {
60
pmanager ->
AddProcess
(&
fUnknownDecay
);
61
pmanager ->
SetProcessOrdering
(&
fUnknownDecay
,
idxPostStep
);
62
}
63
}
64
}
G4UnknownParticle::UnknownParticleDefinition
static G4UnknownParticle * UnknownParticleDefinition()
Definition:
G4UnknownParticle.cc:81
RE01UnknownDecayPhysics.hh
Definition of the RE01UnknownDecayPhysics class.
name
G4String name
Definition:
TRTMaterials.hh:40
RE01UnknownDecayPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
RE01UnknownDecayPhysics.cc:46
RE01UnknownDecayPhysics::RE01UnknownDecayPhysics
RE01UnknownDecayPhysics(const G4String &name="decay")
Definition:
RE01UnknownDecayPhysics.cc:34
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4UnknownParticle.hh
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:159
aParticleIterator
#define aParticleIterator
Definition:
G4VPhysicsConstructor.hh:119
idxPostStep
Definition:
G4ProcessManager.hh:94
RE01UnknownDecayPhysics::fUnknownDecay
G4UnknownDecay fUnknownDecay
Definition:
RE01UnknownDecayPhysics.hh:56
G4ProcessManager::AddProcess
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
Definition:
G4ProcessManager.cc:410
G4ProcessManager.hh
G4ProcessManager::SetProcessOrdering
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
Definition:
G4ProcessManager.cc:607
RE01UnknownDecayPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
RE01UnknownDecayPhysics.cc:52
RE01UnknownDecayPhysics::~RE01UnknownDecayPhysics
virtual ~RE01UnknownDecayPhysics()
Definition:
RE01UnknownDecayPhysics.cc:39
G4ProcessManager
Definition:
G4ProcessManager.hh:106
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:121
G4String
Definition:
G4String.hh:45
geant4.10.01.p03
examples
extended
runAndEvent
RE01
src
RE01UnknownDecayPhysics.cc
Generated on Fri Feb 19 2016 15:53:16 for Geant4 by
1.8.8