ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ApplicationState.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4ApplicationState.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //
28 
29 #ifndef G4APPLICATIONSTATE_H
30 #define G4APPLICATIONSTATE_H 1
31 
32 // Class Description:
33 //
34 // Specifies the state of the G4 application
35 //
36 // States:
37 // G4State_PreInit
38 // At the very begining of the Application. G4StateManager starts
39 // with this state. G4Initializer changes this state to Init when
40 // G4Initializer::Initialize() method starts. At the moment of
41 // the state change of PreInit->Init, no material, geometrical,
42 // particle or physics process has been initialized.
43 // G4State_Init
44 // During the G4Initializer::Initialize() method. G4Initializer
45 // changes this state to Idle when all initialization procedures
46 // are successfully Done.
47 // G4State_Idle
48 // Ready to start "BeamOn". G4RunManager changes this state to
49 // GeomClosed when G4RunManager::BeamOn() method starts and
50 // G4GeometryManager::CloseGeometry() is Done. At the end of
51 // BeamOn() method, G4RunManager will reset the application state
52 // to Idle after G4GeometryManager::OpenGeometry() is Done.
53 // G4State_GeomClosed
54 // G4 is in this state between G4GeometryManager::CloseGeometry()
55 // and G4GeometryManager::OpenGeometry(), but no event is in
56 // progress. At the begining of each event (construction of a
57 // G4Event object and primary particle generation), G4RunManager
58 // changes this state to EventProc and resets to GeomClosed state
59 // when G4EventManager::ProcessOneEvent() is over.
60 // G4State_EventProc
61 // Processing an event.
62 // G4State_Quit
63 // G4 is in this state when the destructor of G4RunManager is invoked.
64 // G4State_Abort
65 // G4 is in this state when G4Exception is invoked.
66 //
67 //
68 // PreInit
69 // |
70 // v
71 // Init
72 // |
73 // v
74 // Idle ------> Quit
75 // |^
76 // v|
77 // GeomClosed (at each run)
78 // |^
79 // v|
80 // EventProc (at each event)
81 //
82 
86 
87 #endif
88