Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-10 08:28:13

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 /// \file G4AdjointPhysicsList.hh
0027 /// \brief Definition of the G4AdjointPhysicsList class
0028 
0029 //  Class Name:             G4AdjointPhysicsList
0030 //        Author:               L. Desorgher
0031 //        Organisation:         SpaceIT GmbH
0032 //        Contract:        ESA contract 21435/08/NL/AT
0033 //        Customer:             ESA/ESTEC
0034 //////////////////////////////////////////////////////////////
0035 // CHANGE HISTORY
0036 //--------------
0037 //      ChangeHistory:
0038 //                 17-11-2009 creation by L. Desorgher
0039 //
0040 //-------------------------------------------------------------
0041 
0042 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0044 
0045 #ifndef G4AdjointPhysicsList_h
0046 #define G4AdjointPhysicsList_h 1
0047 #include "G4VUserPhysicsList.hh"
0048 #include "G4eIonisation.hh"
0049 #include "G4hIonisation.hh"
0050 #include "globals.hh"
0051 class G4AdjointPhysicsMessenger;
0052 
0053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0054 
0055 class G4AdjointPhysicsList : public G4VUserPhysicsList
0056 {
0057   public:
0058     G4AdjointPhysicsList();
0059     virtual ~G4AdjointPhysicsList();
0060     void SetLossFluctuationFlag(bool aBool);
0061     inline void SetUseIonisation(bool aBool) { fUse_eionisation = aBool; }
0062     inline void SetUseProtonIonisation(bool aBool) { fUse_pionisation = aBool; }
0063     inline void SetUseBrem(bool aBool) { fUse_brem = aBool; }
0064     inline void SetUseCompton(bool aBool) { fUse_compton = aBool; }
0065     inline void SetUseMS(bool aBool) { fUse_ms = aBool; }
0066     inline void SetUsePEEffect(bool aBool) { fUse_peeffect = aBool; }
0067     inline void SetUseGammaConversion(bool aBool) { fUse_gamma_conversion = aBool; }
0068     inline void SetUseEgainFluctuation(bool aBool) { fUse_egain_fluctuation = aBool; }
0069     inline void SetEminAdjModels(G4double aVal) { fEmin_adj_models = aVal; }
0070     inline void SetEmaxAdjModels(G4double aVal) { fEmax_adj_models = aVal; }
0071 
0072   protected:
0073     // Construct particle and physics
0074     virtual void ConstructParticle();
0075     virtual void ConstructProcess();
0076     virtual void SetCuts();
0077 
0078     // these methods Construct particles
0079     void ConstructBosons();
0080     void ConstructLeptons();
0081     void ConstructMesons();
0082     void ConstructBaryons();
0083     void ConstructAdjointParticles();
0084 
0085     // these methods Construct physics processes and register them
0086     void ConstructGeneral();
0087     void ConstructEM();
0088 
0089 
0090 
0091   private:
0092     G4AdjointPhysicsMessenger* fPhysicsMessenger;
0093     G4bool fUse_forced_interaction;
0094     G4bool fUse_eionisation;
0095     G4bool fUse_pionisation;
0096     G4bool fUse_brem;
0097     G4bool fUse_compton;
0098     G4bool fUse_ms;
0099     G4bool fUse_egain_fluctuation;
0100     G4bool fUse_peeffect;
0101     G4bool fUse_gamma_conversion;
0102     G4double fEmin_adj_models;
0103     G4double fEmax_adj_models;
0104     G4double fCS_biasing_factor_compton;
0105     G4double fCS_biasing_factor_brem;
0106     G4double fCS_biasing_factor_ionisation;
0107     G4double fCS_biasing_factor_PEeffect;
0108 };
0109 
0110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0111 
0112 #endif