Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4AdjointComptonModel.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 ////////////////////////////////////////////////////////////////////////////////
0027 //  Class:    G4AdjointComptonModel
0028 //  Author:         L. Desorgher
0029 //  Organisation:   SpaceIT GmbH
0030 //
0031 //  Model for the adjoint compton scattering.
0032 ////////////////////////////////////////////////////////////////////////////////
0033 
0034 #ifndef G4AdjointComptonModel_h
0035 #define G4AdjointComptonModel_h 1
0036 
0037 #include "globals.hh"
0038 #include "G4VEmAdjointModel.hh"
0039 
0040 class G4VEmProcess;
0041 
0042 class G4AdjointComptonModel : public G4VEmAdjointModel
0043 {
0044  public:
0045   G4AdjointComptonModel();
0046   ~G4AdjointComptonModel() override;
0047 
0048   void SampleSecondaries(const G4Track& aTrack, G4bool isScatProjToProj,
0049                          G4ParticleChange* fParticleChange) override;
0050 
0051   void RapidSampleSecondaries(const G4Track& aTrack, G4bool isScatProjToProj,
0052                               G4ParticleChange* fParticleChange);
0053 
0054   G4double DiffCrossSectionPerAtomPrimToScatPrim(
0055     G4double kinEnergyProj,      // kin energy of primary before interaction
0056     G4double kinEnergyScatProj,  // kin energy of primary after interaction
0057     G4double Z, G4double A = 0.) override;
0058 
0059   G4double DiffCrossSectionPerAtomPrimToSecond(
0060     G4double kinEnergyProj,  // kin energy of primary before interaction
0061     G4double kinEnergyProd,  // kin energy of secondary particle
0062     G4double Z, G4double A = 0.) override;
0063 
0064   G4double GetSecondAdjEnergyMaxForScatProjToProj(
0065     G4double primAdjEnergy) override;
0066   G4double GetSecondAdjEnergyMinForProdToProj(G4double primAdjEnergy) override;
0067 
0068   G4double AdjointCrossSection(const G4MaterialCutsCouple* aCouple,
0069                                G4double primEnergy,
0070                                G4bool isScatProjToProj) override;
0071 
0072   inline void SetDirectProcess(G4VEmProcess* aProcess)
0073   {
0074     fDirectProcess = aProcess;
0075   };
0076 
0077   G4AdjointComptonModel(G4AdjointComptonModel&) = delete;
0078   G4AdjointComptonModel& operator=(const G4AdjointComptonModel& right) = delete;
0079 
0080  private:
0081   G4VEmProcess* fDirectProcess = nullptr;
0082 
0083   G4double fDirectCS = 0.;
0084 };
0085 
0086 #endif