Geant4  10.01.p02
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 88919 2015-03-16 13:41:02Z gcosmo $
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 #include "G4MultiNavigator.hh" // For ELimited enum
57 
59 {
60 
61 public: // with description
62 
64  G4double wlimit,
65  G4double isource,
66  G4VIStore *istore,
67  // const G4VGCellFinder &aGCellFinder,
68  const G4String &aName = "WeightCutOffProcess", G4bool para = false);
69  // create a G4ParticleChange
70 
71  virtual ~G4WeightCutOffProcess();
72  // delete the G4ParticleChange
73 
74 
75  //--------------------------------------------------------------
76  // Set Parallel World
77  //--------------------------------------------------------------
78 
79  void SetParallelWorld(const G4String &parallelWorldName);
80  void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
81 
82  //--------------------------------------------------------------
83  // Process interface
84  //--------------------------------------------------------------
85 
86  void StartTracking(G4Track*);
87 
88  virtual G4double
90  G4double previousStepSize,
92  // make the process beeing forced
93 
94  virtual G4VParticleChange * PostStepDoIt(const G4Track&,
95  const G4Step&);
96 
97 
98  const G4String &GetName() const;
99 
100 public: // without description
101 
102  // no operation in AtRestDoIt and AlongStepDoIt
103 
104  virtual G4double
106  G4double ,
107  G4double ,
108  G4double& ,
109  G4GPILSelection*);
110 
111  virtual G4double
114 
115  virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
116  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
117 
118 private:
119 
120  void CopyStep(const G4Step & step);
121 
125 
128 
134  // const G4VGCellFinder &fGCellFinder;
135 
136 
139 
140  // -------------------------------
141  // Navigation in the Ghost World:
142  // -------------------------------
152 
156 };
157 
158 #endif
G4double condition(const G4ErrorSymMatrix &m)
G4VPhysicalVolume * fGhostWorld
ELimited
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
void SetParallelWorld(const G4String &parallelWorldName)
int G4int
Definition: G4Types.hh:78
G4TransportationManager * fTransportationManager
G4WeightCutOffProcess & operator=(const G4WeightCutOffProcess &)
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)
G4TouchableHandle fOldGhostTouchable
bool G4bool
Definition: G4Types.hh:79
G4ParticleChange * fParticleChange
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
G4TouchableHandle fNewGhostTouchable
G4GPILSelection
void CopyStep(const G4Step &step)