Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:04

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 //
0028 // ------------------------------------------------------------
0029 //      GEANT 4 class header file
0030 //      CERN Geneva Switzerland
0031 //
0032 
0033 // --------- G4LowEnergyPolarizedCompton class -----
0034 //
0035 //           by G.Depaola & F.Longo (21 may 2001)
0036 // 24 May 2001 - MGP      Modified to inherit from G4VDiscreteProcess
0037 // 25 May 2001 - MGP      Added protections to avoid crashes
0038 //
0039 // 17 October 2001 - F.Longo  Major revision according to design iteration
0040 //
0041 // 21 February 2002 - F.Longo Revisions with A.Zoglauer and G.Depaola
0042 //                            - better description of parallelism
0043 //                            - system of ref change method improved
0044 //
0045 //
0046 // Class description:
0047 // Low Energy electromagnetic process, Polarised Compton scattering
0048 // Further documentation available from http://www.ge.infn.it/geant4/lowE
0049 
0050 // ------------------------------------------------------------
0051 
0052 #ifndef G4RDLOWENERGYPOLARIZEDCOMPTON_H
0053 #define G4RDLOWENERGYPOLARIZEDCOMPTON_H 1
0054 
0055 #include "globals.hh"
0056 #include "G4VDiscreteProcess.hh"
0057 
0058 // Doppler Broadening
0059 
0060 #include "G4RDShellData.hh"
0061 #include "G4RDDopplerProfile.hh"
0062 
0063 
0064 class G4Track;
0065 class G4Step;
0066 class G4ParticleDefinition;
0067 class G4VParticleChange;
0068 class G4RDVEMDataSet;
0069 class G4RDVCrossSectionHandler;
0070 class G4RDVRangeTest;
0071 
0072 class G4LowEnergyPolarizedCompton : public  G4VDiscreteProcess
0073 {  
0074 public:  
0075   
0076   G4LowEnergyPolarizedCompton(const G4String& processName = "polarLowEnCompt");
0077   
0078   ~G4LowEnergyPolarizedCompton();
0079 
0080   G4bool IsApplicable(const G4ParticleDefinition& definition);
0081   
0082   void BuildPhysicsTable(const G4ParticleDefinition& photon);
0083   G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep);
0084   
0085   
0086   // For testing purpose only
0087   G4double DumpMeanFreePath(const G4Track& aTrack, 
0088                 G4double previousStepSize, 
0089                 G4ForceCondition* condition) 
0090   { return GetMeanFreePath(aTrack, previousStepSize, condition); }
0091   
0092   
0093 protected:
0094   
0095   G4double GetMeanFreePath(const G4Track& aTrack, 
0096                G4double previousStepSize, 
0097                G4ForceCondition* condition);
0098 private:
0099 
0100   // Hide copy constructor and assignment operator as private 
0101 
0102   G4LowEnergyPolarizedCompton& operator=(const G4LowEnergyPolarizedCompton& 
0103                      right);
0104   G4LowEnergyPolarizedCompton(const G4LowEnergyPolarizedCompton& );
0105   
0106   G4double lowEnergyLimit;  // low energy limit  applied to the process
0107   G4double highEnergyLimit; // high energy limit applied to the process
0108   
0109   G4RDVEMDataSet* meanFreePathTable;
0110   G4RDVEMDataSet* scatterFunctionData;
0111 
0112   G4RDVCrossSectionHandler* crossSectionHandler;
0113   G4RDVRangeTest* rangeTest;
0114 
0115   const G4double intrinsicLowEnergyLimit; // intrinsic validity range
0116   const G4double intrinsicHighEnergyLimit;
0117 
0118   // specific methods for polarization 
0119   
0120   G4ThreeVector GetRandomPolarization(G4ThreeVector& direction0); // Random Polarization
0121   G4ThreeVector GetPerpendicularPolarization(const G4ThreeVector& direction0, const G4ThreeVector& polarization0) const;
0122   
0123   G4ThreeVector SetPerpendicularVector(G4ThreeVector& a); // temporary
0124   G4ThreeVector SetNewPolarization(G4double epsilon, G4double sinSqrTheta, 
0125                    G4double phi, G4double cosTheta);
0126   G4double SetPhi(G4double, G4double);
0127   
0128   void SystemOfRefChange(G4ThreeVector& direction0, G4ThreeVector& direction1, 
0129              G4ThreeVector& polarization0, G4ThreeVector& polarization1);
0130   
0131   // Doppler Broadening
0132  
0133   G4RDShellData shellData;
0134   G4RDDopplerProfile profileData;
0135 
0136 
0137 };
0138 
0139 #endif
0140  
0141 
0142 
0143 
0144 
0145 
0146 
0147 
0148