| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | //
|
|---|
| 27 | // $Id: GammaRayTelPhysicsList.cc,v 1.7 2006/06/29 15:56:55 gunter Exp $
|
|---|
| 28 | // GEANT4 tag $Name: $
|
|---|
| 29 | //
|
|---|
| 30 | //
|
|---|
| 31 |
|
|---|
| 32 | #include "GammaRayTelPhysicsList.hh"
|
|---|
| 33 |
|
|---|
| 34 | #include "globals.hh"
|
|---|
| 35 | #include "G4ParticleDefinition.hh"
|
|---|
| 36 | #include "G4ParticleWithCuts.hh"
|
|---|
| 37 | #include "G4ProcessManager.hh"
|
|---|
| 38 | #include "G4ProcessVector.hh"
|
|---|
| 39 | #include "G4ParticleTypes.hh"
|
|---|
| 40 | #include "G4ParticleTable.hh"
|
|---|
| 41 |
|
|---|
| 42 | #include "G4Material.hh"
|
|---|
| 43 | #include "G4MaterialTable.hh"
|
|---|
| 44 | #include "G4ios.hh"
|
|---|
| 45 | #include <iomanip>
|
|---|
| 46 | #include "GammaRayTelParticles.hh"
|
|---|
| 47 | #include "GammaRayTelGeneralPhysics.hh"
|
|---|
| 48 | #include "GammaRayTelEMPhysics.hh"
|
|---|
| 49 | #include "GammaRayTelMuonPhysics.hh"
|
|---|
| 50 | #include "GammaRayTelHadronPhysics.hh"
|
|---|
| 51 | #include "GammaRayTelIonPhysics.hh"
|
|---|
| 52 |
|
|---|
| 53 | GammaRayTelPhysicsList::GammaRayTelPhysicsList(): G4VModularPhysicsList()
|
|---|
| 54 | {
|
|---|
| 55 | // default cut value (1.0mm)
|
|---|
| 56 | defaultCutValue = 1.0*mm;
|
|---|
| 57 | SetVerboseLevel(1);
|
|---|
| 58 |
|
|---|
| 59 | RegisterPhysics( new GammaRayTelParticles("particles") );
|
|---|
| 60 |
|
|---|
| 61 | // General Physics
|
|---|
| 62 | RegisterPhysics( new GammaRayTelGeneralPhysics("general") );
|
|---|
| 63 |
|
|---|
| 64 | // EM Physics
|
|---|
| 65 | RegisterPhysics( new GammaRayTelEMPhysics("electromagnetic"));
|
|---|
| 66 |
|
|---|
| 67 | // Muon Physics
|
|---|
| 68 | RegisterPhysics( new GammaRayTelMuonPhysics("muon"));
|
|---|
| 69 |
|
|---|
| 70 | // Hadron Physics
|
|---|
| 71 | RegisterPhysics( new GammaRayTelHadronPhysics("hadron"));
|
|---|
| 72 |
|
|---|
| 73 | // Ion Physics
|
|---|
| 74 | RegisterPhysics( new GammaRayTelIonPhysics("ion"));
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 | }
|
|---|
| 78 |
|
|---|
| 79 | GammaRayTelPhysicsList::~GammaRayTelPhysicsList()
|
|---|
| 80 | {
|
|---|
| 81 | }
|
|---|
| 82 |
|
|---|
| 83 | #include "G4Region.hh"
|
|---|
| 84 | #include "G4RegionStore.hh"
|
|---|
| 85 | #include "G4ProductionCuts.hh"
|
|---|
| 86 |
|
|---|
| 87 | void GammaRayTelPhysicsList::SetCuts()
|
|---|
| 88 | {
|
|---|
| 89 | if (verboseLevel >0){
|
|---|
| 90 | G4cout << "GammaRayTelPhysicsList::SetCuts: default cut length : "
|
|---|
| 91 | << G4BestUnit(defaultCutValue,"Length") << G4endl;
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 | // These values are used as the default production thresholds
|
|---|
| 95 | // for the world volume.
|
|---|
| 96 | SetCutsWithDefault();
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | // Production thresholds for detector regions
|
|---|
| 100 |
|
|---|
| 101 | G4String regName[] = {"Calorimeter","Tracker"};
|
|---|
| 102 | G4double cutValue[] = {1*mm, 0.1*mm};
|
|---|
| 103 |
|
|---|
| 104 | for(G4int i=0;i<2;i++)
|
|---|
| 105 | {
|
|---|
| 106 | G4Region* reg = G4RegionStore::GetInstance()->GetRegion(regName[i]);
|
|---|
| 107 | G4ProductionCuts* cuts = new G4ProductionCuts;
|
|---|
| 108 | cuts->SetProductionCut(cutValue[i]);
|
|---|
| 109 | reg->SetProductionCuts(cuts);
|
|---|
| 110 | }
|
|---|
| 111 | }
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|