Geant4-11
G4BinaryCascade.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//
27//
28// -------------------------------------------------------------------
29// GEANT4 Class file
30//
31//
32// File name: G4BinaryCascade.hh
33//
34// Authors: Alessandro Brunengo (Alessandro.Brunengo@ge.infn.it)
35// Hans-Peter Wellisch
36// Gunter Folger
37//
38// Creation date: 8 June 2000
39//
40// -----------------------------------------------------------------------------
41
42#ifndef G4BinaryCascade_hh
43#define G4BinaryCascade_hh
44
48#include "G4ListOfCollisions.hh"
49#include "G4V3DNucleus.hh"
50#include "G4Fancy3DNucleus.hh"
51#include "G4Fragment.hh"
53#include "G4VScatterer.hh"
54#include "G4LorentzVector.hh"
55#include "G4LorentzRotation.hh"
56
57#include "G4BCDecay.hh"
58#include "G4BCLateParticle.hh"
59#include "G4BCAction.hh"
60
62
63#include "G4Threading.hh"
64
66
67class G4Track;
68class G4KineticTrack;
69class G43DNucleus;
70class G4Scatterer;
71
73{
74public:
75
77
78 virtual ~G4BinaryCascade();
79
81 G4Nucleus& theNucleus);
83 G4V3DNucleus *);
84
85 virtual void ModelDescription(std::ostream&) const;
86 virtual void PropagateModelDescription(std::ostream&) const;
87
88private:
89
92 G4bool operator==(G4BinaryCascade& right) {return (this == &right);}
93 G4bool operator!=(G4BinaryCascade& right) {return (this != &right);}
94
95// Implementation
97 void BuildTargetList();
102
103// void PropagateInit();
104// void Cascade();
109
111 G4bool Capture(G4bool verbose=false);
112 G4bool Absorb();
115 void CorrectFinalPandE();
116
118 G4KineticTrack* primary,G4KineticTrackVector target_collection);
120 G4KineticTrackVector * products, G4double initial_Efermi);
121
123 G4KineticTrackVector * oldTarget,
124 G4KineticTrackVector * newSecondaries);
125 G4bool DoTimeStep(G4double timeStep);
129 void StepParticlesOut();
130
133
135 G4V3DNucleus *);
137
138 G4int GetTotalCharge(std::vector<G4KineticTrack *> & aV)
139 {
140 G4int result = 0;
141 std::vector<G4KineticTrack *>::iterator i;
142 for(i = aV.begin(); i != aV.end(); ++i)
143 {
144 result += G4lrint((*i)->GetDefinition()->GetPDGCharge());
145 }
146 return result;
147 }
148 G4int GetTotalBaryonCharge(std::vector<G4KineticTrack *> & aV)
149 {
150 G4int result = 0;
151 std::vector<G4KineticTrack *>::iterator i;
152 for(i = aV.begin(); i != aV.end(); ++i)
153 {
154 if ( (*i)->GetDefinition()->GetBaryonNumber() != 0 ){
155 result += G4lrint((*i)->GetDefinition()->GetPDGCharge());
156 }
157 }
158 return result;
159 }
160
162 G4KineticTrackVector * secondaries); // add secondaries of string model to G4RPV
163 G4ReactionProductVector * FillVoidNucleusProducts(G4ReactionProductVector * ); // nucleus destroyed, add secondaries to G4RPV
164// utility methods
165
166 G4ThreeVector GetSpherePoint(G4double r, const G4LorentzVector & momentumdirection);
167
170
171// for debugging purpose
172
174
175 void PrintKTVector(G4KineticTrackVector * ktv, std::string comment=std::string(""));
176 void PrintKTVector(G4KineticTrack* kt, std::string comment=std::string(""));
178 G4KineticTrackVector * products);
180 G4KineticTrackVector *products);
184
185private:
186 G4KineticTrackVector theProjectileList; // replaced by theProjectile4Momentum
187 G4KineticTrackVector theTargetList; // list of nucleons in Nucleus
188 G4KineticTrackVector theSecondaryList; // particles being followed
190 G4KineticTrackVector theFinalState; // particles for final state
191
192
195
197
198 std::vector<G4BCAction *> theImR;
203
220};
221
222#endif
223
224
225
226
std::vector< G4ReactionProduct * > G4ReactionProductVector
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
G4KineticTrackVector theSecondaryList
G4int GetTotalBaryonCharge(std::vector< G4KineticTrack * > &aV)
G4Fragment * FindFragments()
G4bool Capture(G4bool verbose=false)
void FindLateParticleCollision(G4KineticTrack *)
G4KineticTrackVector theProjectileList
G4bool CorrectShortlivedFinalsForFermi(G4KineticTrackVector *products, G4double initial_Efermi)
void PrintKTVector(G4KineticTrackVector *ktv, std::string comment=std::string(""))
G4BCDecay * theDecay
G4ReactionProductVector * ProductsAddPrecompound(G4ReactionProductVector *products, G4ReactionProductVector *preco)
void UpdateTracksAndCollisions(G4KineticTrackVector *oldSecondaries, G4KineticTrackVector *oldTarget, G4KineticTrackVector *newSecondaries)
G4BinaryCascade(const G4BinaryCascade &right)
G4VFieldPropagation * thePropagator
virtual void PropagateModelDescription(std::ostream &) const
G4int GetTotalCharge(std::vector< G4KineticTrack * > &aV)
G4LorentzVector theInitial4Mom
G4bool DoTimeStep(G4double timeStep)
G4KineticTrackVector theCapturedList
G4bool ApplyCollision(G4CollisionInitialState *)
G4double GetIonMass(G4int Z, G4int A)
G4ReactionProductVector * DecayVoidNucleus()
G4bool CheckPauliPrinciple(G4KineticTrackVector *)
G4ReactionProductVector * Propagate1H1(G4KineticTrackVector *, G4V3DNucleus *)
G4double CorrectShortlivedPrimaryForFermi(G4KineticTrack *primary, G4KineticTrackVector target_collection)
G4double currentInitialEnergy
G4ReactionProductVector * ProductsAddFakeGamma(G4ReactionProductVector *products)
const G4ParticleDefinition * thePrimaryType
G4ThreeVector theMomentumTransfer
G4KineticTrackVector * CorrectBarionsOnBoundary(G4KineticTrackVector *in, G4KineticTrackVector *out)
G4bool DebugFinalEpConservation(const G4HadProjectile &aTrack, G4ReactionProductVector *products)
G4LorentzVector theProjectile4Momentum
G4CollisionManager * theCollisionMgr
void ClearAndDestroy(G4KineticTrackVector *ktv)
G4KineticTrackVector theTargetList
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &theNucleus)
void DebugApplyCollision(G4CollisionInitialState *collision, G4KineticTrackVector *products)
virtual G4ReactionProductVector * Propagate(G4KineticTrackVector *, G4V3DNucleus *)
G4ExcitationHandler * theExcitationHandler
G4ReactionProductVector * DeExcite()
G4LorentzRotation precompoundLorentzboost
G4bool operator!=(G4BinaryCascade &right)
G4LorentzVector GetFinalNucleusMomentum()
G4bool BuildLateParticleCollisions(G4KineticTrackVector *secondaries)
G4double initial_nuclear_mass
void DebugApplyCollisionFail(G4CollisionInitialState *collision, G4KineticTrackVector *products)
void FindCollisions(G4KineticTrackVector *)
G4ReactionProductVector * ProductsAddFinalState(G4ReactionProductVector *products, G4KineticTrackVector &finalState)
G4bool CheckChargeAndBaryonNumber(G4String where)
G4DecayKineticTracks decayKTV
G4bool DebugEpConservation(const G4String where)
static G4int theBIC_ID
void FindDecayCollision(G4KineticTrack *)
G4ReactionProductVector * HighEnergyModelFSProducts(G4ReactionProductVector *, G4KineticTrackVector *secondaries)
G4ThreeVector GetSpherePoint(G4double r, const G4LorentzVector &momentumdirection)
G4LorentzVector GetFinal4Momentum()
G4double theCutOnPAbsorb
G4BinaryCascade(G4VPreCompoundModel *ptr=0)
std::vector< G4BCAction * > theImR
G4KineticTrackVector theFinalState
G4Scatterer * theH1Scatterer
virtual void ModelDescription(std::ostream &) const
G4double GetExcitationEnergy()
const G4BinaryCascade & operator=(G4BinaryCascade &right)
G4bool operator==(G4BinaryCascade &right)
G4BCLateParticle * theLateParticle
virtual ~G4BinaryCascade()
G4ReactionProductVector * FillVoidNucleusProducts(G4ReactionProductVector *)
int G4lrint(double ad)
Definition: templates.hh:134