Geant4
10.03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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: G4CascadeColliderBase.hh 71942 2013-06-28 19:08:11Z mkelsey $
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
// 20130620 Address Coverity complaint about missing copy actions
42
// 20130621 Move doConservationChecks to G4CascadeParameters; change
43
// explosion to use reference, add validateOutput() w/G4Fragment
44
// 20130622 Move fragment-handling functions to G4CascadeDeexciteBase
45
// 20140930 Change name from "const char*" to "const G4String"
46
47
#include "
G4VCascadeCollider.hh
"
48
49
#include "
globals.hh
"
50
#include "
G4InteractionCase.hh
"
51
#include <vector>
52
53
class
G4InuclElementaryParticle
;
54
class
G4InuclNuclei
;
55
class
G4InuclParticle
;
56
class
G4CollisionOutput
;
57
class
G4CascadeCheckBalance
;
58
class
G4Fragment
;
59
class
G4KineticTrackVector
;
60
class
G4V3DNucleus
;
61
62
63
class
G4CascadeColliderBase
:
public
G4VCascadeCollider
{
64
public
:
65
G4CascadeColliderBase
(
const
G4String
&
name
,
G4int
verbose=0);
66
virtual
~G4CascadeColliderBase
();
67
68
// For use with top-level Propagate to preload a set of secondaries
69
virtual
void
rescatter
(
G4InuclParticle
*
/*bullet*/
,
70
G4KineticTrackVector
*
/*theSecondaries*/
,
71
G4V3DNucleus
*
/*theNucleus*/
,
72
G4CollisionOutput
&
/*globalOutput*/
) { ; }
73
74
virtual
void
setVerboseLevel
(
G4int
verbose=0);
75
76
protected
:
77
G4InteractionCase
interCase
;
// Determine bullet vs. target
78
79
// Decide whether to use G4ElementaryParticleCollider or not
80
virtual
G4bool
useEPCollider
(
G4InuclParticle
* bullet,
81
G4InuclParticle
* target)
const
;
82
83
// Decide whether to use G4IntraNuclearCascader or not
84
virtual
G4bool
inelasticInteractionPossible
(
G4InuclParticle
* bullet,
85
G4InuclParticle
* target,
86
G4double
ekin)
const
;
87
88
// ==> Provide same interfaces as G4CascadeCheckBalance itself
89
G4CascadeCheckBalance
*
balance
;
90
91
// Validate output for energy, momentum conservation, etc.
92
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
93
G4InuclParticle
* target,
94
G4CollisionOutput
& output);
95
96
// This is for use after de-excitation
97
virtual
G4bool
validateOutput
(
const
G4Fragment
& fragment,
98
G4CollisionOutput
& output);
99
100
// This is for use with G4EPCollider
101
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
102
G4InuclParticle
* target,
103
const
std::vector<G4InuclElementaryParticle>& particles);
104
105
private
:
106
// Copying of modules is forbidden
107
G4CascadeColliderBase
(
const
G4CascadeColliderBase
&);
108
G4CascadeColliderBase
&
operator=
(
const
G4CascadeColliderBase
&);
109
};
110
111
#endif
/* G4CASCADE_COLLIDER_BASE_HH */
G4InteractionCase
Definition:
G4InteractionCase.hh:40
G4VCascadeCollider.hh
G4CascadeColliderBase
Definition:
G4CascadeColliderBase.hh:63
G4CascadeColliderBase::useEPCollider
virtual G4bool useEPCollider(G4InuclParticle *bullet, G4InuclParticle *target) const
Definition:
G4CascadeColliderBase.cc:76
G4CascadeColliderBase::balance
G4CascadeCheckBalance * balance
Definition:
G4CascadeColliderBase.hh:89
G4V3DNucleus
Definition:
G4V3DNucleus.hh:41
G4CascadeColliderBase::inelasticInteractionPossible
virtual G4bool inelasticInteractionPossible(G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
Definition:
G4CascadeColliderBase.cc:86
G4KineticTrackVector
Definition:
G4KineticTrackVector.hh:38
G4VCascadeCollider
Definition:
G4VCascadeCollider.hh:41
G4Fragment
Definition:
G4Fragment.hh:66
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:77
G4int
int G4int
Definition:
G4Types.hh:78
G4CascadeColliderBase::~G4CascadeColliderBase
virtual ~G4CascadeColliderBase()
Definition:
G4CascadeColliderBase.cc:64
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4InuclParticle
Definition:
G4InuclParticle.hh:53
G4InuclElementaryParticle
Definition:
G4InuclElementaryParticle.hh:59
globals.hh
G4CascadeCheckBalance
Definition:
G4CascadeCheckBalance.hh:65
G4CascadeColliderBase::operator=
G4CascadeColliderBase & operator=(const G4CascadeColliderBase &)
G4CascadeColliderBase::interCase
G4InteractionCase interCase
Definition:
G4CascadeColliderBase.hh:77
G4CascadeColliderBase::rescatter
virtual void rescatter(G4InuclParticle *, G4KineticTrackVector *, G4V3DNucleus *, G4CollisionOutput &)
Definition:
G4CascadeColliderBase.hh:69
G4CascadeColliderBase::validateOutput
virtual G4bool validateOutput(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
Definition:
G4CascadeColliderBase.cc:124
G4CascadeColliderBase::G4CascadeColliderBase
G4CascadeColliderBase(const G4String &name, G4int verbose=0)
Definition:
G4CascadeColliderBase.cc:58
G4InteractionCase.hh
G4CascadeColliderBase::setVerboseLevel
virtual void setVerboseLevel(G4int verbose=0)
Definition:
G4CascadeColliderBase.cc:68
G4InuclNuclei
Definition:
G4InuclNuclei.hh:68
G4double
double G4double
Definition:
G4Types.hh:76
G4CollisionOutput
Definition:
G4CollisionOutput.hh:67
G4String
Definition:
G4String.hh:45
geant4.10.03
source
processes
hadronic
models
cascade
cascade
include
G4CascadeColliderBase.hh
Generated on Thu Feb 14 2002 02:28:56 for Geant4 by
1.8.8