Geant4 11.1.1
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 ( G4int i = 0; i < (G4int)G4VBiasingOperator::fOperators.Size(); ++i )
204 G4VBiasingOperator::fOperators[i]->StartRun();
205 }
206
207 fPreviousState = requestedState;
208
209 return true;
210}
@ G4State_Idle
@ G4State_GeomClosed
int G4int
Definition: G4Types.hh:85

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