G4XPDGElastic.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 //
00027 // $Id: G4XPDGElastic.hh,v 1.3 2010-03-12 15:45:18 gunter Exp $ //
00028 // ---------------------------------------------------------------
00029 //      GEANT4 Class file
00030 //
00031 //
00032 //      File name:     G4XPDGElastic
00033 //
00034 //      Author:        Maria Grazia Pia (MariaGrazia.Pia@genova.infn.it)
00035 // 
00036 //      Creation date: 15 April 1999
00037 //
00038 //      Modifications: 
00039 //      
00040 // -------------------------------------------------------------------
00041 
00042 #ifndef G4XPDGELASTIC_HH
00043 #define G4XPDGELASTIC_HH
00044 
00045 #include "globals.hh"
00046 #include "G4VCrossSectionSource.hh"
00047 #include <algorithm>
00048 #include <map>
00049 
00050 typedef std::pair<G4ParticleDefinition *,G4ParticleDefinition *> G4pDefPair;
00051 
00052 class G4KineticTrack;
00053 class G4ParticleDefinition;
00054 
00055 class G4XPDGElastic : public G4VCrossSectionSource
00056 {
00057 
00058 public:
00059 
00060   G4XPDGElastic();
00061 
00062   virtual ~G4XPDGElastic();
00063 
00064   G4bool operator==(const G4XPDGElastic &right) const;
00065   G4bool operator!=(const G4XPDGElastic &right) const;
00066 
00067   virtual G4double CrossSection(const G4KineticTrack& trk1, const G4KineticTrack& trk2) const;
00068  
00069   virtual const G4CrossSectionVector* GetComponents() const { return 0; }
00070 
00071   virtual G4String Name() const;
00072 
00073   virtual G4bool IsValid(G4double e) const;
00074 
00075   virtual G4double LowLimit() const { return _lowLimit; }
00076 
00077 
00078 protected:
00079 
00080 
00081 private:  
00082 
00083   G4XPDGElastic(const G4XPDGElastic &right);
00084   const G4XPDGElastic& operator=(const G4XPDGElastic &right);
00085   
00086   static const G4double _lowLimit;
00087   static const G4double _highLimit;
00088 
00089   static const G4int nPar;
00090   static const G4double pPiPlusPDGFit[7];
00091   static const G4double pPiMinusPDGFit[7];
00092   static const G4double pKPlusPDGFit[7];
00093   static const G4double pKMinusPDGFit[7];
00094   static const G4double ppPDGFit[7];
00095   static const G4double ppbarPDGFit[7];
00096   static const G4double npbarPDGFit[7];
00097 
00098   std::map <G4pDefPair, std::vector<G4double>, std::less<G4pDefPair> > xMap;
00099 
00100   typedef std::map <G4pDefPair, std::vector<G4double>, std::less<G4pDefPair> > PairDoubleMap;
00101 
00102   //  G4double pMinFit;
00103   //  G4double pMaxFit;
00104   //  G4double aFit;
00105   //  G4double bFit;
00106   //  G4double nFit;
00107   //  G4double cFit;
00108   //  G4double dFit;
00109 
00110 };
00111 
00112 #endif

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