// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: gogdml.cc,v 1.3 2002/08/19 07:28:52 radoone Exp $ // GEANT4 tag $Name: geant4-05-00 $ // // // -------------------------------------------------------------- // Comments // // -------------------------------------------------------------- #include "globals.hh" #include "G4RunManager.hh" #include "G4UImanager.hh" #include "gogdmlDetectorConstruction.hh" #include "gogdmlPhysicsList.hh" #include "gogdmlPrimaryGeneratorAction.hh" int main() { // Construct the default run manager G4RunManager* runManager = new G4RunManager; // set mandatory initialization classes runManager->SetUserInitialization(new gogdmlDetectorConstruction); runManager->SetUserInitialization(new gogdmlPhysicsList); // set mandatory user action class runManager->SetUserAction(new gogdmlPrimaryGeneratorAction); // Initialize G4 kernel runManager->Initialize(); // get the pointer to the UI manager and set verbosities G4UImanager* UI = G4UImanager::GetUIpointer(); UI->ApplyCommand("/run/verbose 2"); UI->ApplyCommand("/event/verbose 2"); UI->ApplyCommand("/tracking/verbose 2"); // start a run int numberOfEvent = 3; runManager->BeamOn(numberOfEvent); // job termination delete runManager; return 0; }