Ignore:
Timestamp:
Nov 5, 2010, 4:08:39 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/novice/N06/exampleN06.cc

    r1337 r1342  
    2525//
    2626//
    27 // $Id: exampleN06.cc,v 1.17 2010/06/06 04:08:35 perl Exp $
    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 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    4646#include "G4UImanager.hh"
    4747
    48 #include "ExN06DetectorConstruction.hh"
    4948#include "ExN06PhysicsList.hh"
    5049#include "ExN06PrimaryGeneratorAction.hh"
     50#include "ExN06DetectorConstruction.hh"
    5151#include "ExN06RunAction.hh"
    5252#include "ExN06StackingAction.hh"
    5353#include "ExN06SteppingVerbose.hh"
    54 
    55 #include "Randomize.hh"
    5654
    5755#ifdef G4VIS_USE
     
    7169  G4long myseed = 345354;
    7270  CLHEP::HepRandom::setTheSeed(myseed);
    73  
     71
    7472  // User Verbose output class
    7573  //
     
    8381  // UserInitialization classes - mandatory
    8482  //
     83  G4VUserPhysicsList* physics = new ExN06PhysicsList;
     84  runManager-> SetUserInitialization(physics);
     85  //
     86  G4VUserPrimaryGeneratorAction* gen_action = new ExN06PrimaryGeneratorAction;
     87  runManager->SetUserAction(gen_action);
     88  //
    8589  G4VUserDetectorConstruction* detector = new ExN06DetectorConstruction;
    8690  runManager-> SetUserInitialization(detector);
    87   //
    88   G4VUserPhysicsList* physics = new ExN06PhysicsList;
    89   runManager-> SetUserInitialization(physics);
    9091 
    9192#ifdef G4VIS_USE
     
    100101  G4UserRunAction* run_action = new ExN06RunAction;
    101102  runManager->SetUserAction(run_action);
    102   //
    103   G4VUserPrimaryGeneratorAction* gen_action = new ExN06PrimaryGeneratorAction;
    104   runManager->SetUserAction(gen_action);
    105103  //
    106104  G4UserStackingAction* stacking_action = new ExN06StackingAction;
Note: See TracChangeset for help on using the changeset viewer.