Changeset 1342 for trunk/examples/novice/N06/exampleN06.cc
- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N06/exampleN06.cc
r1337 r1342 25 25 // 26 26 // 27 // $Id: exampleN06.cc,v 1.1 7 2010/06/06 04:08:35 perlExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: exampleN06.cc,v 1.18 2010/10/23 19:33:55 gum Exp $ 28 // GEANT4 tag $Name: examples-V09-03-09 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 46 46 #include "G4UImanager.hh" 47 47 48 #include "ExN06DetectorConstruction.hh"49 48 #include "ExN06PhysicsList.hh" 50 49 #include "ExN06PrimaryGeneratorAction.hh" 50 #include "ExN06DetectorConstruction.hh" 51 51 #include "ExN06RunAction.hh" 52 52 #include "ExN06StackingAction.hh" 53 53 #include "ExN06SteppingVerbose.hh" 54 55 #include "Randomize.hh"56 54 57 55 #ifdef G4VIS_USE … … 71 69 G4long myseed = 345354; 72 70 CLHEP::HepRandom::setTheSeed(myseed); 73 71 74 72 // User Verbose output class 75 73 // … … 83 81 // UserInitialization classes - mandatory 84 82 // 83 G4VUserPhysicsList* physics = new ExN06PhysicsList; 84 runManager-> SetUserInitialization(physics); 85 // 86 G4VUserPrimaryGeneratorAction* gen_action = new ExN06PrimaryGeneratorAction; 87 runManager->SetUserAction(gen_action); 88 // 85 89 G4VUserDetectorConstruction* detector = new ExN06DetectorConstruction; 86 90 runManager-> SetUserInitialization(detector); 87 //88 G4VUserPhysicsList* physics = new ExN06PhysicsList;89 runManager-> SetUserInitialization(physics);90 91 91 92 #ifdef G4VIS_USE … … 100 101 G4UserRunAction* run_action = new ExN06RunAction; 101 102 runManager->SetUserAction(run_action); 102 //103 G4VUserPrimaryGeneratorAction* gen_action = new ExN06PrimaryGeneratorAction;104 runManager->SetUserAction(gen_action);105 103 // 106 104 G4UserStackingAction* stacking_action = new ExN06StackingAction;
Note: See TracChangeset
for help on using the changeset viewer.