Back to home page

EIC code displayed by LXR

 
 

    


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

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 //---------------------------------------------------------------------------
0028 //
0029 // ClassName:   G4EmExtraPhysics
0030 //
0031 // Author: 2002 J.P. Wellisch
0032 //
0033 // Modified:
0034 // 10.11.2005 V.Ivanchenko edit to provide a standard
0035 // 19.06.2006 V.Ivanchenko add mu-nuclear process
0036 // 16.10.2012 A.Ribon: renamed G4EmExtraBertiniPhysics as G4EmExtraPhysics
0037 // 31.01.2018 V. Grichine: add neutrino-electron process and xsc
0038 //
0039 //----------------------------------------------------------------------------
0040 //
0041 
0042 #ifndef G4EmExtraPhysics_h
0043 #define G4EmExtraPhysics_h 1
0044 
0045 #include "G4VPhysicsConstructor.hh"
0046 #include "globals.hh"
0047 
0048 #include "G4EmMessenger.hh"
0049 
0050 class G4CascadeInterface;
0051 class G4HadronInelasticProcess;
0052 
0053 class G4EmExtraPhysics : public G4VPhysicsConstructor
0054 {
0055 public:
0056 
0057   G4EmExtraPhysics(G4int ver = 1);
0058 
0059   // obsolete
0060   G4EmExtraPhysics(const G4String& name);
0061 
0062   ~G4EmExtraPhysics() override;
0063 
0064   void ConstructParticle() override;
0065   void ConstructProcess() override;
0066 
0067   void Synch(G4bool val);
0068   void SynchAll(G4bool val);
0069   void GammaNuclear(G4bool val);
0070   void LENDGammaNuclear(G4bool val);
0071   void ElectroNuclear(G4bool val);
0072   void MuonNuclear(G4bool val);
0073   void GammaToMuMu(G4bool val);
0074   void MuonToMuMu(G4bool val);
0075   void PositronToMuMu(G4bool val);
0076   void PositronToHadrons(G4bool val);
0077   void GammaToMuMuFactor(G4double val);
0078   void PositronToMuMuFactor(G4double val);
0079   void PositronToHadronsFactor(G4double val);
0080   void GammaNuclearLEModelLimit(G4double val);
0081   void SetUseGammaNuclearXS(G4bool val);
0082 
0083   G4EmExtraPhysics& operator=(const G4EmExtraPhysics& right) = delete;
0084   G4EmExtraPhysics(const G4EmExtraPhysics&) = delete;
0085  
0086 private:
0087 
0088   void ConstructGammaElectroNuclear();
0089 
0090   void ConstructLENDGammaNuclear(G4CascadeInterface* cascade,
0091                                  G4HadronInelasticProcess* gnuc);
0092 
0093   G4bool gnActivated{true};
0094   G4bool eActivated{true};
0095   G4bool gLENDActivated{false};
0096   G4bool munActivated{true};
0097   G4bool synActivated{false};
0098   G4bool synActivatedForAll{false};
0099   G4bool gmumuActivated{false};
0100   G4bool mmumuActivated{false};
0101   G4bool pmumuActivated{false};
0102   G4bool phadActivated{false};
0103   G4bool fUseGammaNuclearXS{true};
0104 
0105   G4double gmumuFactor{1.0};
0106   G4double pmumuFactor{1.0};
0107   G4double phadFactor{1.0};
0108   G4double fGNLowEnergyLimit;
0109 
0110   G4EmMessenger* theMessenger;
0111   G4int verbose;
0112 };
0113 
0114 #endif