Geant4  10.01
G4ImportanceProcess.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: G4ImportanceProcess.hh 77477 2013-11-25 09:42:24Z gcosmo $
28 //
29 // ----------------------------------------------------------------------
30 // Class G4ImportanceProcess
31 //
32 // Class description:
33 //
34 // Used internally by importance sampling in the "mass" geometry.
35 // This process is a forced post step process. I will apply
36 // importance sampling if the particle crosses a boundary in the
37 // "mass" geometry.
38 
39 // Author: Michael Dressel (Michael.Dressel@cern.ch)
40 // ----------------------------------------------------------------------
41 #ifndef G4ImportanceProcess_hh
42 #define G4ImportanceProcess_hh G4ImportanceProcess_hh
43 
44 #include "G4VProcess.hh"
45 #include "G4VTrackTerminator.hh"
46 
49 class G4VIStore;
50 
51 class G4Step;
52 class G4Navigator;
54 class G4PathFinder;
55 class G4VTouchable;
56 
57 #include "G4FieldTrack.hh"
58 #include "G4TouchableHandle.hh"
59 
60 
62 {
63 
64 public: // with description
65 
66  G4ImportanceProcess(const G4VImportanceAlgorithm &aImportanceAlgorithm,
67  const G4VIStore &aIstore,
68  const G4VTrackTerminator *TrackTerminator,
69  const G4String &aName = "ImportanceProcess", G4bool para = false);
70  // creates a G4ParticleChange
71 
72  virtual ~G4ImportanceProcess();
73  // delete the G4ParticleChange
74 
75 
76  //--------------------------------------------------------------
77  // Set Paralle World
78  //--------------------------------------------------------------
79 
80  void SetParallelWorld(G4String parallelWorldName);
81  // void SetParallelWorld(const G4VPhysicalVolume* parallelWorld);
82 
83  //--------------------------------------------------------------
84  // Process interface
85  //--------------------------------------------------------------
86 
87  void StartTracking(G4Track*);
88 
89 
90  virtual G4double
92  G4double previousStepSize,
94  // make process beeing forced
95  virtual G4VParticleChange *PostStepDoIt(const G4Track&, const G4Step&);
96  // manage the importance sampling in the "mass" geometry
97 
98  virtual void KillTrack() const;
99  // used in case no scoring process follows that does the killing
100 
101  virtual const G4String &GetName() const;
102 
103 
104 public: // without description
105 
106  // no operation in AtRestDoIt and AlongStepDoIt
107 
108  virtual G4double
110  G4double ,
111  G4double ,
112  G4double& ,
113  G4GPILSelection*);
114  virtual G4double
117 
118  virtual G4VParticleChange*
119  AtRestDoIt(const G4Track&, const G4Step&);
120 
121 
122  virtual G4VParticleChange*
123  AlongStepDoIt(const G4Track&, const G4Step&);
124 
125 private:
126 
129 
130 private:
131 
132  void CopyStep(const G4Step & step);
133 
137 
142 
145 
146  // -------------------------------
147  // Navigation in the Ghost World:
148  // -------------------------------
158 
160 
161 };
162 
163 #endif
G4double condition(const G4ErrorSymMatrix &m)
void SetParallelWorld(G4String parallelWorldName)
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
G4StepPoint * fGhostPreStepPoint
virtual G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
const G4VIStore & fIStore
void CopyStep(const G4Step &step)
virtual G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
int G4int
Definition: G4Types.hh:78
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
G4TouchableHandle fNewGhostTouchable
G4VPhysicalVolume * fGhostWorld
G4TouchableHandle fOldGhostTouchable
virtual const G4String & GetName() const
bool G4bool
Definition: G4Types.hh:79
G4ImportanceProcess & operator=(const G4ImportanceProcess &)
Definition: G4Step.hh:76
G4TransportationManager * fTransportationManager
G4ParticleChange * fParticleChange
virtual void KillTrack() const
void StartTracking(G4Track *)
G4StepPoint * fGhostPostStepPoint
G4ImportanceProcess(const G4VImportanceAlgorithm &aImportanceAlgorithm, const G4VIStore &aIstore, const G4VTrackTerminator *TrackTerminator, const G4String &aName="ImportanceProcess", G4bool para=false)
double G4double
Definition: G4Types.hh:76
G4ForceCondition
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
G4SamplingPostStepAction * fPostStepAction
G4GPILSelection
const G4VImportanceAlgorithm & fImportanceAlgorithm
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)