Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // Authors: Susanna Guatelli and Francesco Rom 26 // Authors: Susanna Guatelli and Francesco Romano 27 // susanna@uow.edu.au, francesco.romano@ct.inf 27 // susanna@uow.edu.au, francesco.romano@ct.infn.it 28 // 28 // 29 // Code based on the hadrontherapy advanced ex 29 // Code based on the hadrontherapy advanced example 30 30 31 #ifndef PhysicsList_h 31 #ifndef PhysicsList_h 32 #define PhysicsList_h 1 32 #define PhysicsList_h 1 33 33 34 #include "G4VModularPhysicsList.hh" 34 #include "G4VModularPhysicsList.hh" 35 #include "G4EmConfigurator.hh" 35 #include "G4EmConfigurator.hh" 36 #include "globals.hh" 36 #include "globals.hh" 37 37 38 class G4VPhysicsConstructor; 38 class G4VPhysicsConstructor; 39 class HadrontherapyStepMax; 39 class HadrontherapyStepMax; 40 class PhysicsListMessenger; 40 class PhysicsListMessenger; 41 41 42 class PhysicsList: public G4VModularPhysicsLis 42 class PhysicsList: public G4VModularPhysicsList 43 { 43 { 44 public: 44 public: 45 45 46 PhysicsList(); 46 PhysicsList(); 47 virtual ~PhysicsList(); 47 virtual ~PhysicsList(); 48 48 49 void ConstructParticle(); 49 void ConstructParticle(); 50 50 51 void SetCutForGamma(G4double); 51 void SetCutForGamma(G4double); 52 void SetCutForElectron(G4double); 52 void SetCutForElectron(G4double); 53 void SetCutForPositron(G4double); 53 void SetCutForPositron(G4double); 54 54 55 void AddPhysicsList(const G4String& name); 55 void AddPhysicsList(const G4String& name); 56 void ConstructProcess(); 56 void ConstructProcess(); 57 57 58 void AddStepMax();// At the moment this is n 58 void AddStepMax();// At the moment this is not used 59 59 60 void AddPackage(const G4String& name); 60 void AddPackage(const G4String& name); 61 61 62 private: 62 private: 63 63 64 G4EmConfigurator em_config; 64 G4EmConfigurator em_config; 65 65 66 G4double cutForGamma; 66 G4double cutForGamma; 67 G4double cutForElectron; 67 G4double cutForElectron; 68 G4double cutForPositron; 68 G4double cutForPositron; 69 69 70 G4bool helIsRegisted; 70 G4bool helIsRegisted; 71 G4bool bicIsRegisted; 71 G4bool bicIsRegisted; 72 G4bool biciIsRegisted; 72 G4bool biciIsRegisted; 73 G4bool locIonIonInelasticIsRegistered; 73 G4bool locIonIonInelasticIsRegistered; 74 G4bool radioactiveDecayIsRegisted; 74 G4bool radioactiveDecayIsRegisted; 75 75 76 G4String emName; 76 G4String emName; 77 G4VPhysicsConstructor* emPhysi 77 G4VPhysicsConstructor* emPhysicsList; 78 G4VPhysicsConstructor* decPhys 78 G4VPhysicsConstructor* decPhysicsList; 79 std::vector<G4VPhysicsConstructor*> hadronP 79 std::vector<G4VPhysicsConstructor*> hadronPhys; 80 80 81 PhysicsListMessenger* pMessenger; 81 PhysicsListMessenger* pMessenger; 82 }; 82 }; 83 83 84 #endif 84 #endif 85 85