Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
cascade
cascade
include
G4CascadeColliderBase.hh
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
#ifndef G4CASCADE_COLLIDER_BASE_HH
27
#define G4CASCADE_COLLIDER_BASE_HH
28
// $Id$
29
//
30
// 20100714 M. Kelsey -- Move functionality from G4VCascadeCollider, and
31
// provide conservation-checking here, with wrapper function
32
// and control flag.
33
// 20100720 M. Kelsey -- Change G4CascadeCheckBalance to pointer member
34
// 20100925 M. Kelsey -- Add explosion(A,Z,Eex) and explosion(G4Fragment)
35
// interfaces
36
// 20110225 M. Kelsey -- Add setVerboseLevel(), calls through to members
37
// 20110304 M. Kelsey -- Add dummy rescatter() interface here, to enforce
38
// consistency in subclass colliders.
39
// 20110321 M. Kelsey -- Hide names of arguments to rescatter(), to avoid
40
// compiler warnings on some GCC versions.
41
42
#include "
G4VCascadeCollider.hh
"
43
44
#include "
globals.hh
"
45
#include "
G4InteractionCase.hh
"
46
#include <vector>
47
48
class
G4InuclElementaryParticle
;
49
class
G4InuclNuclei
;
50
class
G4InuclParticle
;
51
class
G4CollisionOutput
;
52
class
G4CascadeCheckBalance
;
53
class
G4Fragment
;
54
class
G4KineticTrackVector
;
55
class
G4V3DNucleus
;
56
57
58
class
G4CascadeColliderBase
:
public
G4VCascadeCollider
{
59
public
:
60
G4CascadeColliderBase
(
const
char
*
name
,
G4int
verbose=0);
61
virtual
~G4CascadeColliderBase
();
62
63
// For use with top-level Propagate to preload a set of secondaries
64
virtual
void
rescatter
(
G4InuclParticle
*
/*bullet*/
,
65
G4KineticTrackVector
*
/*theSecondaries*/
,
66
G4V3DNucleus
*
/*theNucleus*/
,
67
G4CollisionOutput
&
/*globalOutput*/
) { ; }
68
69
virtual
void
setVerboseLevel
(
G4int
verbose=0);
70
71
virtual
void
setConservationChecks
(
G4bool
doBalance=
true
) {
72
doConservationChecks
= doBalance;
73
}
74
75
protected
:
76
G4InteractionCase
interCase
;
// Determine bullet vs. target
77
G4bool
doConservationChecks
;
// Conservation-law validation
78
G4CascadeCheckBalance
*
balance
;
79
80
// Decide whether to use G4ElementaryParticleCollider or not
81
virtual
G4bool
useEPCollider
(
G4InuclParticle
* bullet,
82
G4InuclParticle
*
target
)
const
;
83
84
// Decide whether to use G4BigBanger or not
85
virtual
G4bool
explosion
(
G4InuclNuclei
*
target
)
const
;
86
virtual
G4bool
explosion
(
G4Fragment
*
target
)
const
;
87
virtual
G4bool
explosion
(
G4int
A,
G4int
Z
,
G4double
excitation)
const
;
88
89
// Decide whether to use G4IntraNuclearCascader or not
90
virtual
G4bool
inelasticInteractionPossible
(
G4InuclParticle
* bullet,
91
G4InuclParticle
*
target
,
92
G4double
ekin)
const
;
93
94
// ==> Provide same interfaces as G4CascadeCheckBalance itself
95
96
// Validate output for energy, momentum conservation, etc.
97
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
98
G4InuclParticle
*
target
,
99
G4CollisionOutput
& output);
100
101
// This is for use with G4EPCollider and G4BigBanger
102
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
103
G4InuclParticle
*
target
,
104
const
std::vector<G4InuclElementaryParticle>& particles);
105
106
// This is for use with G4Fissioner
107
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
108
G4InuclParticle
*
target
,
109
const
std::vector<G4InuclNuclei>& fragments);
110
};
111
112
#endif
/* G4CASCADE_COLLIDER_BASE_HH */
Generated on Sat May 25 2013 14:33:43 for Geant4 by
1.8.4