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$ 00028 // 00029 // ---------------- G4QChipolino ---------------- 00030 // by Mikhail Kossov, Sept 1999. 00031 // class header for Chipolino (Double Hadron) in CHIPS Model 00032 // ---------------------------------------------------------- 00033 // Short description: In the CHIPS model not only hadrons are considered, 00034 // but the di-hadrons, which can not be convereged to the quark content 00035 // of only one hadron (e.g. pi+pi+, K+p, Delta++p etc). This kind of 00036 // hadronic states, which can be easily decayed in two hadrons, is called 00037 // Chipolino-particle in the model. 00038 // ---------------------------------------------------------------------- 00039 00040 #ifndef G4QChipolino_h 00041 #define G4QChipolino_h 1 00042 00043 #include "globals.hh" 00044 #include "G4QPDGCode.hh" 00045 00046 class G4QChipolino 00047 { 00048 public: 00049 // Constructors 00050 G4QChipolino(); // Default Constructor 00051 G4QChipolino(G4QContent& QContent); // Construction by Quark Content 00052 G4QChipolino(const G4QChipolino& right); // Copy constructor by value 00053 G4QChipolino(G4QChipolino* right); // Copy constructor by pointer 00054 00055 ~G4QChipolino(); // Public Destructor 00056 00057 // Operators 00058 const G4QChipolino& operator=(const G4QChipolino& right); 00059 G4bool operator==(const G4QChipolino& right) const; 00060 G4bool operator!=(const G4QChipolino& right) const; 00061 00062 // Selectors 00063 G4double GetMass(); // Get ChipolinoMass (MinDoubleHadronMass) 00064 G4double GetMass2(); // Get mass^2 of the Chipolino 00065 G4QPDGCode GetQPDG1(); // Get 1-st QPDG of the Chipolino 00066 G4QPDGCode GetQPDG2(); // Get 2-nd QPDG of the Chipolino 00067 G4QContent GetQContent() const; // Get private quark content of the Chipolino 00068 G4QContent GetQContent1() const; // Get 1-st quark content of the Chipolino 00069 G4QContent GetQContent2() const; // Get 2-st quark content of the Chipolino 00070 00071 // Modifiers 00072 void SetHadronQPDG(const G4QPDGCode& QPDG); // Set QPDG of 1-st Hadron of the Chipolino 00073 void SetHadronPDGCode(const G4int& PDGCode);// Set PDGCode of 1st Hadron of the Chipolino 00074 void SetHadronQCont(const G4QContent& QC); // Set QContent of 1st Hadron of theChipolino 00075 00076 private: 00077 G4QPDGCode theQPDG1; // QPDG of the 1-st Hadron of the Chipolino 00078 G4QPDGCode theQPDG2; // QPDG of the 2-nd Hadron of the Chipolino 00079 G4QContent theQCont; // QuarkContent of the whole Chipolino 00080 G4QContent theQCont1; // QuarkCont. of the 1st Hadron of Chipolino 00081 G4double minM; // Minimal Mass of Chipolino 00082 }; 00083 00084 std::ostream& operator<<(std::ostream& lhs, G4QChipolino& rhs); 00085 //std::ostream& operator<<(std::ostream& lhs, const G4QChipolino& rhs); 00086 inline G4bool G4QChipolino::operator==(const G4QChipolino& rhs) const {return this==&rhs;} 00087 inline G4bool G4QChipolino::operator!=(const G4QChipolino& rhs) const {return this!=&rhs;} 00088 00089 inline G4double G4QChipolino::GetMass() {return minM;} 00090 inline G4double G4QChipolino::GetMass2() {return minM*minM;} 00091 inline G4QPDGCode G4QChipolino::GetQPDG1() {return theQPDG1;} 00092 inline G4QPDGCode G4QChipolino::GetQPDG2() {return theQPDG2;} 00093 inline G4QContent G4QChipolino::GetQContent1() const {return theQCont1;} 00094 inline G4QContent G4QChipolino::GetQContent2() const {return theQCont - theQCont1;} 00095 inline G4QContent G4QChipolino::GetQContent() const {return theQCont;} 00096 00097 00098 inline void G4QChipolino::SetHadronQPDG(const G4QPDGCode& newQPDG) 00099 { 00100 theQPDG1 = newQPDG; 00101 theQCont1 = theQPDG1.GetQuarkContent(); 00102 G4QContent theQCont2 = theQCont - theQCont1; 00103 theQPDG2 = G4QPDGCode(theQCont2.GetSPDGCode()); 00104 } 00105 00106 inline void G4QChipolino::SetHadronPDGCode(const G4int& PDGCode) 00107 { 00108 theQPDG1.SetPDGCode(PDGCode); 00109 SetHadronQPDG(theQPDG1); 00110 } 00111 inline void G4QChipolino::SetHadronQCont(const G4QContent& QCont) 00112 {SetHadronPDGCode(QCont.GetSPDGCode());} 00113 00114 #endif 00115 00116 00117 00118 00119