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/extended/electromagnetic/TestEm7/TestEm7.cc

    r1337 r1342  
    2424// ********************************************************************
    2525//
    26 // $Id: TestEm7.cc,v 1.9 2010/05/21 18:00:26 maire 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 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    4343#include "SteppingAction.hh"
    4444#include "SteppingVerbose.hh"
     45#include "HistoManager.hh"
    4546
    4647#ifdef G4VIS_USE
     
    6667
    6768  //set mandatory initialization classes
    68   DetectorConstruction* det;
    69   PhysicsList* phys;
    70   PrimaryGeneratorAction* kin;
    71   runManager->SetUserInitialization(det  = new DetectorConstruction);
    72   runManager->SetUserInitialization(phys = new PhysicsList);
    73   runManager->SetUserAction(kin = new PrimaryGeneratorAction(det));
     69  //
     70  DetectorConstruction*   det  = new DetectorConstruction();
     71  PhysicsList*            phys = new PhysicsList();
     72 
     73  runManager->SetUserInitialization(det);
     74  runManager->SetUserInitialization(phys);
    7475 
    7576  //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);
    7784 
    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);
    8290
    8391  //get the pointer to the User Interface manager
Note: See TracChangeset for help on using the changeset viewer.