Geant4
10.02.p03
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 102356 2017-01-23 16:22:42Z 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
auto
particleIterator
=
GetParticleIterator
();
56
particleIterator
->reset();
57
while
( (*
particleIterator
)() ){
58
G4ParticleDefinition
* particle =
particleIterator
->value();
59
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
60
if
(particle->
GetParticleName
()==
"unknown"
) {
61
pmanager ->
AddProcess
(&
fUnknownDecay
);
62
pmanager ->
SetProcessOrdering
(&
fUnknownDecay
,
idxPostStep
);
63
}
64
}
65
}
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::GetProcessManager
G4ProcessManager * GetProcessManager() const
Definition:
G4ParticleDefinition.cc:247
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:72
G4UnknownParticle.hh
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:120
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
particleIterator
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition:
G4BigBanger.cc:65
G4ProcessManager
Definition:
G4ProcessManager.hh:106
G4VPhysicsConstructor::GetParticleIterator
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
Definition:
G4VPhysicsConstructor.cc:78
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:121
G4String
Definition:
examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh:45
Geant4
Geant4.10.02.p03
examples
extended
runAndEvent
RE01
src
RE01UnknownDecayPhysics.cc
Generated by
1.8.13