Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BiasingOperatorStateNotifier Class Reference

#include <G4VBiasingOperator.hh>

+ Inheritance diagram for G4BiasingOperatorStateNotifier:

Public Member Functions

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

Detailed Description

Definition at line 354 of file G4VBiasingOperator.hh.

Constructor & Destructor Documentation

◆ G4BiasingOperatorStateNotifier()

G4BiasingOperatorStateNotifier::G4BiasingOperatorStateNotifier ( )

Definition at line 190 of file G4VBiasingOperator.cc.

192{
193 fPreviousState = G4State_PreInit;
194}
@ G4State_PreInit

◆ ~G4BiasingOperatorStateNotifier()

G4BiasingOperatorStateNotifier::~G4BiasingOperatorStateNotifier ( )

Definition at line 196 of file G4VBiasingOperator.cc.

197{}

Member Function Documentation

◆ Notify()

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}
@ G4State_Idle
@ G4State_GeomClosed
size_type Size()
Definition: G4Cache.hh:166

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