Geant4
10.03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
G4eeToHadrons.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: G4eeToHadrons.cc 97391 2016-06-02 10:08:45Z gcosmo $
27
//
28
// -------------------------------------------------------------------
29
//
30
// GEANT4 Class file
31
//
32
//
33
// File name: G4eeToHadrons
34
//
35
// Author: Vladimir Ivanchenko on base of Michel Maire code
36
//
37
// Creation date: 02.08.2004
38
//
39
// Modifications:
40
// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
41
// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
42
// 23-11-05 Istert AddEmModel which was lost (V.Ivantchenko)
43
//
44
45
//
46
// -------------------------------------------------------------------
47
//
48
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
50
51
#include "
G4eeToHadrons.hh
"
52
#include "
G4SystemOfUnits.hh
"
53
#include "
G4MaterialCutsCouple.hh
"
54
#include "
G4Gamma.hh
"
55
56
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
57
58
using namespace
std
;
59
60
G4eeToHadrons::G4eeToHadrons
(
const
G4String
&
name
)
61
:
G4VEmProcess
(name),
62
multimodel(nullptr),
63
csFactor(1.0),
64
isInitialised(false)
65
{
66
//SetVerboseLevel(2);
67
SetProcessSubType
(
fAnnihilationToHadrons
);
68
SetBuildTableFlag
(
false
);
69
SetIntegral
(
true
);
70
SetSecondaryParticle
(
G4Gamma::Gamma
());
71
}
72
73
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
74
75
G4eeToHadrons::~G4eeToHadrons
()
76
{}
77
78
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
79
80
G4bool
G4eeToHadrons::IsApplicable
(
const
G4ParticleDefinition
& p)
81
{
82
return
(&p ==
G4Positron::Positron
());
83
}
84
85
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
86
87
void
G4eeToHadrons::InitialiseProcess
(
const
G4ParticleDefinition
*)
88
{
89
if
(!
isInitialised
) {
90
isInitialised
=
true
;
91
92
SetParticle
(
G4Positron::Positron
());
93
94
multimodel
=
new
G4eeToHadronsMultiModel
(
verboseLevel
);
95
if
(
csFactor
> 1.0)
multimodel
->
SetCrossSecFactor
(
csFactor
);
96
AddEmModel
(1,
multimodel
);
97
}
98
}
99
100
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
101
102
void
G4eeToHadrons::PrintInfo
()
103
{
104
multimodel
->
PrintInfo
();
105
}
106
107
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
108
109
void
G4eeToHadrons::SetCrossSecFactor
(
G4double
fac
)
110
{
111
if
(
multimodel
)
multimodel
->
SetCrossSecFactor
(fac);
112
csFactor
=
fac
;
113
}
114
115
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
G4VEmProcess
Definition:
G4VEmProcess.hh:93
G4eeToHadrons::PrintInfo
virtual void PrintInfo() override
Definition:
G4eeToHadrons.cc:102
G4eeToHadronsMultiModel
Definition:
G4eeToHadronsMultiModel.hh:64
G4VProcess::verboseLevel
G4int verboseLevel
Definition:
G4VProcess.hh:368
G4eeToHadrons.hh
G4VEmProcess::SetBuildTableFlag
void SetBuildTableFlag(G4bool val)
Definition:
G4VEmProcess.hh:641
G4MaterialCutsCouple.hh
G4eeToHadrons::csFactor
G4double csFactor
Definition:
G4eeToHadrons.hh:89
std
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:77
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:72
G4eeToHadrons::IsApplicable
virtual G4bool IsApplicable(const G4ParticleDefinition &p) override
Definition:
G4eeToHadrons.cc:80
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4VEmProcess::SetParticle
void SetParticle(const G4ParticleDefinition *p)
Definition:
G4VEmProcess.hh:655
G4VProcess::SetProcessSubType
void SetProcessSubType(G4int)
Definition:
G4VProcess.hh:432
G4eeToHadrons::SetCrossSecFactor
void SetCrossSecFactor(G4double fac)
Definition:
G4eeToHadrons.cc:109
G4eeToHadrons::multimodel
G4eeToHadronsMultiModel * multimodel
Definition:
G4eeToHadrons.hh:88
G4VEmProcess::SetIntegral
void SetIntegral(G4bool val)
Definition:
G4VEmProcess.hh:627
G4eeToHadrons::InitialiseProcess
virtual void InitialiseProcess(const G4ParticleDefinition *) override
Definition:
G4eeToHadrons.cc:87
G4Gamma::Gamma
static G4Gamma * Gamma()
Definition:
G4Gamma.cc:86
G4VEmProcess::AddEmModel
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
Definition:
G4VEmProcess.cc:203
G4Positron::Positron
static G4Positron * Positron()
Definition:
G4Positron.cc:94
G4eeToHadronsMultiModel::PrintInfo
virtual void PrintInfo()
Definition:
G4eeToHadronsMultiModel.cc:199
G4VEmProcess::SetSecondaryParticle
void SetSecondaryParticle(const G4ParticleDefinition *p)
Definition:
G4VEmProcess.hh:663
G4eeToHadrons::G4eeToHadrons
G4eeToHadrons(const G4String &name="ee2hadr")
Definition:
G4eeToHadrons.cc:60
fac
static const G4double fac
Definition:
G4NISTStoppingData.hh:87
fAnnihilationToHadrons
Definition:
G4EmProcessSubType.hh:52
G4double
double G4double
Definition:
G4Types.hh:76
G4SystemOfUnits.hh
G4eeToHadronsMultiModel::SetCrossSecFactor
void SetCrossSecFactor(G4double fac)
Definition:
G4eeToHadronsMultiModel.cc:214
G4eeToHadrons::isInitialised
G4bool isInitialised
Definition:
G4eeToHadrons.hh:90
G4eeToHadrons::~G4eeToHadrons
virtual ~G4eeToHadrons()
Definition:
G4eeToHadrons.cc:75
G4Gamma.hh
G4String
Definition:
G4String.hh:45
geant4.10.03
source
processes
electromagnetic
highenergy
src
G4eeToHadrons.cc
Generated on Thu Feb 14 2002 02:28:41 for Geant4 by
1.8.8