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 // ------------------------------------------------------------------- 00028 // GEANT4 Class file 00029 // 00030 // 00031 // File name: G4XPDGTotal 00032 // 00033 // Author: Maria Grazia Pia (MariaGrazia.Pia@genova.infn.it) 00034 // 00035 // Creation date: 15 April 1999 00036 // 00037 // Modifications: 00038 // 00039 // ------------------------------------------------------------------- 00040 00041 #ifndef G4XPDGTOTAL_HH 00042 #define G4XPDGTOTAL_HH 00043 00044 #include "globals.hh" 00045 #include "G4VCrossSectionSource.hh" 00046 #include <algorithm> 00047 #include <map> 00048 #include <vector> 00049 00050 typedef std::pair<G4ParticleDefinition *,G4ParticleDefinition *> G4pDefPair; 00051 00052 class G4KineticTrack; 00053 class G4ParticleDefinition; 00054 00055 class G4XPDGTotal : public G4VCrossSectionSource 00056 { 00057 00058 public: 00059 00060 G4XPDGTotal(); 00061 00062 virtual ~G4XPDGTotal(); 00063 00064 G4bool operator==(const G4XPDGTotal &right) const; 00065 G4bool operator!=(const G4XPDGTotal &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 private: 00081 00082 G4double PDGTotal(G4double coeff, G4double ecm) const; 00083 00084 G4XPDGTotal(const G4XPDGTotal &right); 00085 const G4XPDGTotal& operator=(const G4XPDGTotal &right); 00086 00087 static const G4double _lowLimit; 00088 static const G4double _highLimit; 00089 00090 static const G4int nFit; 00091 static const G4double ppPDGFit[5]; 00092 static const G4double npPDGFit[5]; 00093 static const G4double pipPDGFit[5]; 00094 static const G4double KpPDGFit[5]; 00095 static const G4double KnPDGFit[5]; 00096 static const G4double gammapPDGFit[5]; 00097 static const G4double gammagammaPDGFit[5]; 00098 00099 std::map <G4pDefPair, std::vector<G4double>, std::less<G4pDefPair> > xMap; 00100 typedef std::map <G4pDefPair, std::vector<G4double>, std::less<G4pDefPair> > PairDoubleMap; 00101 00102 // G4double eMinFit; 00103 // G4double eMaxFit; 00104 // G4double xFit; 00105 // G4double y1Fit; 00106 // G4double y2Fit; 00107 00108 }; 00109 00110 #endif