G4eplusPolarizedAnnihilation.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: G4eplusPolarizedAnnihilation.hh 69847 2013-05-16 09:36:18Z gcosmo $
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class header file
00031 //
00032 //
00033 // File name:     G4eplusPolarizedAnnihilation
00034 //
00035 // Author:        A. Schaelicke on base of Vladimir Ivanchenko / Michel Maire code
00036 //
00037 // Creation date: 02.07.2006
00038 //
00039 // Modifications:
00040 // 26-07-06 modified cross section  (P. Starovoitov)
00041 // 21-08-06 interface updated   (A. Schaelicke)
00042 // 11-06-07, add PostStepGetPhysicalInteractionLength (A.Schalicke)
00043 //
00044 //
00045 // Class Description:
00046 //
00047 // Polarized process of e+ annihilation into 2 gammas
00048 //
00049 
00050 // -------------------------------------------------------------------
00051 //
00052 
00053 #ifndef G4eplusPolarizedAnnihilation_h
00054 #define G4eplusPolarizedAnnihilation_h 1
00055 
00056 #include "G4VEmProcess.hh"
00057 #include "G4Positron.hh"
00058 #include "G4VEmModel.hh"
00059 
00060 
00061 class G4PolarizedAnnihilationModel;
00062 
00063 class G4eplusPolarizedAnnihilation : public G4VEmProcess
00064 {
00065 
00066 public:
00067 
00068   G4eplusPolarizedAnnihilation(const G4String& name = "pol-annihil");
00069 
00070   virtual ~G4eplusPolarizedAnnihilation();
00071 
00072   virtual G4bool IsApplicable(const G4ParticleDefinition& p);
00073 
00074   virtual G4VParticleChange* AtRestDoIt(
00075                              const G4Track& track,
00076                              const G4Step& stepData);
00077 
00078   G4double AtRestGetPhysicalInteractionLength(
00079                              const G4Track& track,
00080                              G4ForceCondition* condition
00081                             );
00082 
00083   // Print out of the class parameters
00084   virtual void PrintInfo();
00085 
00086   // for polarization
00087   //  G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
00088 
00089   G4double GetMeanFreePath(const G4Track& track,
00090                               G4double previousStepSize,
00091                               G4ForceCondition* condition);
00092 
00093   G4double PostStepGetPhysicalInteractionLength(
00094                              const G4Track& track,
00095                              G4double   previousStepSize,
00096                              G4ForceCondition* condition
00097                             );
00098 
00099   virtual void BuildPhysicsTable(const G4ParticleDefinition&);
00100   void BuildAsymmetryTable(const G4ParticleDefinition& part);
00101   virtual void PreparePhysicsTable(const G4ParticleDefinition&);
00102 
00103   G4double ComputeAsymmetry(G4double energy,
00104                             const G4MaterialCutsCouple* couple,
00105                             const G4ParticleDefinition& particle,
00106                             G4double cut,
00107                             G4double &tasm);
00108 
00109 protected:
00110 
00111   virtual void InitialiseProcess(const G4ParticleDefinition*);
00112 
00113 private:
00114   
00115   G4bool isInitialised;
00116 
00117   // for polarization:
00118   G4PolarizedAnnihilationModel* emModel;
00119   G4ThreeVector theTargetPolarization;
00120 
00121   G4PhysicsTable* theAsymmetryTable;          // table for cross section assym.
00122   G4PhysicsTable* theTransverseAsymmetryTable; // table for transverse cross section assym.
00123 };
00124 
00125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00127 
00128 inline G4bool G4eplusPolarizedAnnihilation::IsApplicable(const G4ParticleDefinition& p)
00129 {
00130   return (&p == G4Positron::Positron());
00131 }
00132 
00133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00134 
00135 inline G4double G4eplusPolarizedAnnihilation::AtRestGetPhysicalInteractionLength(
00136                               const G4Track&, G4ForceCondition* condition)
00137 {
00138   *condition = NotForced;
00139   return 0.0;
00140 }
00141 
00142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00143 
00144 #endif

Generated on Mon May 27 17:48:10 2013 for Geant4 by  doxygen 1.4.7