source: trunk/source/processes/hadronic/models/cascade/cascade/include/G4CascadeInterface.hh @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.6 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// $Id: G4CascadeInterface.hh,v 1.23 2010/09/23 18:13:32 mkelsey Exp $
27// Defines an interface to Bertini (BERT) cascade
28// based on INUCL  intra-nuclear transport.models
29// with bullet hadron energy ~< 10 GeV
30//
31// 20100405  M. Kelsey -- Fix constness of op== and op!=
32// 20100519  M. Kelsey -- Remove Collider data members
33// 20100617  M. Kelsey -- Make G4InuclCollider a local data member
34// 20100723  M. Kelsey -- Move G4CollisionOutput here for reuse
35// 20100916  M. Kelsey -- Add functions to encapsulate ApplyYourself() actions,
36//              make colliders pointers (don't expose dependencies)
37// 20100922  M. Kelsey -- Add functions to select de-excitation method
38
39#ifndef G4CASCADEINTERFACE_H
40#define G4CASCADEINTERFACE_H 1
41
42#include "G4VIntraNuclearTransportModel.hh"
43#include "G4FragmentVector.hh"
44#include "G4KineticTrackVector.hh"
45#include "G4LorentzRotation.hh"
46#include "G4Nucleon.hh"
47#include "G4Nucleus.hh"
48#include "G4ParticleChange.hh"
49#include "G4ReactionProduct.hh"
50#include "G4ReactionProductVector.hh"
51
52class G4InuclCollider;
53class G4InuclParticle;
54class G4CollisionOutput;
55class G4CascadeCheckBalance;
56class G4V3DNucleus;
57
58
59class G4CascadeInterface : public G4VIntraNuclearTransportModel {
60
61public:
62  G4CascadeInterface(const G4String& name = "Bertini Cascade");
63
64  virtual ~G4CascadeInterface();
65
66  G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
67                                     G4V3DNucleus* theNucleus);
68 
69  G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
70                                 G4Nucleus& theNucleus); 
71
72  void setVerboseLevel(G4int verbose) { verboseLevel = verbose; }
73
74  // Select betweeen different post-cascade de-excitation models
75  void useCascadeDeexcitation();
76  void usePreCompoundDeexcitation();
77
78protected:
79  // Convert input projectile and target to Bertini internal types
80  void createBullet(const G4HadProjectile& aTrack);
81  void createTarget(G4Nucleus& theNucleus);
82
83  // Evaluate whether any outgoing particles penetrated Coulomb barrier
84  G4bool coulombBarrierViolation() const;
85
86  // Conditions for rejecting cascade attempt
87  G4bool retryInelasticProton() const;
88  G4bool retryInelasticNucleus() const;
89
90  // Fill sparse array with minimum momenta for inelastic on hydrogen
91  void initializeElasticCuts();
92
93  // Transfer Bertini internal final state to hadronics interface
94  void copyOutputToHadronicResult();
95
96  // Terminate job because of energy/momentum/etc. violations
97  void throwNonConservationFailure();
98
99private:
100  G4int operator==(const G4CascadeInterface& right) const {
101    return (this == &right);
102  }
103
104  G4int operator!=(const G4CascadeInterface& right) const {
105    return (this != &right);
106  }
107
108  static const G4int maximumTries;      // Number of iterations for inelastic
109
110  G4double cutElastic[32];              // Bullet momenta for hydrogen target
111
112  G4int verboseLevel;
113  G4int numberOfTries;
114
115  G4HadFinalState theResult;
116  G4InuclCollider* collider;
117  G4CascadeCheckBalance* balance;
118
119  G4InuclParticle* bullet;
120  G4InuclParticle* target;
121  G4CollisionOutput* output;
122
123  G4LorentzRotation bulletInLabFrame;
124};
125
126#endif // G4CASCADEINTERFACE_H
Note: See TracBrowser for help on using the repository browser.