[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
[1055] | 27 | // $Id: G4QChipolino.hh,v 1.24 2009/02/23 09:49:24 mkossov Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ |
---|
[819] | 29 | // |
---|
| 30 | // ---------------- G4QChipolino ---------------- |
---|
| 31 | // by Mikhail Kossov, Sept 1999. |
---|
| 32 | // class header for Chipolino (Double Hadron) in CHIPS Model |
---|
| 33 | // ---------------------------------------------------------- |
---|
[1055] | 34 | // Short description: In the CHIPS model not only hadrons are considered, |
---|
| 35 | // but the di-hadrons, which can not be convereged to the quark content |
---|
| 36 | // of only one hadron (e.g. pi+pi+, K+p, Delta++p etc). This kind of |
---|
| 37 | // hadronic states, which can be easily decayed in two hadrons, is called |
---|
| 38 | // Chipolino-particle in the model. |
---|
| 39 | // ---------------------------------------------------------------------- |
---|
[819] | 40 | |
---|
| 41 | #ifndef G4QChipolino_h |
---|
| 42 | #define G4QChipolino_h 1 |
---|
| 43 | |
---|
| 44 | #include "globals.hh" |
---|
| 45 | #include "G4QPDGCode.hh" |
---|
| 46 | |
---|
| 47 | class G4QChipolino |
---|
| 48 | { |
---|
| 49 | public: |
---|
| 50 | // Constructors |
---|
| 51 | G4QChipolino(); // Default Constructor |
---|
| 52 | G4QChipolino(G4QContent& QContent); // Construction by Quark Content |
---|
| 53 | G4QChipolino(const G4QChipolino& right); // Copy constructor by value |
---|
| 54 | G4QChipolino(G4QChipolino* right); // Copy constructor by pointer |
---|
| 55 | |
---|
| 56 | ~G4QChipolino(); // Public Destructor |
---|
| 57 | |
---|
| 58 | // Operators |
---|
| 59 | const G4QChipolino& operator=(const G4QChipolino& right); |
---|
| 60 | G4bool operator==(const G4QChipolino& right) const; |
---|
| 61 | G4bool operator!=(const G4QChipolino& right) const; |
---|
| 62 | |
---|
| 63 | // Selectors |
---|
[1055] | 64 | G4double GetMass(); // Get ChipolinoMass (MinDoubleHadronMass) |
---|
[819] | 65 | G4double GetMass2(); // Get mass^2 of the Chipolino |
---|
| 66 | G4QPDGCode GetQPDG1(); // Get 1-st QPDG of the Chipolino |
---|
| 67 | G4QPDGCode GetQPDG2(); // Get 2-nd QPDG of the Chipolino |
---|
| 68 | G4QContent GetQContent() const; // Get private quark content of the Chipolino |
---|
| 69 | G4QContent GetQContent1() const; // Get 1-st quark content of the Chipolino |
---|
| 70 | G4QContent GetQContent2() const; // Get 2-st quark content of the Chipolino |
---|
| 71 | |
---|
| 72 | // Modifiers |
---|
| 73 | void SetHadronQPDG(const G4QPDGCode& QPDG); // Set QPDG of 1-st Hadron of the Chipolino |
---|
[1055] | 74 | void SetHadronPDGCode(const G4int& PDGCode);// Set PDGCode of 1st Hadron of the Chipolino |
---|
| 75 | void SetHadronQCont(const G4QContent& QC); // Set QContent of 1st Hadron of theChipolino |
---|
[819] | 76 | |
---|
| 77 | private: |
---|
| 78 | G4QPDGCode theQPDG1; // QPDG of the 1-st Hadron of the Chipolino |
---|
| 79 | G4QPDGCode theQPDG2; // QPDG of the 2-nd Hadron of the Chipolino |
---|
[1055] | 80 | G4QContent theQCont; // QuarkContent of the whole Chipolino |
---|
| 81 | G4QContent theQCont1; // QuarkCont. of the 1st Hadron of Chipolino |
---|
[819] | 82 | G4double minM; // Minimal Mass of Chipolino |
---|
| 83 | }; |
---|
| 84 | |
---|
| 85 | std::ostream& operator<<(std::ostream& lhs, G4QChipolino& rhs); |
---|
| 86 | //std::ostream& operator<<(std::ostream& lhs, const G4QChipolino& rhs); |
---|
| 87 | inline G4bool G4QChipolino::operator==(const G4QChipolino& rhs) const {return this==&rhs;} |
---|
| 88 | inline G4bool G4QChipolino::operator!=(const G4QChipolino& rhs) const {return this!=&rhs;} |
---|
| 89 | |
---|
| 90 | inline G4double G4QChipolino::GetMass() {return minM;} |
---|
| 91 | inline G4double G4QChipolino::GetMass2() {return minM*minM;} |
---|
| 92 | inline G4QPDGCode G4QChipolino::GetQPDG1() {return theQPDG1;} |
---|
| 93 | inline G4QPDGCode G4QChipolino::GetQPDG2() {return theQPDG2;} |
---|
| 94 | inline G4QContent G4QChipolino::GetQContent1() const {return theQCont1;} |
---|
| 95 | inline G4QContent G4QChipolino::GetQContent2() const {return theQCont - theQCont1;} |
---|
| 96 | inline G4QContent G4QChipolino::GetQContent() const {return theQCont;} |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | inline void G4QChipolino::SetHadronQPDG(const G4QPDGCode& newQPDG) |
---|
| 100 | { |
---|
| 101 | theQPDG1 = newQPDG; |
---|
| 102 | theQCont1 = theQPDG1.GetQuarkContent(); |
---|
| 103 | G4QContent theQCont2 = theQCont - theQCont1; |
---|
| 104 | theQPDG2 = G4QPDGCode(theQCont2.GetSPDGCode()); |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | inline void G4QChipolino::SetHadronPDGCode(const G4int& PDGCode) |
---|
| 108 | { |
---|
| 109 | theQPDG1.SetPDGCode(PDGCode); |
---|
| 110 | SetHadronQPDG(theQPDG1); |
---|
| 111 | } |
---|
| 112 | inline void G4QChipolino::SetHadronQCont(const G4QContent& QCont) |
---|
| 113 | {SetHadronPDGCode(QCont.GetSPDGCode());} |
---|
| 114 | |
---|
| 115 | #endif |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | |
---|