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: G4AdjointBremsstrahlungModel.hh 69844 2013-05-16 09:19:33Z gcosmo $ 00027 // 00029 // Class: G4AdjointBremsstrahlungModel 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 // 15 June 2007 creation by L. Desorgher. Adapted from G4eBremsstrahlungModel 00040 // 20-10-2009 Remove all the screening effect that are not considered in the direct models blow 10 GeV. L.Desorgher 00041 // 4-11-2009 Implement the use of a simple biased differential cross section (C(Z)/Egamma) allowing a rapid computation of adjoint CS 00042 // and rapid sampling of adjoint secondaries. By this way cross section matrices are not used anymore, avoiding a rather 00043 // time consuming computation of adjoint brem cross section matrices for each material at initialisation. This mode is switch on/off 00044 // by selecting SetUseMatrix(false)/ SetUseMatrix(true) in the constructor. L.Desorgher 00045 // 00046 // 00047 //------------------------------------------------------------- 00048 // Documentation: 00049 // Adjoint Model for e- Bremsstrahlung 00050 // 00051 00052 00053 00054 #ifndef G4AdjointBremsstrahlungModel_h 00055 #define G4AdjointBremsstrahlungModel_h 1 00056 #include "globals.hh" 00057 #include "G4VEmAdjointModel.hh" 00058 #include "G4eBremsstrahlungModel.hh" 00059 //#include "G4PenelopeBremsstrahlungModel.hh" 00060 #include "G4PhysicsTable.hh" 00061 #include "G4EmModelManager.hh" 00062 class G4Timer; 00063 class G4AdjointBremsstrahlungModel: public G4VEmAdjointModel 00064 00065 { 00066 public: 00067 00068 G4AdjointBremsstrahlungModel(G4VEmModel* aModel); 00069 G4AdjointBremsstrahlungModel(); 00070 ~G4AdjointBremsstrahlungModel(); 00071 virtual void SampleSecondaries(const G4Track& aTrack, 00072 G4bool IsScatProjToProjCase, 00073 G4ParticleChange* fParticleChange); 00074 void RapidSampleSecondaries(const G4Track& aTrack, 00075 G4bool IsScatProjToProjCase, 00076 G4ParticleChange* fParticleChange); 00077 virtual G4double DiffCrossSectionPerVolumePrimToSecond( 00078 const G4Material* aMaterial, 00079 G4double kinEnergyProj, // kinetic energy of the primary particle before the interaction 00080 G4double kinEnergyProd // kinetic energy of the secondary particle 00081 ); 00082 G4double DiffCrossSectionPerVolumePrimToSecondApproximated1( 00083 const G4Material* aMaterial, 00084 G4double kinEnergyProj, // kinetic energy of the primary particle before the interaction 00085 G4double kinEnergyProd // kinetic energy of the secondary particle 00086 ); 00087 G4double DiffCrossSectionPerVolumePrimToSecondApproximated2( 00088 const G4Material* aMaterial, 00089 G4double kinEnergyProj, // kinetic energy of the primary particle before the interaction 00090 G4double kinEnergyProd // kinetic energy of the secondary particle 00091 ); 00092 virtual G4double AdjointCrossSection(const G4MaterialCutsCouple* aCouple, 00093 G4double primEnergy, 00094 G4bool IsScatProjToProjCase); 00095 virtual G4double GetAdjointCrossSection(const G4MaterialCutsCouple* aCouple, 00096 G4double primEnergy, 00097 G4bool IsScatProjToProjCase); 00098 00099 00100 // private void InitialiseFwdModels(); 00101 00102 00103 private: 00104 G4VEmModel* theDirectStdBremModel; 00105 G4EmModelManager* theEmModelManagerForFwdModels; 00106 G4bool isDirectModelInitialised ; 00107 00108 G4double highKinEnergy; 00109 G4double lowKinEnergy, lastCZ; 00110 std::vector<G4DataVector*> partialSumSigma; 00111 std::vector<float> SigmaPerAtom; 00112 00113 }; 00114 00115 00116 #endif