source: trunk/source/global/management/include/G4ErrorPropagatorData.hh @ 1102

Last change on this file since 1102 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 3.5 KB
Line 
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// $Id: G4ErrorPropagatorData.hh,v 1.3 2007/06/08 10:33:47 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31// --------------------------------------------------------------------
32//      GEANT 4 class header file
33// --------------------------------------------------------------------
34//
35// Class Description:
36//
37//   Utility class to provide access to mode, state, target
38//   and manager verbosity for the error propagation classes.
39
40// History:
41// - Created. P.Arce, 2004.
42// --------------------------------------------------------------------
43
44#ifndef G4ErrorPropagatorData_HH
45#define G4ErrorPropagatorData_HH
46
47#include "globals.hh"
48
49enum G4ErrorMode  { G4ErrorMode_PropForwards = 1,
50                    G4ErrorMode_PropBackwards,
51                    G4ErrorMode_PropTest };
52
53enum G4ErrorState { G4ErrorState_PreInit = 1,
54                    G4ErrorState_Init,
55                    G4ErrorState_Propagating,
56                    G4ErrorState_TargetCloserThanBoundary,
57                    G4ErrorState_StoppedAtTarget };
58class G4ErrorTarget;
59
60class G4ErrorPropagatorData 
61{
62
63public:  // with description
64
65  static G4ErrorPropagatorData* GetErrorPropagatorData();
66    // Singleton instance
67
68  // Get and Set methods
69  G4ErrorMode GetMode() const;
70  void SetMode( G4ErrorMode mode );
71
72  G4ErrorState GetState() const;
73  void SetState( G4ErrorState sta );
74
75  const G4ErrorTarget* GetTarget( G4bool mustExist = 0) const;
76  void SetTarget( const G4ErrorTarget* target );
77
78  static G4int verbose();
79  static void SetVerbose( G4int ver );
80
81
82private:
83
84  G4ErrorPropagatorData();
85  ~G4ErrorPropagatorData();
86    // constructor and destructor are private
87
88private:
89
90  static G4ErrorPropagatorData* theErrorPropagatorData;
91
92  G4ErrorMode theMode;
93
94  G4ErrorState theState;
95
96  G4ErrorTarget* theTarget;
97
98  static G4int theVerbosity;
99
100};
101
102#include "G4ErrorPropagatorData.icc"
103
104#endif
Note: See TracBrowser for help on using the repository browser.