source: trunk/source/processes/hadronic/models/binary_cascade/include/G4BinaryCascade.hh @ 1201

Last change on this file since 1201 was 1196, checked in by garnier, 15 years ago

update CVS release candidate geant4.9.3.01

File size: 6.2 KB
Line 
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//      Author: Alessandro Brunengo (Alessandro.Brunengo@ge.infn.it)       
35//
36//      Creation date: 8 June 2000
37// -----------------------------------------------------------------------------
38
39#ifndef G4BinaryCascade_hh
40#define G4BinaryCascade_hh
41
42#include "G4VIntraNuclearTransportModel.hh"
43#include "G4ReactionProductVector.hh"
44#include "G4KineticTrackVector.hh"
45#include "G4ListOfCollisions.hh"
46#include "G4V3DNucleus.hh"
47#include "G4Fancy3DNucleus.hh"
48#include "G4Fragment.hh"
49#include "G4VFieldPropagation.hh"
50#include "G4VScatterer.hh"
51#include "G4LorentzVector.hh"
52#include "G4LorentzRotation.hh"
53
54#include "G4BCDecay.hh"
55#include "G4BCLateParticle.hh"
56#include "G4BCAction.hh"
57
58class G4CollisionManager;
59
60class G4Track;
61class G4KineticTrack;
62class G43DNucleus;
63class G4Scatterer;
64
65class G4BinaryCascade : public G4VIntraNuclearTransportModel
66{
67public:
68
69  G4BinaryCascade();
70  G4BinaryCascade(const G4BinaryCascade & right);
71
72  virtual ~G4BinaryCascade();
73
74  const G4BinaryCascade& operator=(G4BinaryCascade & right);
75  G4int operator==(G4BinaryCascade& right) {return (this == &right);}
76  G4int operator!=(G4BinaryCascade& right) {return (this != &right);}
77
78  G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, 
79                                              G4Nucleus& theNucleus);
80  virtual G4ReactionProductVector * Propagate(G4KineticTrackVector *,
81                                              G4V3DNucleus *);
82
83private:
84
85  G4int GetTotalCharge(std::vector<G4KineticTrack *> & aV)
86  {
87G4cout<<"GetTotalCharge(std::vector<G4KineticTrack *> & aV)"<<G4endl; // Uzhi
88    G4int result = 0;
89    std::vector<G4KineticTrack *>::iterator i;
90    for(i = aV.begin(); i != aV.end(); ++i)
91    {
92       result += G4lrint((*i)->GetDefinition()->GetPDGCharge());
93G4cout<<(*i)->GetDefinition()->GetParticleName()<<" "<<(*i)->GetDefinition()->GetPDGCharge()<<G4endl; // Uzhi
94    }
95    return result;
96  }
97  void PrintWelcomeMessage();
98  void BuildTargetList();
99  void FindCollisions(G4KineticTrackVector *);
100  void FindDecayCollision(G4KineticTrack *);
101  void FindLateParticleCollision(G4KineticTrack *);
102  G4bool ApplyCollision(G4CollisionInitialState *);
103  G4bool Capture(G4bool verbose=false);
104  G4bool Absorb();
105  G4bool CheckPauliPrinciple(G4KineticTrackVector *);
106  G4double GetExcitationEnergy();
107  G4bool CheckDecay(G4KineticTrackVector *);
108  void CorrectFinalPandE();
109  void UpdateTracksAndCollisions(G4KineticTrackVector * oldSecondaries,
110                                 G4KineticTrackVector * oldTarget,
111                                 G4KineticTrackVector * newSecondaries);
112  G4bool DoTimeStep(G4double timeStep);
113  G4KineticTrackVector* CorrectBarionsOnBoundary(G4KineticTrackVector *in, 
114                                               G4KineticTrackVector *out);
115  G4Fragment * FindFragments();
116  void StepParticlesOut();
117  G4LorentzVector GetFinal4Momentum();
118  G4LorentzVector GetFinalNucleusMomentum();
119  G4ReactionProductVector * Propagate1H1(G4KineticTrackVector *,
120                                         G4V3DNucleus *);
121  G4double GetIonMass(G4int Z, G4int A);
122 
123// utility methods
124  G4ThreeVector GetSpherePoint(G4double r, const G4LorentzVector & momentumdirection);
125  void ClearAndDestroy(G4KineticTrackVector * ktv);
126  void ClearAndDestroy(G4ReactionProductVector * rpv);
127
128// for debugging purpose
129  void PrintKTVector(G4KineticTrackVector * ktv, std::string comment=std::string(""));
130  void PrintKTVector(G4KineticTrack* kt, std::string comment=std::string(""));
131  void DebugApplyCollision(G4CollisionInitialState * collision, 
132                           G4KineticTrackVector *products);
133  void DebugEpConservation(const G4HadProjectile & aTrack, G4ReactionProductVector* products);                     
134                           
135private:
136  G4KineticTrackVector theProjectileList;
137  G4KineticTrackVector theTargetList;
138  G4KineticTrackVector theSecondaryList;
139  G4KineticTrackVector theCapturedList;
140  G4KineticTrackVector theFinalState;
141
142  G4ExcitationHandler * theExcitationHandler;
143  G4CollisionManager * theCollisionMgr;
144 
145  G4Scatterer * theH1Scatterer;
146
147  std::vector<G4BCAction *> theImR;
148  G4BCDecay * theDecay;
149  G4BCLateParticle * theLateParticle;
150  G4VFieldPropagation * thePropagator;
151  G4double theCurrentTime;
152  G4double theBCminP;
153  G4double theCutOnP;
154  G4double theCutOnPAbsorb;
155  G4LorentzVector theInitial4Mom;
156  G4int currentA, currentZ;
157  G4double massInNucleus;
158  G4double currentInitialEnergy;   // for debugging
159  G4LorentzRotation precompoundLorentzboost;
160  G4double theOuterRadius;
161  G4bool thePrimaryEscape;
162  G4ParticleDefinition * thePrimaryType;
163  G4ThreeVector theMomentumTransfer;
164 
165 
166
167};
168
169#endif
170
171
172
173
Note: See TracBrowser for help on using the repository browser.