Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4WeightCutOffProcess.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id$
28//
29// ----------------------------------------------------------------------
30// Class G4WeightCutOffProcess
31//
32// Class description:
33//
34// Process for biasing particle-change cutoff.
35
36// Author: Michael Dressel (Michael.Dressel@cern.ch)
37// ----------------------------------------------------------------------
38#ifndef G4WeightCutOffProcess_hh
39#define G4WeightCutOffProcess_hh G4WeightCutOffProcess_hh
40
41#include "G4VProcess.hh"
42#include "G4VTrackTerminator.hh"
43#include "G4GeometryCell.hh"
44
45//class G4VGCellFinder;
46class G4VIStore;
47
48class G4Step;
49class G4Navigator;
51class G4PathFinder;
52class G4VTouchable;
53
54#include "G4FieldTrack.hh"
55#include "G4TouchableHandle.hh"
56
57
58
60{
61
62public: // with description
63
65 G4double wlimit,
66 G4double isource,
67 G4VIStore *istore,
68 // const G4VGCellFinder &aGCellFinder,
69 const G4String &aName = "WeightCutOffProcess", G4bool para = false);
70 // create a G4ParticleChange
71
72 virtual ~G4WeightCutOffProcess();
73 // delete the G4ParticleChange
74
75
76 //--------------------------------------------------------------
77 // Set Paralle World
78 //--------------------------------------------------------------
79
80 void SetParallelWorld(G4String parallelWorldName);
81 void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
82
83 //--------------------------------------------------------------
84 // Process interface
85 //--------------------------------------------------------------
86
88
89 virtual G4double
91 G4double previousStepSize,
93 // make the process beeing forced
94
95 virtual G4VParticleChange * PostStepDoIt(const G4Track&,
96 const G4Step&);
97
98
99 const G4String &GetName() const;
100
101public: // without description
102
103 // no operation in AtRestDoIt and AlongStepDoIt
104
105 virtual G4double
107 G4double ,
108 G4double ,
109 G4double& ,
111
112 virtual G4double
115
116 virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
117 virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
118
119private:
120
121 void CopyStep(const G4Step & step);
122
123 G4Step * fGhostStep;
124 G4StepPoint * fGhostPreStepPoint;
125 G4StepPoint * fGhostPostStepPoint;
126
129
130 G4ParticleChange *fParticleChange;
131 G4double fWeightSurvival;
132 G4double fWeightLimit;
133 G4double fSourceImportance;
134 G4VIStore *fIStore;
135 // const G4VGCellFinder &fGCellFinder;
136
137
138 G4TransportationManager* fTransportationManager;
139 G4PathFinder* fPathFinder;
140
141 // -------------------------------
142 // Navigation in the Ghost World:
143 // -------------------------------
144 G4String fGhostWorldName;
145 G4VPhysicalVolume* fGhostWorld;
146 G4Navigator* fGhostNavigator;
147 G4int fNavigatorID;
148 G4TouchableHandle fOldGhostTouchable;
149 G4TouchableHandle fNewGhostTouchable;
150 G4FieldTrack fFieldTrack;
151 G4double fGhostSafety;
152 G4bool fOnBoundary;
153
154 G4bool paraflag;
155
156};
157
158#endif
G4double condition(const G4ErrorSymMatrix &m)
G4ForceCondition
G4GPILSelection
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
Definition: G4Step.hh:78
virtual G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
const G4String & GetName() const
virtual G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void SetParallelWorld(G4String parallelWorldName)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)