// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4QNucleus.hh,v 1.47 2010-06-10 08:37:27 mkossov Exp $ // GEANT4 tag $Name: not supported by cvs2svn $ // // ---------------- G4QNucleus ---------------- // by Mikhail Kossov, Sept 1999. // class header for the nuclei and nuclear environment of the CHIPS Model // ----------------------------------------------------------------------- // Short description: a class describing properties of nuclei, which // are necessary for the CHIPS Model. // ----------------------------------------------------------------------- #ifndef G4QNucleus_h #define G4QNucleus_h 1 #include "G4QCandidateVector.hh" #include "G4QHadronVector.hh" #include "G4LorentzRotation.hh" #include "G4QChipolino.hh" #include #include #include "globals.hh" #include "G4RandomDirection.hh" class G4QNucleus : public G4QHadron { public: G4QNucleus(); // Default Constructor G4QNucleus(G4int nucPDG); // At Rest PDG-Constructor G4QNucleus(G4LorentzVector p, G4int nucPDG); // Full PDG-Constructor G4QNucleus(G4QContent nucQC); // At Rest QuarkCont-Constructor G4QNucleus(G4QContent nucQC, G4LorentzVector p); // Full QuarkCont-Constructor G4QNucleus(G4int z, G4int n, G4int s=0); // At Rest ZNS-Constructor G4QNucleus(G4int z, G4int n, G4int s, G4LorentzVector p);// Full ZNS-Constructor G4QNucleus(G4QNucleus* right, G4bool cop3D = false); // Copy Constructor by pointer G4QNucleus(const G4QNucleus &right, G4bool cop3D=false); // Copy Constructor by value ~G4QNucleus(); // Public Destructor // Overloaded Operators const G4QNucleus& operator=(const G4QNucleus& right); G4bool operator==(const G4QNucleus &right) const {return this==&right;} G4bool operator!=(const G4QNucleus &right) const {return this!=&right;} // Specific Selectors G4int GetPDG() const {return 90000000+1000*(1000*S+Z)+N;}// PDG Code of Nucleus G4int GetZ() const {return Z;} // Get a#of protons G4int GetN() const {return N;} // Get a#of neutrons G4int GetS() const {return S;} // Get a#of lambdas G4int GetA() const {return Z+N+S;} // Get A of the nucleus G4int GetDZ() const {return dZ;} // Get a#of protons in dense region G4int GetDN() const {return dN;} // Get a#of neutrons in dense region G4int GetDS() const {return dS;} // Get a#of lambdas in dense region G4int GetDA() const {return dZ+dN+dS;} // Get A of the dense part of nucleus G4int GetMaxClust() const {return maxClust;} // Get Max BarNum of Clusters G4double GetProbability(G4int bn=0) const {return probVect[bn];} // clust(BarN)probabil G4double GetMZNS() const {return GetQPDG().GetNuclMass(Z,N,S);} // not H or Q G4double GetTbIntegral(); // Calculate the integral of T(b) G4double GetGSMass() const {return GetQPDG().GetMass();}//Nucleus GSMass (not Hadron) G4QContent GetQCZNS() const // Get ZNS quark content of Nucleus { if(S>=0) return G4QContent(Z+N+N+S,Z+Z+N+S,S,0,0,0); else return G4QContent(Z+N+N+S,Z+Z+N+S,0,0,0,-S); } G4int GetNDefMesonC() const{return nDefMesonC;}; // max#of predefed mesonCandidates G4int GetNDefBaryonC()const{return nDefBaryonC;};// max#of predefed baryonCandidates G4double GetDensity(const G4ThreeVector&aPos) {return rho0*GetRelativeDensity(aPos);} G4double GetRho0() {return rho0;} // One nucleon prob-density G4double GetRelativeDensity(const G4ThreeVector& aPosition); // Densyty/rho0 G4double GetRelWSDensity(const G4double& r) // Wood-Saxon rho/rho0(r) {return 1./(1.+std::exp((r-radius)/WoodSaxonSurf));} G4double GetRelOMDensity(const G4double& r2){return std::exp(-r2/radius);} // OscModelRelDens G4double GetRadius(const G4double maxRelativeDenisty=0.5); // Radius of %ofDensity G4double GetOuterRadius(); // Get radius of the most far nucleon G4double GetDeriv(const G4ThreeVector& point); // Derivitive of density G4double GetFermiMomentum(G4double density); // Returns modul of FermyMomentum(dens) G4QHadron* GetNextNucleon() { //G4cout<<"G4QNucleus::GetNextNucleon: cN="< Tb; // T(b) function with step .1 fm (@@ make .1 a parameter) G4bool TbActive; // Flag that the T(b) is activated G4bool RhoActive; // Flag that the Density is activated }; std::ostream& operator<<(std::ostream& lhs, G4QNucleus& rhs); std::ostream& operator<<(std::ostream& lhs, const G4QNucleus& rhs); #endif