- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm7/TestEm7.cc
r1337 r1342 24 24 // ******************************************************************** 25 25 // 26 // $Id: TestEm7.cc,v 1. 9 2010/05/21 18:00:26maire Exp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: TestEm7.cc,v 1.10 2010/09/17 18:45:43 maire Exp $ 27 // GEANT4 tag $Name: examples-V09-03-09 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 43 43 #include "SteppingAction.hh" 44 44 #include "SteppingVerbose.hh" 45 #include "HistoManager.hh" 45 46 46 47 #ifdef G4VIS_USE … … 66 67 67 68 //set mandatory initialization classes 68 DetectorConstruction* det;69 PhysicsList* phys;70 P rimaryGeneratorAction* kin;71 runManager->SetUserInitialization(det = new DetectorConstruction);72 runManager->SetUserInitialization( phys = new PhysicsList);73 runManager->SetUser Action(kin = new PrimaryGeneratorAction(det));69 // 70 DetectorConstruction* det = new DetectorConstruction(); 71 PhysicsList* phys = new PhysicsList(); 72 73 runManager->SetUserInitialization(det); 74 runManager->SetUserInitialization(phys); 74 75 75 76 //set user action classes 76 RunAction* run; 77 // 78 HistoManager* histo = new HistoManager(); 79 PrimaryGeneratorAction* kin = new PrimaryGeneratorAction(det); 80 RunAction* run = new RunAction(det,phys,histo,kin); 81 EventAction* event = new EventAction(); 82 TrackingAction* track = new TrackingAction(det,histo,run); 83 SteppingAction* step = new SteppingAction(det,histo,run); 77 84 78 runManager->SetUserAction(run = new RunAction(det,phys,kin)); 79 runManager->SetUserAction(new EventAction); 80 runManager->SetUserAction(new TrackingAction(run)); 81 runManager->SetUserAction(new SteppingAction(det,run)); 85 runManager->SetUserAction(kin); 86 runManager->SetUserAction(run); 87 runManager->SetUserAction(event); 88 runManager->SetUserAction(track); 89 runManager->SetUserAction(step); 82 90 83 91 //get the pointer to the User Interface manager
Note: See TracChangeset
for help on using the changeset viewer.