G4InelasticInteraction.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // Hadronic Process: Inelastic Interaction 
00030 // This class is an abstract base class, since the pure virtual
00031 // function ApplyYourself has not been defined yet.
00032 // original by H.P. Wellisch
00033 // Modified by J.L. Chuma, TRIUMF, 22-Nov-1996
00034 // Modified by J.L. Chuma  27-Mar-1997
00035 // Modified by J.L. Chuma  30-Apr-1997
00036 // Modified by J.L. Chuma  05-Aug-1997  to pass the original incident particle to
00037 //                                      CalculateMomenta
00038 // Modified by J.L. Chuma  05-Jun-1998  to include quasiElastic flag to allow for
00039 //                                      TwoBody to be called directly, bypassing
00040 //                                      TwoCluster, and allowing TwoCluster to be
00041 //                                      called with no secondaries
00042 // 23-Jan-2009 V.Ivanchenko move constructor and destructor to the body
00043 // 29-Aug-2009 V.Ivanchenko moveded G4ReactionDynamics instance from the based class 
00044  
00045 #ifndef G4InelasticInteraction_h
00046 #define G4InelasticInteraction_h 1
00047 
00048 #include "globals.hh"
00049 #include "G4FastVector.hh"
00050 #include "G4HadronicInteraction.hh"
00051 #include "G4ReactionProduct.hh"
00052 #include "G4ParticleTypes.hh" 
00053 #include "Randomize.hh"
00054 #include "G4ReactionDynamics.hh"
00055 #include "G4VIsotopeProduction.hh"
00056 
00057 class G4IsoResult;
00058 class G4IsoParticleChange;
00059 
00060 
00061 class G4InelasticInteraction : public G4HadronicInteraction
00062 {
00063   public:
00064     
00065     G4InelasticInteraction(const G4String& name = "LEInelastic");
00066     virtual ~G4InelasticInteraction();
00067 
00068     void RegisterIsotopeProductionModel(G4VIsotopeProduction* aModel)
00069       {theProductionModels.push_back(aModel);}
00070 
00071     void TurnOnIsotopeProduction() {isotopeProduction = true;}
00072 
00073     static G4IsoParticleChange* GetIsotopeProductionInfo(); 
00074 
00075     virtual const std::pair<G4double, G4double> GetFatalEnergyCheckLevels() const;
00076 
00077   protected:
00078     
00079     G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n,
00080                     G4double b, G4double c );
00081     
00082     G4bool MarkLeadingStrangeParticle(const G4ReactionProduct &currentParticle,
00083                                       const G4ReactionProduct &targetParticle,
00084                                       G4ReactionProduct &leadParticle);
00085     
00086     void SetUpPions(const G4int np, const G4int nm, const G4int nz,
00087                     G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00088                     G4int& vecLen);
00089     
00090     void Rotate(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec, G4int& vecLen);
00091 
00092     void GetNormalizationConstant(const G4double availableEnergy,
00093                                   G4double& n, G4double& anpn);
00094     
00095     void CalculateMomenta(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00096                           G4int& vecLen,
00097                           const G4HadProjectile* originalIncident,
00098                           const G4DynamicParticle* originalTarget,
00099                           G4ReactionProduct& modifiedOriginal,
00100                           G4Nucleus& targetNucleus,
00101                           G4ReactionProduct& currentParticle,
00102                           G4ReactionProduct& targetParticle,
00103                           G4bool& incidentHasChanged,
00104                           G4bool& targetHasChanged,
00105                           G4bool quasiElastic);
00106     
00107     void SetUpChange(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00108                      G4int& vecLen,
00109                      G4ReactionProduct& currentParticle,
00110                      G4ReactionProduct& targetParticle,
00111                      G4bool& incidentHasChanged);
00112 
00113     void DoIsotopeCounting(const G4HadProjectile* theProjectile,
00114                            const G4Nucleus& aNucleus);
00115 
00116     G4IsoResult* ExtractResidualNucleus(const G4Nucleus& aNucleus);
00117     G4bool isotopeProduction;
00118 
00119     G4ReactionDynamics theReactionDynamics;
00120 
00121   private:
00122 
00123     G4double cache;
00124     G4ThreeVector what;
00125 
00126     std::vector<G4VIsotopeProduction*> theProductionModels;
00127     static G4IsoParticleChange* theIsoResult;
00128     static G4IsoParticleChange* theOldIsoResult;
00129 };
00130  
00131 #endif
00132  

Generated on Mon May 27 17:48:38 2013 for Geant4 by  doxygen 1.4.7