Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /geant4/examples/advanced/air_shower/src/UltraPhysicsList.cc 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 // --------------------------------------------------------------
0028 //                 GEANT 4 - ULTRA experiment example
0029 // --------------------------------------------------------------
0030 //
0031 // Code developed by:
0032 // B. Tome, M.C. Espirito-Santo, A. Trindade, P. Rodrigues
0033 //
0034 //    ****************************************************
0035 //    *      UltraPhysicsList.cc
0036 //    ****************************************************
0037 //
0038 //    Ultra Physics List class; Standard and Low Energy EM processes are defined for
0039 //    the relevant particles. Optical processes are declared.
0040 //
0041 #include "G4ios.hh"
0042 //#include "iomanip.h"
0043 #include "globals.hh"
0044 
0045 #include "UltraPhysicsList.hh"
0046 
0047 #include "G4ParticleDefinition.hh"
0048 #include "G4ParticleTypes.hh"
0049 #include "G4ParticleWithCuts.hh"
0050 #include "G4ParticleTable.hh"
0051 #include "G4Material.hh"
0052 #include "G4MaterialTable.hh"
0053 #include "G4ProcessManager.hh"
0054 #include "G4ProcessVector.hh"
0055 
0056 #include "G4EmStandardPhysics.hh"
0057 #include "G4EmLivermorePhysics.hh"
0058 #include "G4EmPenelopePhysics.hh"
0059 #include "G4EmLowEPPhysics.hh"
0060 #include "G4DecayPhysics.hh"
0061 #include "G4IonPhysics.hh"
0062 #include "G4EmExtraPhysics.hh"
0063 #include "G4StoppingPhysics.hh"
0064 #include "G4OpticalPhysics.hh"
0065 
0066 #include "G4UnitsTable.hh"
0067 #include "G4SystemOfUnits.hh"
0068 #include "G4LossTableManager.hh"
0069 
0070 UltraPhysicsList::UltraPhysicsList() :  G4VModularPhysicsList(),
0071            fEmPhysicsList(0),
0072            fOpPhysicsList(0),
0073            fDecayPhysicsList(0),
0074            fVerboseLebel(1),
0075            fMaxNumPhotonStep(20)
0076 {
0077   G4LossTableManager::Instance();
0078   SetDefaultCutValue(1*mm);
0079 
0080   // fMessenger = new UltraPhysicsListMessenger(this);
0081   // fStepMaxProcess = new StepMax();
0082 
0083   // Initilise flags
0084 
0085   SetVerboseLevel(1);
0086 
0087 
0088   // EM physics
0089   fEmName = G4String("emstandard");
0090   fEmPhysicsList = new G4EmStandardPhysics();
0091   fOpPhysicsList = new G4OpticalPhysics();
0092 
0093   // Decay Physics is always defined
0094   fDecayPhysicsList = new G4DecayPhysics();
0095 }
0096 
0097 UltraPhysicsList::~UltraPhysicsList()
0098 {
0099   delete fDecayPhysicsList;
0100   delete fEmPhysicsList;
0101   delete fOpPhysicsList;
0102 //  delete fStepMaxProcess;
0103 }
0104 
0105 
0106 void UltraPhysicsList::ConstructParticle()
0107 {
0108   fDecayPhysicsList->ConstructParticle();
0109 }
0110 
0111 
0112 void UltraPhysicsList::ConstructProcess()
0113 {
0114   AddTransportation();
0115   if (fEmPhysicsList)
0116     fEmPhysicsList->ConstructProcess();
0117 
0118   if (fOpPhysicsList)
0119     fOpPhysicsList->ConstructProcess();
0120 
0121   if (fDecayPhysicsList)
0122     fDecayPhysicsList->ConstructProcess();
0123 }
0124 
0125 
0126 void UltraPhysicsList::SetCuts()
0127 {
0128   if (verboseLevel >1){
0129     G4cout << "UltraPhysicsList::SetCuts:";
0130   }
0131   //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
0132   //   the default cut value for all particle types
0133   SetCutsWithDefault();
0134 }