Changeset 1230 for trunk/examples/advanced/gammaray_telescope/src
- Timestamp:
- Jan 8, 2010, 3:02:48 PM (15 years ago)
- Location:
- trunk/examples/advanced/gammaray_telescope/src
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelAnalysis.cc
r807 r1230 27 27 // 28 28 // $Id: GammaRayTelAnalysis.cc,v 1.21 2006/06/29 15:56:07 gunter Exp $ 29 // GEANT4 tag $Name: $29 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 30 30 // ------------------------------------------------------------ 31 31 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelAnalysisMessenger.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelAnalysisMessenger.cc,v 1.9 2006/06/29 15:56:10 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // ------------------------------------------------------------ -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelAnticoincidenceHit.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelAnticoincidenceHit.cc,v 1.4 2006/06/29 15:56:12 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelAnticoincidenceSD.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelAnticoincidenceSD.cc,v 1.6 2006/06/29 15:56:15 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelCalorimeterHit.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelCalorimeterHit.cc,v 1.4 2006/06/29 15:56:17 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelCalorimeterSD.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelCalorimeterSD.cc,v 1.7 2006/06/29 15:56:19 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelDetectorConstruction.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelDetectorConstruction.cc,v 1.15 2006/06/29 15:56:22 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelDetectorMessenger.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelDetectorMessenger.cc,v 1.8 2006/06/29 15:56:25 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // ------------------------------------------------------------ -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelDigi.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelDigi.cc,v 1.5 2006/06/29 15:56:28 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelDigitizer.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelDigitizer.cc,v 1.6 2006/06/29 15:56:31 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelDigitizerMessenger.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelDigitizerMessenger.cc,v 1.5 2006/06/29 15:56:34 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelEventAction.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelEventAction.cc,v 1.19 2006/06/29 15:56:39 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelHadronPhysics.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelHadronPhysics.cc,v 1.4 2006/06/29 15:56:45 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelIonPhysics.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelIonPhysics.cc,v 1.4 2006/06/29 15:56:48 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelMuonPhysics.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: GammaRayTelMuonPhysics.cc,v 1.4 2006/06/29 15:56:50 gunter Exp $ 28 // GEANT4 tag $Name: $ 29 // 27 // $Id: GammaRayTelMuonPhysics.cc,v 1.8 2008/11/24 15:10:47 cirrone Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 30 29 // 31 30 … … 34 33 #include "globals.hh" 35 34 #include "G4ios.hh" 35 #include "G4MuonPlus.hh" 36 #include "G4TauPlus.hh" 37 #include "G4TauMinus.hh" 36 38 #include <iomanip> 39 40 41 #include "G4ParticleTypes.hh" 37 42 38 43 -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelPhysicsList.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: GammaRayTelPhysicsList.cc,v 1. 7 2006/06/29 15:56:55 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: GammaRayTelPhysicsList.cc,v 1.8 2009/11/18 15:59:05 flongo Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 44 44 #include "G4ios.hh" 45 45 #include <iomanip> 46 46 47 #include "GammaRayTelParticles.hh" 47 48 #include "GammaRayTelGeneralPhysics.hh" 48 #include "GammaRayTelEMPhysics.hh" 49 #include "GammaRayTelEMstdPhysics.hh" 50 #include "GammaRayTelEMlowePhysics.hh" 49 51 #include "GammaRayTelMuonPhysics.hh" 50 52 #include "GammaRayTelHadronPhysics.hh" 51 53 #include "GammaRayTelIonPhysics.hh" 52 54 55 #include "G4PhysListFactory.hh" 56 #include "G4VPhysicsConstructor.hh" 57 #include "G4EmProcessOptions.hh" 58 59 60 #include "GammaRayTelPhysicsListMessenger.hh" 61 53 62 GammaRayTelPhysicsList::GammaRayTelPhysicsList(): G4VModularPhysicsList() 54 63 { … … 57 66 SetVerboseLevel(1); 58 67 68 pMessenger = new GammaRayTelPhysicsListMessenger(this); 69 70 // Particles 71 72 59 73 RegisterPhysics( new GammaRayTelParticles("particles") ); 60 74 75 G4cout << "PARTICLES DONE" << G4endl; 76 77 // EM physics 78 79 emPhysicsList = new GammaRayTelEMstdPhysics; 80 emName = G4String("Standard EM"); 81 82 61 83 // General Physics 84 62 85 RegisterPhysics( new GammaRayTelGeneralPhysics("general") ); 63 86 64 // EM Physics65 RegisterPhysics( new GammaRayTelEMPhysics("electromagnetic")); 87 G4cout << "GENERAL DONE" << G4endl; 88 66 89 67 90 // Muon Physics 91 68 92 RegisterPhysics( new GammaRayTelMuonPhysics("muon")); 93 94 95 G4cout << "MUON DONE" << G4endl; 69 96 70 97 // Hadron Physics 71 98 RegisterPhysics( new GammaRayTelHadronPhysics("hadron")); 72 99 100 G4cout << "HADRONS DONE" << G4endl; 101 73 102 // Ion Physics 74 103 RegisterPhysics( new GammaRayTelIonPhysics("ion")); 75 104 76 105 106 G4cout << "IONS DONE" << G4endl; 107 77 108 } 78 109 79 110 GammaRayTelPhysicsList::~GammaRayTelPhysicsList() 80 111 { 112 delete pMessenger; 113 delete emPhysicsList; 81 114 } 82 115 … … 94 127 // These values are used as the default production thresholds 95 128 // for the world volume. 129 130 G4cout << "CUT STD" << G4endl; 131 96 132 SetCutsWithDefault(); 97 133 98 134 135 } 136 137 void GammaRayTelPhysicsList::SetRegionCut(G4double cutvalue) 138 { 139 140 SetCutsWithDefault(); 141 142 if (verboseLevel >0){ 143 G4cout << "GammaRayTelPhysicsList::SetCuts: default cut length : " 144 << G4BestUnit(defaultCutValue,"Length") << G4endl; 145 } 146 147 G4cout << "CUTS NEW" << G4endl; 148 99 149 // Production thresholds for detector regions 100 150 101 151 G4String regName[] = {"Calorimeter","Tracker"}; 102 G4double cutValue[] = {1*mm, 0.1*mm}; 152 // G4double cutValue[] = {1*mm, 0.1*mm}; 153 G4double cutValue[] = {cutvalue, cutvalue/10.}; 154 155 103 156 104 157 for(G4int i=0;i<2;i++) … … 109 162 reg->SetProductionCuts(cuts); 110 163 } 111 } 112 113 114 115 164 165 } 166 167 168 ///////////////////////////////////////////////////////////////////////////// 169 170 void GammaRayTelPhysicsList::AddPhysicsList(const G4String& name) 171 { 172 173 if (verboseLevel>1) { 174 G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl; 175 } 176 177 if (name == "Standard EM") { 178 179 emName = name; 180 delete emPhysicsList; 181 emPhysicsList = new GammaRayTelEMstdPhysics(); 182 G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: EM Standard" << G4endl; 183 184 } else if (name == "LowE EM") { 185 emName = name; 186 delete emPhysicsList; 187 emPhysicsList = new GammaRayTelEMlowePhysics();; 188 G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: EM LowE" << G4endl; 189 } 190 else { 191 G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" 192 << " is not defined" 193 << G4endl; 194 } 195 196 197 G4cout << "REGISTRATION DONE " << G4endl; 198 199 RegisterPhysics(emPhysicsList); 200 201 } -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelPrimaryGeneratorAction.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: GammaRayTelPrimaryGeneratorAction.cc,v 1.1 0 2006/06/29 15:56:58 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02$27 // $Id: GammaRayTelPrimaryGeneratorAction.cc,v 1.11 2007/11/09 16:33:34 flongo Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file … … 69 69 G4int n_particle = 1; 70 70 71 if (sourceGun) 72 { 73 particleGun = new G4ParticleGun(n_particle); 71 particleGun = new G4ParticleGun(n_particle); 74 72 // default particle kinematic 75 76 G4ParticleTable* particleTable = G4ParticleTable::GetParticleTable();77 G4String particleName;78 G4ParticleDefinition* particle79 = particleTable->FindParticle(particleName="e-");80 particleGun->SetParticleDefinition(particle);81 particleGun->SetParticleMomentumDirection(G4ThreeVector(0.,0.,-1.));82 particleGun->SetParticleEnergy(30.*MeV);83 G4double position = 0.5*(GammaRayTelDetector->GetWorldSizeZ());84 particleGun->SetParticlePosition(G4ThreeVector(0.*cm,0.*cm,position));85 }86 else87 {88 particleSource = new G4GeneralParticleSource();89 }90 73 74 G4ParticleTable* particleTable = G4ParticleTable::GetParticleTable(); 75 G4String particleName; 76 G4ParticleDefinition* particle 77 = particleTable->FindParticle(particleName="e-"); 78 particleGun->SetParticleDefinition(particle); 79 particleGun->SetParticleMomentumDirection(G4ThreeVector(0.,0.,-1.)); 80 particleGun->SetParticleEnergy(30.*MeV); 81 G4double position = 0.5*(GammaRayTelDetector->GetWorldSizeZ()); 82 particleGun->SetParticlePosition(G4ThreeVector(0.*cm,0.*cm,position)); 83 particleSource = new G4GeneralParticleSource(); 84 91 85 } 92 86 -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelPrimaryGeneratorMessenger.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelPrimaryGeneratorMessenger.cc,v 1.8 2006/06/29 15:57:01 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelRunAction.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelRunAction.cc,v 1.11 2006/06/29 15:57:04 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelTrackerHit.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelTrackerHit.cc,v 1.4 2006/06/29 15:57:07 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // ------------------------------------------------------------ 30 30 // GEANT 4 class implementation file -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelTrackerROGeometry.cc
r807 r1230 26 26 // 27 27 // $Id: GammaRayTelTrackerROGeometry.cc,v 1.6 2006/06/29 15:57:10 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // -
trunk/examples/advanced/gammaray_telescope/src/GammaRayTelTrackerSD.cc
r807 r1230 25 25 // 26 26 // 27 // $Id: GammaRayTelTrackerSD.cc,v 1.9 2006/06/29 15:57:13 gunter Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02 $29 27 // ------------------------------------------------------------ 30 28 // GEANT 4 class implementation file … … 97 95 G4bool GammaRayTelTrackerSD::ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist) 98 96 { 99 97 100 98 G4double edep = aStep->GetTotalEnergyDeposit(); 101 99 if ((edep/keV == 0.)) return false; … … 103 101 G4int StripTotal = Detector->GetNbOfTKRStrips(); 104 102 G4int TileTotal = Detector->GetNbOfTKRTiles(); 105 103 106 104 // This TouchableHistory is used to obtain the physical volume 107 105 // of the hit … … 123 121 G4VPhysicalVolume* strip = 0; 124 122 strip = ROhist->GetVolume(); 125 G4String StripName = strip->GetName(); 126 StripNumber= strip->GetCopyNo(); 127 128 ROhist->MoveUpHistory(); 129 G4VPhysicalVolume* tile = ROhist->GetVolume(); 123 124 // if (strip){ 125 G4String StripName = strip->GetName(); 126 StripNumber= strip->GetCopyNo(); 127 // } 128 // ROhist->MoveUpHistory(); 129 G4VPhysicalVolume* tile = ROhist->GetVolume(1); 130 130 G4int TileNumber = tile->GetCopyNo(); 131 131 G4String TileName = tile->GetName();
Note: See TracChangeset
for help on using the changeset viewer.