Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
GB01BOptrMultiParticleChangeCrossSection Class Reference

#include <GB01BOptrMultiParticleChangeCrossSection.hh>

Inheritance diagram for GB01BOptrMultiParticleChangeCrossSection:
G4VBiasingOperator

Public Member Functions

 GB01BOptrMultiParticleChangeCrossSection ()
 
virtual ~GB01BOptrMultiParticleChangeCrossSection ()
 
void AddParticle (G4String particleName)
 
void StartTracking (const G4Track *track)
 
- Public Member Functions inherited from G4VBiasingOperator
 G4VBiasingOperator (G4String name)
 
virtual ~G4VBiasingOperator ()
 
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 ()
 
const G4VBiasingOperationGetBirthOperation (const G4Track *)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VBiasingOperator
static const std::vector
< G4VBiasingOperator * > & 
GetBiasingOperators ()
 
static G4VBiasingOperatorGetBiasingOperator (const G4LogicalVolume *)
 
- Protected Member Functions inherited from G4VBiasingOperator
virtual void OperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
 
virtual void ExitBiasing (const G4Track *track, const G4BiasingProcessInterface *callingProcess)
 
void RememberSecondaries (const G4BiasingProcessInterface *callingProcess, const G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced)
 
void ForgetTrack (const G4Track *track)
 

Detailed Description

Definition at line 51 of file GB01BOptrMultiParticleChangeCrossSection.hh.

Constructor & Destructor Documentation

GB01BOptrMultiParticleChangeCrossSection::GB01BOptrMultiParticleChangeCrossSection ( )

Definition at line 33 of file GB01BOptrMultiParticleChangeCrossSection.cc.

34  : G4VBiasingOperator("TestManyExponentialTransform")
35 {}
G4VBiasingOperator(G4String name)
virtual GB01BOptrMultiParticleChangeCrossSection::~GB01BOptrMultiParticleChangeCrossSection ( )
inlinevirtual

Definition at line 54 of file GB01BOptrMultiParticleChangeCrossSection.hh.

54 {}

Member Function Documentation

void GB01BOptrMultiParticleChangeCrossSection::AddParticle ( G4String  particleName)

Definition at line 37 of file GB01BOptrMultiParticleChangeCrossSection.cc.

References G4ParticleTable::FindParticle(), G4endl, G4Exception(), G4ParticleTable::GetParticleTable(), and JustWarning.

Referenced by GB01DetectorConstruction::Construct().

38 {
39  const G4ParticleDefinition* particle =
41 
42  if ( particle == 0 )
43  {
45  ed << "Particle `" << particleName << "' not found !" << G4endl;
46  G4Exception("GB01BOptrMultiParticleChangeCrossSection::AddParticle(...)",
47  "exGB01.02",
49  ed);
50  return;
51  }
52 
54  fParticlesToBias.push_back( particle );
55  fBOptrForParticle[ particle ] = optr;
56 }
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
void GB01BOptrMultiParticleChangeCrossSection::StartTracking ( const G4Track track)
virtual

Reimplemented from G4VBiasingOperator.

Definition at line 77 of file GB01BOptrMultiParticleChangeCrossSection.cc.

References G4Track::GetParticleDefinition().

78 {
79  // -- fetch the underneath biasing operator, if any, for the current particle type:
80  const G4ParticleDefinition* definition = track->GetParticleDefinition();
81  std::map < const G4ParticleDefinition*, GB01BOptrChangeCrossSection* > :: iterator
82  it = fBOptrForParticle.find( definition );
83  fCurrentOperator = 0;
84  if ( it != fBOptrForParticle.end() ) fCurrentOperator = (*it).second;
85 
86  // -- reset count for number of biased interactions:
87  fnInteractions = 0;
88 }
const G4ParticleDefinition * GetParticleDefinition() const

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