38 fOccurenceBiasingOperation ( nullptr ),
39 fFinalStateBiasingOperation ( nullptr ),
40 fNonPhysicsBiasingOperation ( nullptr ),
41 fPreviousProposedOccurenceBiasingOperation ( nullptr ),
42 fPreviousProposedFinalStateBiasingOperation( nullptr ),
43 fPreviousProposedNonPhysicsBiasingOperation( nullptr ),
44 fPreviousAppliedOccurenceBiasingOperation ( nullptr ),
45 fPreviousAppliedFinalStateBiasingOperation ( nullptr ),
46 fPreviousAppliedNonPhysicsBiasingOperation ( nullptr ),
47 fPreviousBiasingAppliedCase (
BAC_None )
64 else if ( (*it).second !=
this )
67 ed <<
"Biasing operator `" <<
GetName()
68 <<
"' can not be attached to Logical volume `"
69 << logical->
GetName() <<
"' which is already used by another operator !" <<
G4endl;
83 else return (*it).second;
113 switch ( biasingCase )
124 G4Exception(
"G4VBiasingOperator::ReportOperationApplied(...)",
127 "Internal logic error, please report !");
130 G4Exception(
"G4VBiasingOperator::ReportOperationApplied(...)",
133 "Internal logic error, please report !");
135 OperationApplied( callingProcess, biasingCase, operationApplied, particleChangeProduced );
141 G4double weightForOccurenceInteraction,
148 OperationApplied( callingProcess, biasingCase, occurenceOperationApplied, weightForOccurenceInteraction, finalStateOperationApplied, particleChangeProduced );
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4BiasingOperatorStateNotifier()
G4ApplicationState fPreviousState
~G4BiasingOperatorStateNotifier()
G4bool Notify(G4ApplicationState requestedState)
void Put(const value_type &val) const
const G4String & GetName() const
iterator Find(const key_type &k)
virtual void ExitBiasing(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
static G4MapCache< const G4LogicalVolume *, G4VBiasingOperator * > fLogicalToSetupMap
friend class G4BiasingOperatorStateNotifier
G4VBiasingOperation * GetProposedOccurenceBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
const G4String GetName() const
virtual void OperationApplied(const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
virtual ~G4VBiasingOperator()
virtual G4VBiasingOperation * ProposeFinalStateBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
const G4VBiasingOperation * fPreviousProposedNonPhysicsBiasingOperation
static G4VectorCache< G4VBiasingOperator * > fOperators
G4VBiasingOperator(G4String name)
G4VBiasingOperation * fNonPhysicsBiasingOperation
virtual G4VBiasingOperation * ProposeNonPhysicsBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
G4BiasingAppliedCase fPreviousBiasingAppliedCase
void AttachTo(const G4LogicalVolume *)
G4VBiasingOperation * GetProposedNonPhysicsBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
static G4VBiasingOperator * GetBiasingOperator(const G4LogicalVolume *)
void ExitingBiasing(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
G4VBiasingOperation * fOccurenceBiasingOperation
G4VBiasingOperation * fFinalStateBiasingOperation
const G4VBiasingOperation * fPreviousProposedOccurenceBiasingOperation
const G4VBiasingOperation * fPreviousAppliedOccurenceBiasingOperation
const G4VBiasingOperation * fPreviousAppliedNonPhysicsBiasingOperation
virtual G4VBiasingOperation * ProposeOccurenceBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
void ReportOperationApplied(const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
const G4VBiasingOperation * fPreviousProposedFinalStateBiasingOperation
G4VBiasingOperation * GetProposedFinalStateBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
const G4VBiasingOperation * fPreviousAppliedFinalStateBiasingOperation
static G4Cache< G4BiasingOperatorStateNotifier * > fStateNotifier
void Push_back(const value_type &val)
const char * name(G4int ptype)