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

#include <G4BOptnCloning.hh>

+ Inheritance diagram for G4BOptnCloning:

Public Member Functions

 G4BOptnCloning (G4String name)
 
virtual ~G4BOptnCloning ()
 
virtual const G4VBiasingInteractionLawProvideOccurenceBiasingInteractionLaw (const G4BiasingProcessInterface *, G4ForceCondition &)
 
virtual G4VParticleChangeApplyFinalStateBiasing (const G4BiasingProcessInterface *, const G4Track *, const G4Step *, G4bool &)
 
virtual G4double DistanceToApplyOperation (const G4Track *, G4double, G4ForceCondition *condition)
 
virtual G4VParticleChangeGenerateBiasingFinalState (const G4Track *, const G4Step *)
 
void SetCloneWeights (G4double clone1Weight, G4double clone2Weight)
 
G4TrackGetCloneTrack () const
 
- Public Member Functions inherited from G4VBiasingOperation
 G4VBiasingOperation (G4String name)
 
virtual ~G4VBiasingOperation ()
 
virtual const G4VBiasingInteractionLawProvideOccurenceBiasingInteractionLaw (const G4BiasingProcessInterface *, G4ForceCondition &)=0
 
virtual G4double ProposeAlongStepLimit (const G4BiasingProcessInterface *)
 
virtual G4GPILSelection ProposeGPILSelection (const G4GPILSelection wrappedProcessSelection)
 
virtual void AlongMoveBy (const G4BiasingProcessInterface *, const G4Step *, G4double)
 
virtual G4VParticleChangeApplyFinalStateBiasing (const G4BiasingProcessInterface *, const G4Track *, const G4Step *, G4bool &)=0
 
virtual G4double DistanceToApplyOperation (const G4Track *, G4double, G4ForceCondition *)=0
 
virtual G4VParticleChangeGenerateBiasingFinalState (const G4Track *, const G4Step *)=0
 
const G4StringGetName () const
 
std::size_t GetUniqueID () const
 

Detailed Description

Definition at line 47 of file G4BOptnCloning.hh.

Constructor & Destructor Documentation

◆ G4BOptnCloning()

G4BOptnCloning::G4BOptnCloning ( G4String  name)

Definition at line 29 of file G4BOptnCloning.cc.

30 : G4VBiasingOperation( name ),
31 fClone1W ( -1.0 ),
32 fClone2W ( -1.0 ),
33 fParticleChange(),
34 fCloneTrack ( nullptr )
35{}

◆ ~G4BOptnCloning()

G4BOptnCloning::~G4BOptnCloning ( )
virtual

Definition at line 37 of file G4BOptnCloning.cc.

38{}

Member Function Documentation

◆ ApplyFinalStateBiasing()

virtual G4VParticleChange * G4BOptnCloning::ApplyFinalStateBiasing ( const G4BiasingProcessInterface ,
const G4Track ,
const G4Step ,
G4bool  
)
inlinevirtual

Implements G4VBiasingOperation.

Definition at line 59 of file G4BOptnCloning.hh.

62 {return 0;}

◆ DistanceToApplyOperation()

virtual G4double G4BOptnCloning::DistanceToApplyOperation ( const G4Track ,
G4double  ,
G4ForceCondition condition 
)
inlinevirtual

Implements G4VBiasingOperation.

Definition at line 64 of file G4BOptnCloning.hh.

67 {
68 *condition = NotForced; return 0; // -- acts immediately
69 }
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced

◆ GenerateBiasingFinalState()

G4VParticleChange * G4BOptnCloning::GenerateBiasingFinalState ( const G4Track track,
const G4Step  
)
virtual

Implements G4VBiasingOperation.

Definition at line 40 of file G4BOptnCloning.cc.

42{
43 fParticleChange.Initialize(*track);
44 fParticleChange.ProposeParentWeight( fClone1W );
45 fParticleChange.SetSecondaryWeightByProcess(true);
46 fParticleChange.SetNumberOfSecondaries(1);
47 fCloneTrack = new G4Track( *track );
48 fCloneTrack->SetWeight( fClone2W );
49 fParticleChange.AddSecondary( fCloneTrack );
50 return &fParticleChange;
51}
void AddSecondary(G4Track *aSecondary)
virtual void Initialize(const G4Track &)
void SetWeight(G4double aValue)
void SetSecondaryWeightByProcess(G4bool)
void SetNumberOfSecondaries(G4int totSecondaries)
void ProposeParentWeight(G4double finalWeight)

◆ GetCloneTrack()

G4Track * G4BOptnCloning::GetCloneTrack ( ) const
inline

Definition at line 78 of file G4BOptnCloning.hh.

78{ return fCloneTrack; }

Referenced by G4BOptrForceCollision::OperationApplied().

◆ ProvideOccurenceBiasingInteractionLaw()

virtual const G4VBiasingInteractionLaw * G4BOptnCloning::ProvideOccurenceBiasingInteractionLaw ( const G4BiasingProcessInterface ,
G4ForceCondition  
)
inlinevirtual

Implements G4VBiasingOperation.

Definition at line 58 of file G4BOptnCloning.hh.

58{return 0;}

◆ SetCloneWeights()

void G4BOptnCloning::SetCloneWeights ( G4double  clone1Weight,
G4double  clone2Weight 
)
inline

Definition at line 76 of file G4BOptnCloning.hh.

76{fClone1W = clone1Weight ; fClone2W = clone2Weight;}

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