G4VAdjointReverseReaction.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 // $Id: G4VAdjointReverseReaction.hh 69844 2013-05-16 09:19:33Z gcosmo $
00027 //
00029 //      Module:         G4VAdjointReverseReaction
00030 //      Author:         L. Desorgher
00031 //      Organisation:   SpaceIT GmbH
00032 //      Contract:       ESA contract 21435/08/NL/AT
00033 //      Customer:       ESA/ESTEC
00035 //
00036 // CHANGE HISTORY
00037 // --------------
00038 //      ChangeHistory: 
00039 //              1st April 2007 creation by L. Desorgher                 
00040 //
00041 //-------------------------------------------------------------
00042 //      Documentation:
00043 //              Abstract class for adjoint/reverse discrete scattering
00044 //
00045 
00046 #ifndef G4VAdjointReverseReaction_h
00047 #define G4VAdjointReverseReaction_h 1
00048 
00049 #include "globals.hh"
00050 #include "G4DynamicParticle.hh"
00051 #include "G4ParticleDefinition.hh"
00052 #include "G4MaterialCutsCouple.hh"
00053 #include "G4Material.hh"
00054 #include "G4Element.hh"
00055 #include "G4ElementVector.hh"
00056 #include "Randomize.hh"
00057 #include "G4ParticleDefinition.hh"
00058 #include "G4VDiscreteProcess.hh"
00059 
00060 
00061 
00062 class G4PhysicsTable;
00063 class G4Region;
00064 class G4VParticleChange;
00065 class G4ParticleChange;
00066 class G4Track;
00067 class G4VEmAdjointModel;
00068 class G4AdjointCSMatrix;
00069 class G4AdjointCSManager;
00070 class G4Material;
00071 class G4MaterialCutsCouple;
00072 
00073 
00074 class G4VAdjointReverseReaction : public G4VDiscreteProcess
00075 {
00076 
00077 public:
00078 
00079   G4VAdjointReverseReaction(G4String process_name,G4bool whichScatCase);
00080 
00081   virtual ~G4VAdjointReverseReaction();
00082   
00083 public:
00084   void PreparePhysicsTable(const G4ParticleDefinition&);
00085   
00086   void BuildPhysicsTable(const G4ParticleDefinition&);
00087   
00088   virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&); 
00089   inline void SetIntegralMode(G4bool aBool){IsIntegralModeUsed = aBool;}
00090  
00091 protected :// with description  
00092         
00093    virtual G4double GetMeanFreePath(const G4Track& track,
00094                                          G4double previousStepSize,
00095                                          G4ForceCondition* condition);
00096 
00097 protected:
00098    G4VEmAdjointModel* theAdjointEMModel;        
00099    G4ParticleChange* fParticleChange;
00100    G4AdjointCSManager* theAdjointCSManager;
00101    G4bool IsScatProjToProjCase;
00102    
00103   
00104 
00105 private:
00106   G4double lastCS;
00107   std::vector<G4double> CS_Vs_Element;
00108   G4bool IsFwdCSUsed;
00109   
00110   //For integral mode
00111   //------------------
00112   G4bool IsIntegralModeUsed;
00113   
00114   
00115   
00116 
00117  
00118 
00119 };  
00120 
00121 #endif
00122 

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