Geant4
10.02.p01
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
G4BertiniElectroNuclearBuilder.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
//
26
// $Id: G4BertiniElectroNuclearBuilder.cc 81364 2014-05-27 12:55:46Z gcosmo $
27
//
28
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4BertiniElectroNuclearBuilder
31
//
32
// Author: 2002 H.P. Wellisch
33
//
34
// Modified:
35
// 25.04.2006 V.Ivanchenko fix destructor
36
//
37
//----------------------------------------------------------------------------
38
//
39
40
#include "
G4BertiniElectroNuclearBuilder.hh
"
41
42
#include "
globals.hh
"
43
#include "
G4ios.hh
"
44
#include "
G4SystemOfUnits.hh
"
45
46
#include "
G4ParticleDefinition.hh
"
47
#include "
G4ParticleTable.hh
"
48
#include "
G4Gamma.hh
"
49
#include "
G4Electron.hh
"
50
#include "
G4Positron.hh
"
51
#include "
G4ProcessManager.hh
"
52
53
54
G4BertiniElectroNuclearBuilder::G4BertiniElectroNuclearBuilder
() :
55
thePhotoNuclearProcess(0), theElectronNuclearProcess(0),
56
thePositronNuclearProcess(0), theElectroReaction(0),
57
theGammaReaction(0), theModel(0), theCascade(0),
58
theStringModel(0), theFragmentation(0), theStringDecay(0),
59
wasActivated(false)
60
{
61
}
62
63
G4BertiniElectroNuclearBuilder::~G4BertiniElectroNuclearBuilder
()
64
{
65
if
(
wasActivated
) {
66
delete
theFragmentation
;
67
delete
theStringDecay
;
68
//delete theStringModel;
69
//delete thePhotoNuclearProcess;
70
//delete theElectronNuclearProcess;
71
//delete thePositronNuclearProcess;
72
//delete theElectroReaction;
73
//delete theGammaReaction;
74
//delete theModel;
75
//delete theCascade;
76
}
77
}
78
79
void
G4BertiniElectroNuclearBuilder::Build
()
80
{
81
if
(
wasActivated
)
return
;
82
wasActivated
=
true
;
83
84
thePhotoNuclearProcess
=
new
G4PhotoNuclearProcess
;
85
theElectronNuclearProcess
=
new
G4ElectronNuclearProcess
;
86
thePositronNuclearProcess
=
new
G4PositronNuclearProcess
;
87
// theElectroReaction = new G4ElectroNuclearReaction;
88
theElectroReaction
=
new
G4ElectroVDNuclearModel
;
89
theGammaReaction
=
new
G4CascadeInterface
;
90
91
theModel
=
new
G4TheoFSGenerator
;
92
93
theStringModel
=
new
G4QGSModel< G4GammaParticipants >
;
94
theStringDecay
=
new
G4ExcitedStringDecay
(
theFragmentation
=
new
G4QGSMFragmentation
);
95
theStringModel
->
SetFragmentationModel
(
theStringDecay
);
96
97
theCascade
=
new
G4GeneratorPrecompoundInterface
;
98
99
theModel
->
SetTransport
(
theCascade
);
100
theModel
->
SetHighEnergyGenerator
(
theStringModel
);
101
102
G4ProcessManager
* aProcMan = 0;
103
104
aProcMan =
G4Gamma::Gamma
()->
GetProcessManager
();
105
theGammaReaction
->
SetMaxEnergy
(3.5*
GeV
);
106
thePhotoNuclearProcess
->
RegisterMe
(
theGammaReaction
);
107
theModel
->
SetMinEnergy
(3.*
GeV
);
108
theModel
->
SetMaxEnergy
(100*
TeV
);
109
thePhotoNuclearProcess
->
RegisterMe
(
theModel
);
110
aProcMan->
AddDiscreteProcess
(
thePhotoNuclearProcess
);
111
112
aProcMan =
G4Electron::Electron
()->
GetProcessManager
();
113
theElectronNuclearProcess
->
RegisterMe
(
theElectroReaction
);
114
aProcMan->
AddDiscreteProcess
(
theElectronNuclearProcess
);
115
116
aProcMan =
G4Positron::Positron
()->
GetProcessManager
();
117
thePositronNuclearProcess
->
RegisterMe
(
theElectroReaction
);
118
aProcMan->
AddDiscreteProcess
(
thePositronNuclearProcess
);
119
}
120
G4BertiniElectroNuclearBuilder::theCascade
G4GeneratorPrecompoundInterface * theCascade
Definition:
G4BertiniElectroNuclearBuilder.hh:66
G4ExcitedStringDecay
Definition:
G4ExcitedStringDecay.hh:38
G4BertiniElectroNuclearBuilder::Build
virtual void Build()
Definition:
G4BertiniElectroNuclearBuilder.cc:79
G4VPartonStringModel::SetFragmentationModel
void SetFragmentationModel(G4VStringFragmentation *aModel)
Definition:
G4VPartonStringModel.hh:85
G4QGSMFragmentation
Definition:
G4QGSMFragmentation.hh:40
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4BertiniElectroNuclearBuilder::~G4BertiniElectroNuclearBuilder
virtual ~G4BertiniElectroNuclearBuilder()
Definition:
G4BertiniElectroNuclearBuilder.cc:63
G4CascadeInterface
Definition:
G4CascadeInterface.hh:88
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4BertiniElectroNuclearBuilder::theFragmentation
G4QGSMFragmentation * theFragmentation
Definition:
G4BertiniElectroNuclearBuilder.hh:68
G4TheoFSGenerator::SetHighEnergyGenerator
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
Definition:
G4TheoFSGenerator.hh:103
G4TheoFSGenerator
Definition:
G4TheoFSGenerator.hh:53
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:149
G4PositronNuclearProcess
Definition:
G4PositronNuclearProcess.hh:40
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:91
G4ParticleTable.hh
G4Positron.hh
GeV
static const double GeV
Definition:
G4SIunits.hh:214
G4ProcessManager.hh
G4ParticleDefinition.hh
G4Gamma::Gamma
static G4Gamma * Gamma()
Definition:
G4Gamma.cc:86
globals.hh
G4QGSModel< G4GammaParticipants >
G4BertiniElectroNuclearBuilder::thePhotoNuclearProcess
G4PhotoNuclearProcess * thePhotoNuclearProcess
Definition:
G4BertiniElectroNuclearBuilder.hh:59
G4Positron::Positron
static G4Positron * Positron()
Definition:
G4Positron.cc:94
G4Electron.hh
G4BertiniElectroNuclearBuilder::theElectroReaction
G4ElectroVDNuclearModel * theElectroReaction
Definition:
G4BertiniElectroNuclearBuilder.hh:62
G4BertiniElectroNuclearBuilder::G4BertiniElectroNuclearBuilder
G4BertiniElectroNuclearBuilder()
Definition:
G4BertiniElectroNuclearBuilder.cc:54
G4BertiniElectroNuclearBuilder.hh
G4ElectroVDNuclearModel
Definition:
G4ElectroVDNuclearModel.hh:50
G4ios.hh
G4BertiniElectroNuclearBuilder::theElectronNuclearProcess
G4ElectronNuclearProcess * theElectronNuclearProcess
Definition:
G4BertiniElectroNuclearBuilder.hh:60
G4HadronicInteraction::SetMaxEnergy
void SetMaxEnergy(const G4double anEnergy)
Definition:
G4HadronicInteraction.hh:104
G4Electron::Electron
static G4Electron * Electron()
Definition:
G4Electron.cc:94
G4TheoFSGenerator::SetTransport
void SetTransport(G4VIntraNuclearTransportModel *const value)
Definition:
G4TheoFSGenerator.hh:93
G4ProcessManager
Definition:
G4ProcessManager.hh:106
TeV
static const double TeV
Definition:
G4SIunits.hh:215
G4ElectronNuclearProcess
Definition:
G4ElectronNuclearProcess.hh:44
G4BertiniElectroNuclearBuilder::thePositronNuclearProcess
G4PositronNuclearProcess * thePositronNuclearProcess
Definition:
G4BertiniElectroNuclearBuilder.hh:61
G4GeneratorPrecompoundInterface
Definition:
G4GeneratorPrecompoundInterface.hh:60
G4BertiniElectroNuclearBuilder::wasActivated
G4bool wasActivated
Definition:
G4BertiniElectroNuclearBuilder.hh:70
G4SystemOfUnits.hh
G4PhotoNuclearProcess
Definition:
G4PhotoNuclearProcess.hh:44
G4BertiniElectroNuclearBuilder::theModel
G4TheoFSGenerator * theModel
Definition:
G4BertiniElectroNuclearBuilder.hh:65
G4BertiniElectroNuclearBuilder::theStringDecay
G4ExcitedStringDecay * theStringDecay
Definition:
G4BertiniElectroNuclearBuilder.hh:69
G4BertiniElectroNuclearBuilder::theStringModel
G4QGSModel< G4GammaParticipants > * theStringModel
Definition:
G4BertiniElectroNuclearBuilder.hh:67
G4BertiniElectroNuclearBuilder::theGammaReaction
G4CascadeInterface * theGammaReaction
Definition:
G4BertiniElectroNuclearBuilder.hh:63
G4Gamma.hh
geant4.10.02.p01
source
physics_lists
constructors
gamma_lepto_nuclear
src
G4BertiniElectroNuclearBuilder.cc
Generated on Thu Mar 3 2016 14:41:30 for Geant4 by
1.8.8