ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4WeightCutOffProcess.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4WeightCutOffProcess.hh
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 //
28 // ----------------------------------------------------------------------
29 // Class G4WeightCutOffProcess
30 //
31 // Class description:
32 //
33 // Process for biasing particle-change cutoff.
34 
35 // Author: Michael Dressel (Michael.Dressel@cern.ch)
36 // ----------------------------------------------------------------------
37 #ifndef G4WeightCutOffProcess_hh
38 #define G4WeightCutOffProcess_hh G4WeightCutOffProcess_hh
39 
40 #include "G4VProcess.hh"
41 #include "G4VTrackTerminator.hh"
42 #include "G4GeometryCell.hh"
43 
44 //class G4VGCellFinder;
45 class G4VIStore;
46 
47 class G4Step;
48 class G4Navigator;
50 class G4PathFinder;
51 class G4VTouchable;
52 
53 #include "G4FieldTrack.hh"
54 #include "G4TouchableHandle.hh"
55 #include "G4MultiNavigator.hh" // For ELimited enum
56 
58 {
59 
60 public: // with description
61 
63  G4double wlimit,
64  G4double isource,
65  G4VIStore *istore,
66  // const G4VGCellFinder &aGCellFinder,
67  const G4String &aName = "WeightCutOffProcess", G4bool para = false);
68  // create a G4ParticleChange
69 
70  virtual ~G4WeightCutOffProcess();
71  // delete the G4ParticleChange
72 
73 
74  //--------------------------------------------------------------
75  // Set Parallel World
76  //--------------------------------------------------------------
77 
78  void SetParallelWorld(const G4String &parallelWorldName);
79  void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
80 
81  //--------------------------------------------------------------
82  // Process interface
83  //--------------------------------------------------------------
84 
85  void StartTracking(G4Track*);
86 
87  virtual G4double
89  G4double previousStepSize,
91  // make the process beeing forced
92 
93  virtual G4VParticleChange * PostStepDoIt(const G4Track&,
94  const G4Step&);
95 
96 
97  const G4String &GetName() const;
98 
99 public: // without description
100 
101  // no operation in AtRestDoIt and AlongStepDoIt
102 
103  virtual G4double
105  G4double ,
106  G4double ,
107  G4double& ,
108  G4GPILSelection*);
109 
110  virtual G4double
113 
114  virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
115  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
116 
117 private:
118 
119  void CopyStep(const G4Step & step);
120 
124 
127 
133  // const G4VGCellFinder &fGCellFinder;
134 
135 
138 
139  // -------------------------------
140  // Navigation in the Ghost World:
141  // -------------------------------
151 
155 };
156 
157 #endif