| 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 | // Module: G4VAdjointInverseScattering.hh
|
|---|
| 28 | // Author: L. Desorgher
|
|---|
| 29 | // Date: 1st April 2007
|
|---|
| 30 | // Organisation: SpaceIT GmbH
|
|---|
| 31 | // Customer: ESA/ESTEC
|
|---|
| 32 | /////////////////////////////////////////////////////////////////////////////////
|
|---|
| 33 | //
|
|---|
| 34 | // CHANGE HISTORY
|
|---|
| 35 | // --------------
|
|---|
| 36 | // ChangeHistory:
|
|---|
| 37 | // 1st April 2007 creation by L. Desorgher
|
|---|
| 38 | //
|
|---|
| 39 | //-------------------------------------------------------------
|
|---|
| 40 | // Documentation:
|
|---|
| 41 | // Abastract class for adjoint/reverse discrete scattering
|
|---|
| 42 | //
|
|---|
| 43 |
|
|---|
| 44 | #ifndef G4VAdjointInverseScattering_h
|
|---|
| 45 | #define G4VAdjointInverseScattering_h 1
|
|---|
| 46 |
|
|---|
| 47 | #include "globals.hh"
|
|---|
| 48 | #include "G4DynamicParticle.hh"
|
|---|
| 49 | #include "G4ParticleDefinition.hh"
|
|---|
| 50 | #include "G4MaterialCutsCouple.hh"
|
|---|
| 51 | #include "G4Material.hh"
|
|---|
| 52 | #include "G4Element.hh"
|
|---|
| 53 | #include "G4ElementVector.hh"
|
|---|
| 54 | #include "Randomize.hh"
|
|---|
| 55 | #include "G4ParticleDefinition.hh"
|
|---|
| 56 | #include "G4VDiscreteProcess.hh"
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | class G4PhysicsTable;
|
|---|
| 61 | class G4Region;
|
|---|
| 62 | class G4VParticleChange;
|
|---|
| 63 | class G4ParticleChange;
|
|---|
| 64 | class G4Track;
|
|---|
| 65 | class G4VEmAdjointModel;
|
|---|
| 66 | class G4AdjointCSMatrix;
|
|---|
| 67 | class G4AdjointCSManager;
|
|---|
| 68 | class G4Material;
|
|---|
| 69 | class G4MaterialCutsCouple;
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | class G4VAdjointInverseScattering : public G4VDiscreteProcess
|
|---|
| 73 | {
|
|---|
| 74 |
|
|---|
| 75 | public:
|
|---|
| 76 |
|
|---|
| 77 | G4VAdjointInverseScattering(G4String process_name,G4bool whichScatCase);
|
|---|
| 78 |
|
|---|
| 79 | virtual ~G4VAdjointInverseScattering();
|
|---|
| 80 |
|
|---|
| 81 | public:
|
|---|
| 82 | void PreparePhysicsTable(const G4ParticleDefinition&);
|
|---|
| 83 |
|
|---|
| 84 | void BuildPhysicsTable(const G4ParticleDefinition&);
|
|---|
| 85 |
|
|---|
| 86 | virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
|
|---|
| 87 |
|
|---|
| 88 | protected :// with description
|
|---|
| 89 |
|
|---|
| 90 | virtual G4double GetMeanFreePath(const G4Track& track,
|
|---|
| 91 | G4double previousStepSize,
|
|---|
| 92 | G4ForceCondition* condition);
|
|---|
| 93 |
|
|---|
| 94 | protected:
|
|---|
| 95 | G4VEmAdjointModel* theAdjointEMModel;
|
|---|
| 96 | G4ParticleChange* fParticleChange;
|
|---|
| 97 | G4AdjointCSManager* theAdjointCSManager;
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 | private:
|
|---|
| 101 | G4Material* currentMaterial;
|
|---|
| 102 | G4MaterialCutsCouple* currentCouple;
|
|---|
| 103 | size_t currentMaterialIndex;
|
|---|
| 104 | G4double currentTcut;
|
|---|
| 105 | G4double lastCS;
|
|---|
| 106 | std::vector<double> CS_Vs_Element;
|
|---|
| 107 | G4bool IsScatProjToProjCase;
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | };
|
|---|
| 112 |
|
|---|
| 113 | #endif
|
|---|
| 114 |
|
|---|