#include <G4VBiasingOperator.hh>
|
| G4VBiasingOperator (G4String name) |
|
virtual | ~G4VBiasingOperator () |
|
virtual void | Configure () |
|
virtual void | ConfigureForWorker () |
|
virtual void | StartRun () |
|
virtual void | StartTracking (const G4Track *) |
|
virtual void | EndTracking () |
|
const G4String | GetName () const |
|
void | AttachTo (const G4LogicalVolume *) |
|
G4BiasingAppliedCase | GetPreviousBiasingAppliedCase () const |
|
G4VBiasingOperation * | GetProposedOccurenceBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
G4VBiasingOperation * | GetProposedFinalStateBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
G4VBiasingOperation * | GetProposedNonPhysicsBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
void | ExitingBiasing (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
void | ReportOperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced) |
|
void | ReportOperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *occurenceOperationApplied, G4double weightForOccurenceInteraction, G4VBiasingOperation *finalStateOperationApplied, const G4VParticleChange *particleChangeProduced) |
|
const G4VBiasingOperation * | GetPreviousNonPhysicsAppliedOperation () |
|
|
virtual G4VBiasingOperation * | ProposeNonPhysicsBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0 |
|
virtual G4VBiasingOperation * | ProposeOccurenceBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0 |
|
virtual G4VBiasingOperation * | ProposeFinalStateBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0 |
|
virtual void | OperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced) |
|
virtual void | OperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *occurenceOperationApplied, G4double weightForOccurenceInteraction, G4VBiasingOperation *finalStateOperationApplied, const G4VParticleChange *particleChangeProduced) |
|
virtual void | ExitBiasing (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
Definition at line 181 of file G4VBiasingOperator.hh.
G4VBiasingOperator::G4VBiasingOperator |
( |
G4String |
name | ) |
|
Definition at line 36 of file G4VBiasingOperator.cc.
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 )
void Push_back(const value_type &val)
void Put(const value_type &val) const
G4VBiasingOperator::~G4VBiasingOperator |
( |
| ) |
|
|
virtual |
Definition at line 59 of file G4VBiasingOperator.cc.
62 it = fLogicalToSetupMap.
Find(logical);
63 if ( it == fLogicalToSetupMap.
End() ) fLogicalToSetupMap[logical] =
this;
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 an other operator !" <<
G4endl;
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
iterator Find(const key_type &k)
const G4String & GetName() const
const G4String GetName() const
virtual void G4VBiasingOperator::Configure |
( |
| ) |
|
|
inlinevirtual |
virtual void G4VBiasingOperator::ConfigureForWorker |
( |
| ) |
|
|
inlinevirtual |
virtual void G4VBiasingOperator::EndTracking |
( |
| ) |
|
|
inlinevirtual |
Definition at line 152 of file G4VBiasingOperator.cc.
157 fOccurenceBiasingOperation = nullptr ;
158 fFinalStateBiasingOperation = nullptr ;
159 fNonPhysicsBiasingOperation = nullptr ;
160 fPreviousProposedOccurenceBiasingOperation = nullptr ;
161 fPreviousProposedFinalStateBiasingOperation = nullptr ;
162 fPreviousProposedNonPhysicsBiasingOperation = nullptr ;
163 fPreviousAppliedOccurenceBiasingOperation = nullptr ;
164 fPreviousAppliedFinalStateBiasingOperation = nullptr ;
165 fPreviousAppliedNonPhysicsBiasingOperation = nullptr ;
166 fPreviousBiasingAppliedCase =
BAC_None ;
virtual void ExitBiasing(const G4Track *track, const G4BiasingProcessInterface *callingProcess)
Definition at line 78 of file G4VBiasingOperator.cc.
81 it = fLogicalToSetupMap.
Find(logical);
82 if ( it == fLogicalToSetupMap.
End() )
return nullptr;
83 else return (*it).second;
iterator Find(const key_type &k)
static const std::vector< G4VBiasingOperator* >& G4VBiasingOperator::GetBiasingOperators |
( |
| ) |
|
|
inlinestatic |
Definition at line 92 of file G4VBiasingOperator.cc.
95 return fFinalStateBiasingOperation;
virtual G4VBiasingOperation * ProposeFinalStateBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
Definition at line 98 of file G4VBiasingOperator.cc.
101 return fNonPhysicsBiasingOperation;
virtual G4VBiasingOperation * ProposeNonPhysicsBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
Definition at line 86 of file G4VBiasingOperator.cc.
89 return fOccurenceBiasingOperation;
virtual G4VBiasingOperation * ProposeOccurenceBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess)=0
Definition at line 104 of file G4VBiasingOperator.cc.
109 fPreviousBiasingAppliedCase = biasingCase;
110 fPreviousAppliedOccurenceBiasingOperation =
nullptr;
111 fPreviousAppliedFinalStateBiasingOperation =
nullptr;
112 fPreviousAppliedNonPhysicsBiasingOperation =
nullptr;
113 switch ( biasingCase )
118 fPreviousAppliedNonPhysicsBiasingOperation = operationApplied ;
121 fPreviousAppliedFinalStateBiasingOperation = operationApplied;
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 );
virtual void OperationApplied(const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 138 of file G4VBiasingOperator.cc.
145 fPreviousBiasingAppliedCase = biasingCase;
146 fPreviousAppliedOccurenceBiasingOperation = occurenceOperationApplied;
147 fPreviousAppliedFinalStateBiasingOperation = finalStateOperationApplied;
148 OperationApplied( callingProcess, biasingCase, occurenceOperationApplied, weightForOccurenceInteraction, finalStateOperationApplied, particleChangeProduced );
virtual void OperationApplied(const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
virtual void G4VBiasingOperator::StartRun |
( |
| ) |
|
|
inlinevirtual |
virtual void G4VBiasingOperator::StartTracking |
( |
const G4Track * |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: