Geant4 Cross Reference |
>> 1 // This code implementation is the intellectual property of >> 2 // the GEANT4 collaboration. 1 // 3 // 2 // ******************************************* << 4 // By copying, distributing or modifying the Program (or any work 3 // * License and Disclaimer << 5 // based on the Program) you indicate your acceptance of this statement, 4 // * << 6 // and all its terms. 5 // * The Geant4 software is copyright of th << 6 // * the Geant4 Collaboration. It is provided << 7 // * conditions of the Geant4 Software License << 8 // * LICENSE and available at http://cern.ch/ << 9 // * include a list of copyright holders. << 10 // * << 11 // * Neither the authors of this software syst << 12 // * institutes,nor the agencies providing fin << 13 // * work make any representation or warran << 14 // * regarding this software system or assum << 15 // * use. Please see the license in the file << 16 // * for the full disclaimer and the limitatio << 17 // * << 18 // * This code implementation is the result << 19 // * technical work of the GEANT4 collaboratio << 20 // * By using, copying, modifying or distri << 21 // * any work based on the software) you ag << 22 // * use in resulting scientific publicati << 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* << 25 // 7 // 26 // G4UserRunAction implementation << 8 // $Id: G4UserRunAction.cc,v 1.3 1999/12/15 14:53:54 gunter Exp $ >> 9 // GEANT4 tag $Name: geant4-03-01 $ 27 // 10 // 28 // Original author: M.Asai, 1998 << 29 // ------------------------------------------- << 30 11 31 #include "G4UserRunAction.hh" 12 #include "G4UserRunAction.hh" 32 13 33 #include "G4ParticleTable.hh" << 34 #include "globals.hh" << 35 << 36 // ------------------------------------------- << 37 G4UserRunAction::G4UserRunAction() 14 G4UserRunAction::G4UserRunAction() 38 { << 15 {;} 39 if (!(G4ParticleTable::GetParticleTable()->G << 16 40 G4String msg; << 17 G4UserRunAction::~G4UserRunAction() 41 msg = << 18 {;} 42 " You are instantiating G4UserRunAction << 19 43 "G4VUserPhysicsList is\n"; << 20 void G4UserRunAction::BeginOfRunAction(const G4Run* aRun) 44 msg += "instantiated and assigned to G4Run << 21 {;} 45 msg += " Such an instantiation is prohibit << 22 46 msg += "please make sure that your main() << 23 void G4UserRunAction::EndOfRunAction(const G4Run* aRun) 47 msg += "set it to G4RunManager before inst << 24 {;} 48 msg += "such as G4UserRunAction."; << 25 49 G4Exception("G4UserRunAction::G4UserRunAct << 50 } << 51 } << 52 26