G4UPiNuclearCrossSection.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 // Calculation of the total, elastic and inelastic cross-sections
00027 // based on Barashenkov parametrisations of pion data
00028 //
00029 // 16.08.06 V.Ivanchenko - first implementation
00030 // 22.01.07 V.Ivanchenko - add cross section interfaces with Z and A
00031 // 05.03.07 V.Ivanchenko - add IfZAApplicable
00032 //
00033 
00034 
00035 #ifndef G4UPiNuclearCrossSection_h
00036 #define G4UPiNuclearCrossSection_h
00037 
00038 #include "G4VCrossSectionDataSet.hh"
00039 #include "G4DynamicParticle.hh"
00040 #include "G4DataVector.hh"
00041 #include "G4HadTmpUtil.hh"
00042 #include "globals.hh"
00043 #include <vector>
00044 
00045 class G4PhysicsTable;
00046 
00047 class G4UPiNuclearCrossSection : public G4VCrossSectionDataSet
00048 {
00049 public:
00050   
00051   G4UPiNuclearCrossSection();
00052 
00053   virtual ~G4UPiNuclearCrossSection();
00054 
00055   virtual
00056   G4bool IsElementApplicable(const G4DynamicParticle* aParticle, 
00057                              G4int Z, const G4Material*);
00058 
00059   G4double GetElasticCrossSection(const G4DynamicParticle* aParticle, 
00060                                   G4int Z, G4int A);
00061 
00062   G4double GetInelasticCrossSection(const G4DynamicParticle* aParticle, 
00063                                     G4int Z, G4int A);
00064 
00065   void BuildPhysicsTable(const G4ParticleDefinition&);
00066 
00067   void DumpPhysicsTable(const G4ParticleDefinition&);
00068 
00069   virtual void CrossSectionDescription(std::ostream&) const;
00070   
00071 private:
00072 
00073   void AddDataSet(const G4String& p, const G4double* tot, 
00074                   const G4double* in, const G4double* e, G4int n); 
00075 
00076   G4double Interpolate(G4int Z, G4int A, G4double ekin, 
00077                        G4PhysicsTable*);
00078 
00079   G4int              NZ;
00080   std::vector<G4int> theZ;
00081   G4DataVector       theA;
00082   G4PhysicsTable*    piPlusElastic;
00083   G4PhysicsTable*    piPlusInelastic;
00084   G4PhysicsTable*    piMinusElastic;
00085   G4PhysicsTable*    piMinusInelastic;
00086 
00087   G4double           aPower;
00088   G4double           elow;
00089   G4double           elowest;
00090   G4double           APower[93];
00091 
00092   const G4ParticleDefinition* piPlus;
00093   const G4ParticleDefinition* piMinus;
00094   G4bool isInitialized;
00095 };
00096 
00097 #endif

Generated on Mon May 27 17:50:07 2013 for Geant4 by  doxygen 1.4.7