Changeset 1230 for trunk/examples/extended/optical/LXe
- Timestamp:
- Jan 8, 2010, 3:02:48 PM (14 years ago)
- Location:
- trunk/examples/extended/optical/LXe
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/optical/LXe/LXe.cc
r807 r1230 27 27 #include "G4UImanager.hh" 28 28 #include "G4String.hh" 29 #include "G4UItcsh.hh"30 #include "G4UIterminal.hh"31 29 32 30 #include "LXeDetectorConstruction.hh" … … 44 42 #ifdef G4VIS_USE 45 43 #include "G4VisExecutive.hh" 44 #endif 45 46 #ifdef G4UI_USE 47 #include "G4UIExecutive.hh" 46 48 #endif 47 49 … … 71 73 runManager->SetUserAction(new LXeSteppingAction(recorder)); 72 74 73 runManager->Initialize();75 // runManager->Initialize(); 74 76 75 77 // get the pointer to the UI manager and set verbosities 76 G4UImanager* UI = G4UImanager::GetUIpointer();78 G4UImanager* UImanager = G4UImanager::GetUIpointer(); 77 79 78 80 if(argc==1){ 79 G4UIsession* session=0; 80 #ifdef G4UI_USE_TCSH 81 session = new G4UIterminal(new G4UItcsh); 82 #else 83 session = new G4UIterminal(); 81 #ifdef G4UI_USE 82 G4UIExecutive* ui = new G4UIExecutive(argc, argv); 83 #ifdef G4VIS_USE 84 UImanager->ApplyCommand("/control/execute vis.mac"); 84 85 #endif 85 86 //execute vis.mac 87 UI->ApplyCommand("/control/execute vis.mac"); 88 89 session->SessionStart(); 90 delete session; 91 86 ui->SessionStart(); 87 delete ui; 88 #endif 92 89 } 93 90 else{ 94 91 G4String command = "/control/execute "; 95 92 G4String filename = argv[1]; 96 UI ->ApplyCommand(command+filename);93 UImanager->ApplyCommand(command+filename); 97 94 } 98 95 -
trunk/examples/extended/optical/LXe/include/LXeEMPhysics.hh
r807 r1230 35 35 #include "G4ComptonScattering.hh" 36 36 #include "G4GammaConversion.hh" 37 #include "G4 MultipleScattering.hh"37 #include "G4eMultipleScattering.hh" 38 38 #include "G4eIonisation.hh" 39 39 #include "G4eBremsstrahlung.hh" … … 63 63 64 64 // Electron physics 65 G4 MultipleScattering* theElectronMultipleScattering;65 G4eMultipleScattering* theElectronMultipleScattering; 66 66 G4eIonisation* theElectronIonisation; 67 67 G4eBremsstrahlung* theElectronBremsStrahlung; 68 68 69 69 //Positron physics 70 G4 MultipleScattering* thePositronMultipleScattering;70 G4eMultipleScattering* thePositronMultipleScattering; 71 71 G4eIonisation* thePositronIonisation; 72 72 G4eBremsstrahlung* thePositronBremsStrahlung; -
trunk/examples/extended/optical/LXe/include/LXeMuonPhysics.hh
r807 r1230 31 31 32 32 #include "G4VPhysicsConstructor.hh" 33 #include "G4Mu ltipleScattering.hh"33 #include "G4MuMultipleScattering.hh" 34 34 #include "G4MuBremsstrahlung.hh" 35 35 #include "G4MuPairProduction.hh" … … 58 58 // Muon physics 59 59 G4MuIonisation* fMuPlusIonisation; 60 G4Mu ltipleScattering*fMuPlusMultipleScattering;60 G4MuMultipleScattering* fMuPlusMultipleScattering; 61 61 G4MuBremsstrahlung* fMuPlusBremsstrahlung ; 62 62 G4MuPairProduction* fMuPlusPairProduction; 63 63 64 64 G4MuIonisation* fMuMinusIonisation; 65 G4Mu ltipleScattering*fMuMinusMultipleScattering;65 G4MuMultipleScattering* fMuMinusMultipleScattering; 66 66 G4MuBremsstrahlung* fMuMinusBremsstrahlung ; 67 67 G4MuPairProduction* fMuMinusPairProduction; -
trunk/examples/extended/optical/LXe/include/LXePrimaryGeneratorAction.hh
r807 r1230 28 28 #define LXePrimaryGeneratorAction_h 1 29 29 30 #include "G4GeneralParticleSource.hh"31 30 #include "G4VUserPrimaryGeneratorAction.hh" 32 31 -
trunk/examples/extended/optical/LXe/src/LXeDetectorConstruction.cc
r807 r1230 140 140 LXe_mt->AddConstProperty("YIELDRATIO",1.0); 141 141 LXe->SetMaterialPropertiesTable(LXe_mt); 142 143 // Set the Birks Constant for the LXe scintillator 144 145 LXe->GetIonisation()->SetBirksConstant(0.126*mm/MeV); 142 146 143 147 G4double Glass_RIND[LXe_NUMENTRIES]={1.49,1.49,1.49}; … … 171 175 Pstyrene->SetMaterialPropertiesTable(MPTPStyrene); 172 176 177 // Set the Birks Constant for the Polystyrene scintillator 178 179 Pstyrene->GetIonisation()->SetBirksConstant(0.126*mm/MeV); 180 173 181 G4double RefractiveIndexFiber[WLS_NUMENTRIES]={ 1.60, 1.60, 1.60, 1.60}; 174 182 G4double AbsFiber[WLS_NUMENTRIES]={9.00*m,9.00*m,0.1*mm,0.1*mm}; … … 343 351 G4LogicalSkinSurface::CleanSurfaceTable(); 344 352 G4LogicalBorderSurface::CleanSurfaceTable(); 353 G4SurfaceProperty::CleanSurfacePropertyTable(); 345 354 346 355 //define new one -
trunk/examples/extended/optical/LXe/src/LXeEMPhysics.cc
r807 r1230 74 74 75 75 // Electron physics 76 theElectronMultipleScattering = new G4 MultipleScattering();76 theElectronMultipleScattering = new G4eMultipleScattering(); 77 77 theElectronIonisation = new G4eIonisation(); 78 78 theElectronBremsStrahlung = new G4eBremsstrahlung(); 79 79 80 80 //Positron physics 81 thePositronMultipleScattering = new G4 MultipleScattering();81 thePositronMultipleScattering = new G4eMultipleScattering(); 82 82 thePositronIonisation = new G4eIonisation(); 83 83 thePositronBremsStrahlung = new G4eBremsstrahlung(); -
trunk/examples/extended/optical/LXe/src/LXeMainVolume.cc
r807 r1230 266 266 //**Photocathode surface properties 267 267 G4double photocath_EFF[num]={1.,1.}; //Enables 'detection' of photons 268 G4double photocath_REFL[num]={0.,0.}; 268 G4double photocath_ReR[num]={1.92,1.92}; 269 G4double photocath_ImR[num]={1.69,1.69}; 269 270 G4MaterialPropertiesTable* photocath_mt = new G4MaterialPropertiesTable(); 270 271 photocath_mt->AddProperty("EFFICIENCY",Ephoton,photocath_EFF,num); 271 photocath_mt->AddProperty("REFLECTIVITY",Ephoton,photocath_REFL,num); 272 photocath_mt->AddProperty("REALRINDEX",Ephoton,photocath_ReR,num); 273 photocath_mt->AddProperty("IMAGINARYRINDEX",Ephoton,photocath_ImR,num); 272 274 G4OpticalSurface* photocath_opsurf= 273 275 new G4OpticalSurface("photocath_opsurf",glisur,polished, -
trunk/examples/extended/optical/LXe/src/LXeMuonPhysics.cc
r807 r1230 63 63 { 64 64 fMuPlusIonisation = new G4MuIonisation(); 65 fMuPlusMultipleScattering = new G4Mu ltipleScattering();65 fMuPlusMultipleScattering = new G4MuMultipleScattering(); 66 66 fMuPlusBremsstrahlung=new G4MuBremsstrahlung(); 67 67 fMuPlusPairProduction= new G4MuPairProduction(); 68 68 69 69 fMuMinusIonisation = new G4MuIonisation(); 70 fMuMinusMultipleScattering = new G4Mu ltipleScattering;70 fMuMinusMultipleScattering = new G4MuMultipleScattering; 71 71 fMuMinusBremsstrahlung = new G4MuBremsstrahlung(); 72 72 fMuMinusPairProduction = new G4MuPairProduction(); -
trunk/examples/extended/optical/LXe/src/LXePMTSD.cc
r807 r1230 65 65 66 66 //_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 67 G4bool LXePMTSD::ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist){68 return ProcessHits_constStep(aStep,ROhist);67 G4bool LXePMTSD::ProcessHits(G4Step* ,G4TouchableHistory* ){ 68 return false; 69 69 } 70 70 … … 120 120 } 121 121 122 123 122 return true; 124 123 } -
trunk/examples/extended/optical/LXe/src/LXePhysicsList.cc
r807 r1230 26 26 #include "LXePhysicsList.hh" 27 27 28 #include "globals.hh"29 #include "G4ParticleDefinition.hh"30 #include "G4ProcessManager.hh"31 #include "G4ProcessVector.hh"32 #include "G4ParticleTypes.hh"33 #include "G4ParticleTable.hh"34 35 #include "G4Material.hh"36 #include "G4MaterialTable.hh"37 #include "G4ios.hh"38 #include <iomanip>39 40 28 #include "LXeGeneralPhysics.hh" 41 29 #include "LXeEMPhysics.hh" 42 30 #include "LXeMuonPhysics.hh" 43 #include "LXeOpticalPhysics.hh" 31 32 #include "G4OpticalPhysics.hh" 44 33 45 34 LXePhysicsList::LXePhysicsList(): G4VModularPhysicsList() … … 47 36 // default cut value (1.0mm) 48 37 defaultCutValue = 1.0*mm; 49 // SetVerboseLevel(1);50 38 51 39 // General Physics … … 56 44 57 45 // Muon Physics 58 RegisterPhysics( 46 RegisterPhysics( new LXeMuonPhysics("muon")); 59 47 60 // Optical Physics 61 RegisterPhysics( new LXeOpticalPhysics("optical")); 48 // Optical Physics 49 G4OpticalPhysics* opticalPhysics = new G4OpticalPhysics(); 50 RegisterPhysics( opticalPhysics ); 51 52 opticalPhysics->SetWLSTimeProfile("delta"); 53 54 opticalPhysics->SetScintillationYieldFactor(1.0); 55 opticalPhysics->SetScintillationExcitationRatio(0.0); 56 57 opticalPhysics->SetMaxNumPhotonsPerStep(100); 58 opticalPhysics->SetMaxBetaChangePerStep(10.0); 59 60 opticalPhysics->SetTrackSecondariesFirst(true); 62 61 63 62 }
Note: See TracChangeset
for help on using the changeset viewer.