Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:52

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
0028 //
0029 // June-2019 - E. Mendoza - re-build "two_body_reaction", to be used by
0030 //  incident charged particles (now isotropic emission in the CMS).
0031 //  Also restrict nresp use below 20 MeV (for future developments).
0032 //  Add photon emission when no data available.
0033 //
0034 // V. Ivanchenko, July-2023 Basic revision of particle HP classes
0035 
0036 #ifndef G4ParticleHPInelasticCompFS_h
0037 #define G4ParticleHPInelasticCompFS_h 1
0038 
0039 #include "G4ParticleHPFinalState.hh"
0040 #include "G4HadFinalState.hh"
0041 #include "G4HadProjectile.hh"
0042 #include "G4NRESP71M03.hh"
0043 #include "G4Nucleus.hh"
0044 #include "G4ParticleHPAngular.hh"
0045 #include "G4ParticleHPDeExGammas.hh"
0046 #include "G4ParticleHPEnAngCorrelation.hh"
0047 #include "G4ParticleHPEnergyDistribution.hh"
0048 #include "G4ParticleHPPhotonDist.hh"
0049 #include "globals.hh"
0050 
0051 class G4ParticleHPInelasticCompFS : public G4ParticleHPFinalState
0052 {
0053 public:
0054   G4ParticleHPInelasticCompFS();
0055   ~G4ParticleHPInelasticCompFS() override;
0056 
0057   void Init(G4double A, G4double Z, G4int M, G4String& dirName,
0058             G4String& aSFType, G4ParticleDefinition*) override;
0059 
0060   void InitGammas(G4double AR, G4double ZR);
0061 
0062   G4HadFinalState* ApplyYourself(const G4HadProjectile& theTrack) override = 0;
0063 
0064   G4ParticleHPFinalState* New() override = 0;
0065 
0066   G4double GetXsec(G4double anEnergy) override
0067   {
0068     return std::max(0., theXsection[50]->GetY(anEnergy));
0069   }
0070 
0071   G4ParticleHPVector* GetXsec() override { return theXsection[50]; }
0072 
0073   G4int SelectExitChannel(G4double eKinetic);
0074 
0075   void CompositeApply(const G4HadProjectile& theTrack,
0076                       G4ParticleDefinition* aHadron);
0077 
0078   void InitDistributionInitialState(G4ReactionProduct& anIncidentPart,
0079                     G4ReactionProduct& aTarget, G4int it);
0080 
0081   G4ParticleHPInelasticCompFS(G4ParticleHPInelasticCompFS&) = delete;
0082   G4ParticleHPInelasticCompFS& operator=
0083   (const G4ParticleHPInelasticCompFS &right) = delete;
0084 
0085 private:
0086 
0087   void two_body_reaction(G4ReactionProduct* proj, G4ReactionProduct* targ,
0088              G4ReactionProduct* product, G4double exEnergy);
0089 
0090   G4bool use_nresp71_model(const G4ParticleDefinition*, const G4int itt,
0091                const G4ReactionProduct& theTarget,
0092                            G4ReactionProduct& boosted);
0093 
0094   G4NRESP71M03 nresp71_model;
0095 
0096 protected:
0097 
0098   G4ParticleHPVector* theXsection[51];
0099   G4ParticleHPEnergyDistribution* theEnergyDistribution[51];
0100   G4ParticleHPAngular* theAngularDistribution[51];
0101   G4ParticleHPEnAngCorrelation* theEnergyAngData[51];
0102   G4ParticleHPPhotonDist* theFinalStatePhotons[51];
0103 
0104   std::vector<G4double> QI;
0105   std::vector<G4int> LR;
0106 
0107   G4ParticleHPDeExGammas theGammas;
0108   G4String gammaPath;
0109 };
0110 
0111 #endif