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

#include <GB02BOptrMultiParticleForceCollision.hh>

Inheritance diagram for GB02BOptrMultiParticleForceCollision:
Collaboration diagram for GB02BOptrMultiParticleForceCollision:

Public Member Functions

 GB02BOptrMultiParticleForceCollision ()
 
virtual ~GB02BOptrMultiParticleForceCollision ()
 
void AddParticle (G4String particleName)
 
virtual void StartTracking (const G4Track *track) final
 
- Public Member Functions inherited from G4VBiasingOperator
 G4VBiasingOperator (G4String name)
 
virtual ~G4VBiasingOperator ()
 
virtual void Configure ()
 
virtual void ConfigureForWorker ()
 
virtual void StartRun ()
 
virtual void EndTracking ()
 
const G4String GetName () const
 
void AttachTo (const G4LogicalVolume *)
 
G4BiasingAppliedCase GetPreviousBiasingAppliedCase () const
 
G4VBiasingOperationGetProposedOccurenceBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess)
 
G4VBiasingOperationGetProposedFinalStateBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess)
 
G4VBiasingOperationGetProposedNonPhysicsBiasingOperation (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 G4VBiasingOperationGetPreviousNonPhysicsAppliedOperation ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VBiasingOperator
static const std::vector
< G4VBiasingOperator * > & 
GetBiasingOperators ()
 
static G4VBiasingOperatorGetBiasingOperator (const G4LogicalVolume *)
 

Detailed Description

Definition at line 38 of file GB02BOptrMultiParticleForceCollision.hh.

Constructor & Destructor Documentation

GB02BOptrMultiParticleForceCollision::GB02BOptrMultiParticleForceCollision ( )

Definition at line 38 of file GB02BOptrMultiParticleForceCollision.cc.

39 : G4VBiasingOperator("TestManyForceCollision")
40 {
41 }
G4VBiasingOperator(G4String name)
virtual GB02BOptrMultiParticleForceCollision::~GB02BOptrMultiParticleForceCollision ( )
inlinevirtual

Definition at line 41 of file GB02BOptrMultiParticleForceCollision.hh.

41 {}

Member Function Documentation

void GB02BOptrMultiParticleForceCollision::AddParticle ( G4String  particleName)

Definition at line 45 of file GB02BOptrMultiParticleForceCollision.cc.

46 {
47  const G4ParticleDefinition* particle =
49 
50  if ( particle == 0 )
51  {
53  ed << "Particle `" << particleName << "' not found !" << G4endl;
54  G4Exception("GB02BOptrMultiParticleForceCollision::AddParticle(...)",
55  "exGB02.01",
57  ed);
58  return;
59  }
60 
61  G4BOptrForceCollision* optr = new G4BOptrForceCollision(particleName,
62  "ForceCollisionFor"+particleName);
63  fParticlesToBias.push_back( particle );
64  fBOptrForParticle[ particle ] = optr;
65 
66 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4ParticleTable * GetParticleTable()
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:

void GB02BOptrMultiParticleForceCollision::StartTracking ( const G4Track track)
finalvirtual

Reimplemented from G4VBiasingOperator.

Definition at line 106 of file GB02BOptrMultiParticleForceCollision.cc.

107 {
108  const G4ParticleDefinition* definition = track->GetParticleDefinition();
109  std::map < const G4ParticleDefinition*, G4BOptrForceCollision* > :: iterator
110  it = fBOptrForParticle.find( definition );
111  fCurrentOperator = 0;
112  if ( it != fBOptrForParticle.end() ) fCurrentOperator = (*it).second;
113 }
const G4ParticleDefinition * GetParticleDefinition() const

Here is the call graph for this function:


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