Changeset 1342 for trunk/examples/novice/N03/exampleN03.cc
- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/exampleN03.cc
r1341 r1342 25 25 // 26 26 // 27 <<<<<<< exampleN03.cc 27 28 // $Id: exampleN03.cc,v 1.37 2009/10/30 15:06:01 allison Exp $ 28 29 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 30 ======= 31 // $Id: exampleN03.cc,v 1.38 2010/10/18 15:56:17 maire Exp $ 32 // GEANT4 tag $Name: $ 33 >>>>>>> 1.38 29 34 // 30 35 // … … 37 42 #include "Randomize.hh" 38 43 39 #include " ExN03DetectorConstruction.hh"40 #include " ExN03PhysicsList.hh"41 #include " ExN03PrimaryGeneratorAction.hh"42 #include " ExN03RunAction.hh"43 #include "E xN03EventAction.hh"44 #include " ExN03SteppingAction.hh"45 #include " ExN03SteppingVerbose.hh"44 #include "DetectorConstruction.hh" 45 #include "PhysicsList.hh" 46 #include "PrimaryGeneratorAction.hh" 47 #include "RunAction.hh" 48 #include "EventAction.hh" 49 #include "SteppingAction.hh" 50 #include "SteppingVerbose.hh" 46 51 47 52 #ifdef G4VIS_USE … … 67 72 // User Verbose output class 68 73 // 69 G4VSteppingVerbose::SetInstance(new ExN03SteppingVerbose);74 G4VSteppingVerbose::SetInstance(new SteppingVerbose); 70 75 71 76 // Construct the default run manager … … 75 80 // Set mandatory initialization classes 76 81 // 77 ExN03DetectorConstruction* detector = new ExN03DetectorConstruction;82 DetectorConstruction* detector = new DetectorConstruction; 78 83 runManager->SetUserInitialization(detector); 79 84 // 80 G4VUserPhysicsList* physics = new ExN03PhysicsList;85 PhysicsList* physics = new PhysicsList; 81 86 runManager->SetUserInitialization(physics); 82 87 83 88 // Set user action classes 84 89 // 85 G4VUserPrimaryGeneratorAction* gen_action =86 new ExN03PrimaryGeneratorAction(detector);90 PrimaryGeneratorAction* gen_action = 91 new PrimaryGeneratorAction(detector); 87 92 runManager->SetUserAction(gen_action); 88 93 // 89 ExN03RunAction* run_action = new ExN03RunAction;94 RunAction* run_action = new RunAction; 90 95 runManager->SetUserAction(run_action); 91 96 // 92 E xN03EventAction* event_action = new ExN03EventAction(run_action);97 EventAction* event_action = new EventAction(run_action); 93 98 runManager->SetUserAction(event_action); 94 99 // 95 G4UserSteppingAction* stepping_action =96 new ExN03SteppingAction(detector, event_action);100 SteppingAction* stepping_action = 101 new SteppingAction(detector, event_action); 97 102 runManager->SetUserAction(stepping_action); 98 103
Note: See TracChangeset
for help on using the changeset viewer.