Back to home page

EIC code displayed by LXR

 
 

    


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

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 // G4 Model: Charge and strangness exchange based on G4LightMedia model
0028 //           28 May 2006 V.Ivanchenko
0029 //
0030 // Modified:
0031 // 25-Jul-06 V.Ivanchenko add 19 MeV low energy, below which S-wave is sampled
0032 //
0033 
0034 #ifndef G4ChargeExchange_h
0035 #define G4ChargeExchange_h 1
0036 
0037 // Class Description
0038 // Final state production model for hadron nuclear coherent charge exchange;
0039 // Class Description - End
0040 
0041 #include "globals.hh"
0042 #include "G4HadronicInteraction.hh"
0043 #include "G4HadProjectile.hh"
0044 #include "G4Nucleus.hh"
0045 
0046 class G4ParticleDefinition;
0047 class G4ChargeExchangeXS;
0048 
0049 class G4ChargeExchange : public G4HadronicInteraction
0050 {
0051 public:
0052 
0053   explicit G4ChargeExchange(G4ChargeExchangeXS*);
0054   ~G4ChargeExchange() override = default;
0055 
0056   G4ChargeExchange( const G4ChargeExchange &right ) = delete;
0057   const G4ChargeExchange & operator=( const G4ChargeExchange &right ) = delete;
0058   G4bool operator==( const G4ChargeExchange &right ) const = delete;
0059   G4bool operator!=( const G4ChargeExchange &right ) const = delete;
0060 
0061   G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
0062                                  G4Nucleus& targetNucleus) override;
0063 
0064   G4double SampleT(const G4ParticleDefinition* theSec, const G4int A,
0065            const G4double tmax) const;
0066 
0067 private:
0068 
0069   G4ChargeExchangeXS* fXSection;
0070 
0071   G4int secID;  // Creator model ID for the secondaries created by this model
0072   G4double lowEnergyLimit; // lowest limit to avoid numerical problems
0073 };
0074 
0075 #endif