G4SPBaryon.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 #ifndef G4SPBaryon_h
00027 #define G4SPBaryon_h
00028 
00029 #include "globals.hh"
00030 
00031 #include "G4Proton.hh"
00032 #include "G4Neutron.hh"
00033 #include "G4SigmaPlus.hh"
00034 #include "G4SigmaZero.hh"
00035 #include "G4SigmaMinus.hh"
00036 #include "G4XiMinus.hh"
00037 #include "G4XiZero.hh"
00038 #include "G4Lambda.hh"
00039 #include "G4OmegaMinus.hh"
00040 
00041 #include "G4AntiProton.hh"
00042 #include "G4AntiNeutron.hh"
00043 #include "G4AntiSigmaPlus.hh"
00044 #include "G4AntiSigmaZero.hh"
00045 #include "G4AntiSigmaMinus.hh"
00046 #include "G4AntiXiMinus.hh"
00047 #include "G4AntiXiZero.hh"
00048 #include "G4AntiLambda.hh"
00049 #include "G4AntiOmegaMinus.hh"
00050 
00051 #include "G4ParticleDefinition.hh"
00052 #include "G4SPPartonInfo.hh"
00053 #include <vector>
00054 #include "globals.hh"
00055 
00056 class G4SPBaryon
00057 {
00058 public:
00059         G4SPBaryon(G4Proton * aProton);
00060         G4SPBaryon(G4Neutron * aNeutron);
00061         G4SPBaryon(G4Lambda * aLambda);
00062         G4SPBaryon(G4SigmaPlus * aSigmaPlus);
00063         G4SPBaryon(G4SigmaZero * aSigmaZero);
00064         G4SPBaryon(G4SigmaMinus * aSigmaMinus);
00065         G4SPBaryon(G4XiMinus * aXiMinus);
00066         G4SPBaryon(G4XiZero * aXiZero);
00067         G4SPBaryon(G4OmegaMinus * anOmegaMinus);
00068 
00069         G4SPBaryon(G4AntiProton * aAntiProton);
00070         G4SPBaryon(G4AntiNeutron * aAntiNeutron);
00071         G4SPBaryon(G4AntiLambda * aAntiLambda);
00072         G4SPBaryon(G4AntiSigmaPlus * aAntiSigmaPlus);
00073         G4SPBaryon(G4AntiSigmaZero * aAntiSigmaZero);
00074         G4SPBaryon(G4AntiSigmaMinus * aAntiSigmaMinus);
00075         G4SPBaryon(G4AntiXiMinus * aAntiXiMinus);
00076         G4SPBaryon(G4AntiXiZero * aAntiXiZero);
00077         G4SPBaryon(G4AntiOmegaMinus * anAntiOmegaMinus);
00078 
00079         G4SPBaryon(G4ParticleDefinition * aDefinition);
00080 
00081     ~G4SPBaryon();
00082 private:
00083         G4bool operator == ( const G4SPBaryon & aBaryon) const;
00084 
00085 public:
00086         G4ParticleDefinition * GetDefinition() {return theDefinition;}
00087         void SampleQuarkAndDiquark(G4int & quark, G4int & diQuark) const;
00088         void FindDiquark(G4int quark, G4int & diQuark) const;
00089         G4int FindQuark(G4int diQuark) const;
00090         G4double GetProbability(G4int diQuark) const;
00091         G4int MatchDiQuarkAndGetQuark(const G4SPBaryon & aBaryon, G4int & aDiQuark) const;
00092 
00093 private:
00094 
00095         G4ParticleDefinition * theDefinition;
00096         std::vector<G4SPPartonInfo *> thePartonInfo;
00097 };
00098 
00099 #endif

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