Geant4 11.3.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 ()=default
 
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 void NotifyDeletion (const G4Event *)
 
virtual void NotifyDeletion (const G4Run *)
 

Detailed Description

Definition at line 342 of file G4VBiasingOperator.hh.

Constructor & Destructor Documentation

◆ G4BiasingOperatorStateNotifier()

G4BiasingOperatorStateNotifier::G4BiasingOperatorStateNotifier ( )

Definition at line 183 of file G4VBiasingOperator.cc.

185{
186 fPreviousState = G4State_PreInit;
187}
@ G4State_PreInit
G4VStateDependent(G4bool bottom=false)

◆ ~G4BiasingOperatorStateNotifier()

G4BiasingOperatorStateNotifier::~G4BiasingOperatorStateNotifier ( )
default

Member Function Documentation

◆ Notify()

G4bool G4BiasingOperatorStateNotifier::Notify ( G4ApplicationState requestedState)
virtual

Implements G4VStateDependent.

Definition at line 189 of file G4VBiasingOperator.cc.

191{
192 if ( ( fPreviousState == G4State_Idle )
193 && ( requestedState == G4State_GeomClosed ) )
194 {
195 for ( auto i = 0; i < (G4int)G4VBiasingOperator::fOperators.Size(); ++i )
196 {
197 G4VBiasingOperator::fOperators[i]->StartRun();
198 }
199 }
200 fPreviousState = requestedState;
201
202 return true;
203}
@ G4State_Idle
@ G4State_GeomClosed
int G4int
Definition G4Types.hh:85
size_type Size()
Definition G4Cache.hh:166

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