source: trunk/source/processes/biasing/include/G4WeightCutOffProcess.hh @ 1253

Last change on this file since 1253 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 5.5 KB
Line 
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,v 1.3 2008/04/21 09:10:28 ahoward Exp $
28// GEANT4 tag $Name: geant4-09-03 $
29//
30// ----------------------------------------------------------------------
31// Class G4WeightCutOffProcess
32//
33// Class description:
34//
35// Process for biasing particle-change cutoff.
36
37// Author: Michael Dressel (Michael.Dressel@cern.ch)
38// ----------------------------------------------------------------------
39#ifndef G4WeightCutOffProcess_hh
40#define G4WeightCutOffProcess_hh G4WeightCutOffProcess_hh
41
42#include "G4VProcess.hh"
43#include "G4VTrackTerminator.hh"
44#include "G4GeometryCell.hh"
45
46//class G4VGCellFinder;
47class G4VIStore;
48
49class G4Step;
50class G4Navigator;
51class G4TransportationManager;
52class G4PathFinder;
53class G4VTouchable;
54
55#include "G4FieldTrack.hh"
56#include "G4TouchableHandle.hh"
57
58
59
60class G4WeightCutOffProcess : public G4VProcess
61{
62
63public:  // with description
64
65  G4WeightCutOffProcess(G4double wsurvival,
66                        G4double wlimit,
67                        G4double isource,
68                        G4VIStore *istore,
69                        //                        const G4VGCellFinder &aGCellFinder,
70                        const G4String &aName = "WeightCutOffProcess", G4bool para = false);
71    // create a G4ParticleChange
72
73  virtual ~G4WeightCutOffProcess();
74    // delete the G4ParticleChange
75
76
77  //--------------------------------------------------------------
78  // Set Paralle World
79  //--------------------------------------------------------------
80
81  void SetParallelWorld(G4String parallelWorldName);
82  void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
83
84  //--------------------------------------------------------------
85  //     Process interface
86  //--------------------------------------------------------------
87
88  void StartTracking(G4Track*);
89
90  virtual G4double
91  PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
92                                       G4double   previousStepSize,
93                                       G4ForceCondition* condition);
94    // make the process beeing forced
95
96  virtual G4VParticleChange * PostStepDoIt(const G4Track&, 
97                                           const G4Step&);
98
99
100  const G4String &GetName() const;
101
102public:  // without description
103
104  //  no operation in  AtRestDoIt and  AlongStepDoIt
105
106  virtual G4double
107  AlongStepGetPhysicalInteractionLength(const G4Track&,
108                                        G4double  ,
109                                        G4double  ,
110                                        G4double& ,
111                                        G4GPILSelection*);
112 
113  virtual G4double
114  AtRestGetPhysicalInteractionLength(const G4Track& ,
115                                     G4ForceCondition*);
116
117  virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
118  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
119 
120private:
121
122  void CopyStep(const G4Step & step);
123
124  G4Step * fGhostStep;
125  G4StepPoint * fGhostPreStepPoint;
126  G4StepPoint * fGhostPostStepPoint;
127
128  G4WeightCutOffProcess(const G4WeightCutOffProcess &);
129  G4WeightCutOffProcess &operator=(const G4WeightCutOffProcess &);
130
131  G4ParticleChange *fParticleChange;
132  G4double fWeightSurvival;
133  G4double fWeightLimit;
134  G4double fSourceImportance;
135  G4VIStore *fIStore;
136  //  const G4VGCellFinder &fGCellFinder;
137
138
139  G4TransportationManager* fTransportationManager;
140  G4PathFinder*        fPathFinder;
141
142  // -------------------------------
143  // Navigation in the Ghost World:
144  // -------------------------------
145  G4String             fGhostWorldName;
146  G4VPhysicalVolume*   fGhostWorld;
147  G4Navigator*         fGhostNavigator;
148  G4int                fNavigatorID;
149  G4TouchableHandle    fOldGhostTouchable;
150  G4TouchableHandle    fNewGhostTouchable;
151  G4FieldTrack         fFieldTrack;
152  G4double             fGhostSafety;
153  G4bool               fOnBoundary;
154
155  G4bool               paraflag;
156
157};
158
159#endif
Note: See TracBrowser for help on using the repository browser.