Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4BiasingOperatorStateNotifier Class Reference

#include <G4VBiasingOperator.hh>

Inheritance diagram for G4BiasingOperatorStateNotifier:
Collaboration diagram for G4BiasingOperatorStateNotifier:

Public Member Functions

 G4BiasingOperatorStateNotifier ()
 
 ~G4BiasingOperatorStateNotifier ()
 
G4bool Notify (G4ApplicationState requestedState)
 
- Public Member Functions inherited from G4VStateDependent
 G4VStateDependent (G4bool bottom=false)
 
virtual ~G4VStateDependent ()
 
G4int operator== (const G4VStateDependent &right) const
 
G4int operator!= (const G4VStateDependent &right) const
 

Detailed Description

Definition at line 355 of file G4VBiasingOperator.hh.

Constructor & Destructor Documentation

G4BiasingOperatorStateNotifier::G4BiasingOperatorStateNotifier ( )

Definition at line 190 of file G4VBiasingOperator.cc.

192 {
193  fPreviousState = G4State_PreInit;
194 }
G4VStateDependent(G4bool bottom=false)
G4BiasingOperatorStateNotifier::~G4BiasingOperatorStateNotifier ( )

Definition at line 196 of file G4VBiasingOperator.cc.

197 {}

Member Function Documentation

G4bool G4BiasingOperatorStateNotifier::Notify ( G4ApplicationState  requestedState)
virtual

Implements G4VStateDependent.

Definition at line 199 of file G4VBiasingOperator.cc.

200 {
201  if ( ( fPreviousState == G4State_Idle ) && ( requestedState == G4State_GeomClosed ) )
202  {
203  for ( size_t i = 0 ; i < G4VBiasingOperator::fOperators.Size() ; i++ ) G4VBiasingOperator::fOperators[i]->StartRun();
204  }
205 
206  fPreviousState = requestedState;
207 
208  return true;
209 }
size_type Size()
Definition: G4Cache.hh:159

Here is the call graph for this function:


The documentation for this class was generated from the following files: