Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4ChargeExchange.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 class G4ExcitationHandler;
0049 class G4NistManager;
0050 
0051 class G4ChargeExchange : public G4HadronicInteraction
0052 {
0053 public:
0054 
0055   explicit G4ChargeExchange(G4ChargeExchangeXS*);
0056   ~G4ChargeExchange() override;
0057 
0058   G4ChargeExchange( const G4ChargeExchange &right ) = delete;
0059   const G4ChargeExchange & operator=( const G4ChargeExchange &right ) = delete;
0060   G4bool operator==( const G4ChargeExchange &right ) const = delete;
0061   G4bool operator!=( const G4ChargeExchange &right ) const = delete;
0062 
0063   G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
0064                                  G4Nucleus& targetNucleus) override;
0065 
0066   G4double SampleT(const G4ParticleDefinition* theSec, const G4int A,
0067            const G4double tmax) const;
0068 
0069 private:
0070 
0071   G4bool SampleMass(G4double& mass, const G4double width, const G4double elim);
0072   
0073   G4ChargeExchangeXS* fXSection;
0074   G4ExcitationHandler* fHandler;
0075   G4NistManager* nist;
0076 
0077   G4int secID;  // Creator model ID for the secondaries created by this model
0078   G4double lowEnergyLimit; // lowest limit to avoid numerical problems
0079   G4double fXSWeightFactor;
0080 };
0081 
0082 #endif