Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4BOptnCloning Class Reference

#include <G4BOptnCloning.hh>

Inheritance diagram for G4BOptnCloning:
Collaboration diagram for G4BOptnCloning:

Public Member Functions

 G4BOptnCloning (G4String name)
 
virtual ~G4BOptnCloning ()
 
virtual const
G4VBiasingInteractionLaw
ProvideOccurenceBiasingInteractionLaw (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 G4double ProposeAlongStepLimit (const G4BiasingProcessInterface *)
 
virtual G4GPILSelection ProposeGPILSelection (const G4GPILSelection wrappedProcessSelection)
 
virtual void AlongMoveBy (const G4BiasingProcessInterface *, const G4Step *, G4double)
 
const G4StringGetName () const
 
std::size_t GetUniqueID () const
 

Detailed Description

Definition at line 48 of file G4BOptnCloning.hh.

Constructor & Destructor Documentation

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 {}
G4VBiasingOperation(G4String name)
G4BOptnCloning::~G4BOptnCloning ( )
virtual

Definition at line 37 of file G4BOptnCloning.cc.

38 {}

Member Function Documentation

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

Implements G4VBiasingOperation.

Definition at line 60 of file G4BOptnCloning.hh.

63  {return 0;}
virtual G4double G4BOptnCloning::DistanceToApplyOperation ( const G4Track ,
G4double  ,
G4ForceCondition condition 
)
inlinevirtual

Implements G4VBiasingOperation.

Definition at line 65 of file G4BOptnCloning.hh.

68  {
69  *condition = NotForced; return 0; // -- acts immediately
70  }
G4double condition(const G4ErrorSymMatrix &m)
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 ProposeParentWeight(G4double finalWeight)
void SetWeight(G4double aValue)
void SetSecondaryWeightByProcess(G4bool)
virtual void Initialize(const G4Track &)
void SetNumberOfSecondaries(G4int totSecondaries)
void AddSecondary(G4Track *aSecondary)

Here is the call graph for this function:

G4Track* G4BOptnCloning::GetCloneTrack ( ) const
inline

Definition at line 79 of file G4BOptnCloning.hh.

79 { return fCloneTrack; }

Here is the caller graph for this function:

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

Implements G4VBiasingOperation.

Definition at line 59 of file G4BOptnCloning.hh.

59 {return 0;}
void G4BOptnCloning::SetCloneWeights ( G4double  clone1Weight,
G4double  clone2Weight 
)
inline

Definition at line 77 of file G4BOptnCloning.hh.

77 {fClone1W = clone1Weight ; fClone2W = clone2Weight;}

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