Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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: G4WeightCutOffProcess.hh 66241 2012-12-13 18:34:42Z gunter $
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;
46 class G4VIStore;
47 
48 class G4Step;
49 class G4Navigator;
51 class G4PathFinder;
52 class G4VTouchable;
53 
54 #include "G4FieldTrack.hh"
55 #include "G4TouchableHandle.hh"
56 
57 
58 
60 {
61 
62 public: // 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 
87  void StartTracking(G4Track*);
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 
101 public: // without description
102 
103  // no operation in AtRestDoIt and AlongStepDoIt
104 
105  virtual G4double
107  G4double ,
108  G4double ,
109  G4double& ,
110  G4GPILSelection*);
111 
112  virtual G4double
115 
116  virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
117  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
118 
119 private:
120 
121  void CopyStep(const G4Step & step);
122 
123  G4Step * fGhostStep;
124  G4StepPoint * fGhostPreStepPoint;
125  G4StepPoint * fGhostPostStepPoint;
126 
128  G4WeightCutOffProcess &operator=(const G4WeightCutOffProcess &);
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)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
int G4int
Definition: G4Types.hh:78
virtual G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
const G4String & GetName() const
G4WeightCutOffProcess(G4double wsurvival, G4double wlimit, G4double isource, G4VIStore *istore, const G4String &aName="WeightCutOffProcess", G4bool para=false)
bool G4bool
Definition: G4Types.hh:79
Definition: G4Step.hh:76
virtual G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
double G4double
Definition: G4Types.hh:76
G4ForceCondition
void SetParallelWorld(G4String parallelWorldName)
G4GPILSelection