[819] | 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 | // |
---|
[1340] | 26 | // $Id: G4VIntraNuclearTransportModel.hh,v 1.5 2010/08/28 15:53:50 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
[819] | 28 | // |
---|
| 29 | // ----------------------------------------------------------------------------- |
---|
| 30 | // GEANT 4 class header file |
---|
| 31 | // |
---|
| 32 | // History: first implementation, A. Feliciello, 30th June 1998 |
---|
| 33 | // A.Pavliouk 26.11.98 |
---|
| 34 | // In Set...() methods a pointer is deleted now before new |
---|
| 35 | // value will be asigned. |
---|
| 36 | // ----------------------------------------------------------------------------- |
---|
| 37 | |
---|
| 38 | #ifndef G4VIntraNuclearTransportModel_h |
---|
| 39 | #define G4VIntraNuclearTransportModel_h 1 |
---|
| 40 | |
---|
| 41 | // Class Description |
---|
| 42 | // Base class for intra-nuclear transport models in geant4. By merit of inheriting |
---|
| 43 | // from this class a intra-nuclear transport model can be used in conjunction with |
---|
| 44 | // any precompound, string parton model or other high energy generator in the |
---|
| 45 | // generation of final states for inelastic scattering. |
---|
| 46 | // Class Description - End |
---|
| 47 | |
---|
| 48 | #include "G4V3DNucleus.hh" |
---|
| 49 | #include "G4VPreCompoundModel.hh" |
---|
| 50 | #include "G4HadronicInteraction.hh" |
---|
| 51 | #include "G4ReactionProductVector.hh" |
---|
| 52 | #include "G4ReactionProduct.hh" |
---|
| 53 | #include "G4HadProjectile.hh" |
---|
| 54 | #include "G4HadFinalState.hh" |
---|
[1340] | 55 | |
---|
[819] | 56 | class G4KineticTrackVector; |
---|
| 57 | |
---|
| 58 | class G4VIntraNuclearTransportModel : public G4HadronicInteraction |
---|
| 59 | { |
---|
[1340] | 60 | public: |
---|
[819] | 61 | |
---|
[1340] | 62 | G4VIntraNuclearTransportModel(const G4String& modelName = "CascadeModel"); |
---|
[819] | 63 | |
---|
[1340] | 64 | virtual ~G4VIntraNuclearTransportModel(); |
---|
[819] | 65 | |
---|
[1340] | 66 | virtual |
---|
| 67 | G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries, |
---|
| 68 | G4V3DNucleus* theNucleus) = 0; |
---|
[819] | 69 | |
---|
[1340] | 70 | inline void SetDeExcitation(G4VPreCompoundModel* const value); |
---|
[819] | 71 | |
---|
[1340] | 72 | inline void Set3DNucleus(G4V3DNucleus* const value); |
---|
[819] | 73 | |
---|
[1340] | 74 | inline const G4String& GetModelName() const; |
---|
[819] | 75 | |
---|
[1340] | 76 | private: |
---|
[819] | 77 | |
---|
[1340] | 78 | G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right); |
---|
| 79 | const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right); |
---|
| 80 | int operator==(const G4VIntraNuclearTransportModel& right) const; |
---|
| 81 | int operator!=(const G4VIntraNuclearTransportModel& right) const; |
---|
[819] | 82 | |
---|
[1340] | 83 | protected: |
---|
[819] | 84 | |
---|
[1340] | 85 | inline G4V3DNucleus* Get3DNucleus() const; |
---|
[819] | 86 | |
---|
[1340] | 87 | inline G4VPreCompoundModel* GetDeExcitation() const; |
---|
[819] | 88 | |
---|
[1340] | 89 | G4String theTransportModelName; |
---|
[819] | 90 | |
---|
[1340] | 91 | G4V3DNucleus* the3DNucleus; |
---|
[819] | 92 | |
---|
[1340] | 93 | G4VPreCompoundModel* theDeExcitation; |
---|
[819] | 94 | }; |
---|
| 95 | |
---|
[1340] | 96 | inline const G4String& G4VIntraNuclearTransportModel::GetModelName() const |
---|
[819] | 97 | { |
---|
| 98 | return theTransportModelName; |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | inline G4V3DNucleus* G4VIntraNuclearTransportModel::Get3DNucleus() const |
---|
| 102 | { |
---|
| 103 | return the3DNucleus; |
---|
| 104 | } |
---|
| 105 | |
---|
| 106 | inline void G4VIntraNuclearTransportModel::Set3DNucleus(G4V3DNucleus* const value) |
---|
| 107 | { |
---|
| 108 | delete the3DNucleus; the3DNucleus = value; |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | inline G4VPreCompoundModel* G4VIntraNuclearTransportModel::GetDeExcitation() const |
---|
| 112 | { |
---|
| 113 | return theDeExcitation; |
---|
| 114 | } |
---|
| 115 | |
---|
[1340] | 116 | inline void |
---|
| 117 | G4VIntraNuclearTransportModel::SetDeExcitation(G4VPreCompoundModel* const value) |
---|
[819] | 118 | { |
---|
[1340] | 119 | delete theDeExcitation; |
---|
| 120 | theDeExcitation = value; |
---|
[819] | 121 | } |
---|
| 122 | |
---|
| 123 | #endif |
---|
| 124 | |
---|
| 125 | |
---|