G4WeightCutOffProcess.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // ----------------------------------------------------------------------
00030 // Class G4WeightCutOffProcess
00031 //
00032 // Class description:
00033 //
00034 // Process for biasing particle-change cutoff.
00035 
00036 // Author: Michael Dressel (Michael.Dressel@cern.ch)
00037 // ----------------------------------------------------------------------
00038 #ifndef G4WeightCutOffProcess_hh 
00039 #define G4WeightCutOffProcess_hh G4WeightCutOffProcess_hh
00040 
00041 #include "G4VProcess.hh"
00042 #include "G4VTrackTerminator.hh"
00043 #include "G4GeometryCell.hh"
00044 
00045 //class G4VGCellFinder;
00046 class G4VIStore;
00047 
00048 class G4Step;
00049 class G4Navigator;
00050 class G4TransportationManager;
00051 class G4PathFinder;
00052 class G4VTouchable;
00053 
00054 #include "G4FieldTrack.hh"
00055 #include "G4TouchableHandle.hh"
00056 
00057 
00058 
00059 class G4WeightCutOffProcess : public G4VProcess
00060 {
00061 
00062 public:  // with description
00063 
00064   G4WeightCutOffProcess(G4double wsurvival,
00065                         G4double wlimit,
00066                         G4double isource,
00067                         G4VIStore *istore,
00068                         //                        const G4VGCellFinder &aGCellFinder,
00069                         const G4String &aName = "WeightCutOffProcess", G4bool para = false);
00070     // create a G4ParticleChange
00071 
00072   virtual ~G4WeightCutOffProcess();
00073     // delete the G4ParticleChange
00074 
00075 
00076   //--------------------------------------------------------------
00077   // Set Paralle World
00078   //--------------------------------------------------------------
00079 
00080   void SetParallelWorld(G4String parallelWorldName);
00081   void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
00082 
00083   //--------------------------------------------------------------
00084   //     Process interface
00085   //--------------------------------------------------------------
00086 
00087   void StartTracking(G4Track*);
00088 
00089   virtual G4double 
00090   PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
00091                                        G4double   previousStepSize,
00092                                        G4ForceCondition* condition);
00093     // make the process beeing forced
00094 
00095   virtual G4VParticleChange * PostStepDoIt(const G4Track&, 
00096                                            const G4Step&);
00097 
00098 
00099   const G4String &GetName() const;
00100 
00101 public:  // without description
00102 
00103   //  no operation in  AtRestDoIt and  AlongStepDoIt
00104 
00105   virtual G4double 
00106   AlongStepGetPhysicalInteractionLength(const G4Track&,
00107                                         G4double  ,
00108                                         G4double  ,
00109                                         G4double& ,
00110                                         G4GPILSelection*);
00111   
00112   virtual G4double 
00113   AtRestGetPhysicalInteractionLength(const G4Track& ,
00114                                      G4ForceCondition*);
00115 
00116   virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
00117   virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
00118   
00119 private:
00120 
00121   void CopyStep(const G4Step & step);
00122 
00123   G4Step * fGhostStep;
00124   G4StepPoint * fGhostPreStepPoint;
00125   G4StepPoint * fGhostPostStepPoint;
00126 
00127   G4WeightCutOffProcess(const G4WeightCutOffProcess &);
00128   G4WeightCutOffProcess &operator=(const G4WeightCutOffProcess &);
00129 
00130   G4ParticleChange *fParticleChange;
00131   G4double fWeightSurvival;
00132   G4double fWeightLimit;
00133   G4double fSourceImportance;
00134   G4VIStore *fIStore;
00135   //  const G4VGCellFinder &fGCellFinder;
00136 
00137 
00138   G4TransportationManager* fTransportationManager;
00139   G4PathFinder*        fPathFinder;
00140 
00141   // -------------------------------
00142   // Navigation in the Ghost World:
00143   // -------------------------------
00144   G4String             fGhostWorldName;
00145   G4VPhysicalVolume*   fGhostWorld;
00146   G4Navigator*         fGhostNavigator;
00147   G4int                fNavigatorID;
00148   G4TouchableHandle    fOldGhostTouchable;
00149   G4TouchableHandle    fNewGhostTouchable;
00150   G4FieldTrack         fFieldTrack;
00151   G4double             fGhostSafety;
00152   G4bool               fOnBoundary;
00153 
00154   G4bool               paraflag;
00155 
00156 };
00157 
00158 #endif

Generated on Mon May 27 17:50:24 2013 for Geant4 by  doxygen 1.4.7