source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QChipolino.hh @ 962

Last change on this file since 962 was 962, checked in by garnier, 15 years ago

update processes

File size: 5.3 KB
Line 
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//
27// $Id: G4QChipolino.hh,v 1.23 2006/06/29 20:06:03 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//      ---------------- G4QChipolino ----------------
31//             by Mikhail Kossov, Sept 1999.
32//  class header for Chipolino (Double Hadron) in CHIPS Model
33// ----------------------------------------------------------
34
35#ifndef G4QChipolino_h
36#define G4QChipolino_h 1
37
38#include "globals.hh"
39#include "G4QPDGCode.hh"
40
41class G4QChipolino
42{
43public:
44  // Constructors
45  G4QChipolino();                                      // Default Constructor
46  G4QChipolino(G4QContent& QContent);                  // Construction by Quark Content
47  G4QChipolino(const G4QChipolino& right);             // Copy constructor by value
48  G4QChipolino(G4QChipolino* right);                   // Copy constructor by pointer
49
50  ~G4QChipolino();                                     // Public Destructor
51
52  // Operators
53  const G4QChipolino& operator=(const G4QChipolino& right);
54  G4bool              operator==(const G4QChipolino& right) const;
55  G4bool              operator!=(const G4QChipolino& right) const;
56
57  // Selectors
58  G4double              GetMass();            // Get mass of the Chipolino (MinDoubleHadronMass)
59  G4double              GetMass2();           // Get mass^2 of the Chipolino
60  G4QPDGCode            GetQPDG1();           // Get 1-st QPDG of the Chipolino
61  G4QPDGCode            GetQPDG2();           // Get 2-nd QPDG of the Chipolino
62  G4QContent            GetQContent() const;  // Get private quark content of the Chipolino
63  G4QContent            GetQContent1() const; // Get 1-st quark content of the Chipolino
64  G4QContent            GetQContent2() const; // Get 2-st quark content of the Chipolino
65
66  // Modifiers
67  void SetHadronQPDG(const G4QPDGCode& QPDG); // Set QPDG of 1-st Hadron of the Chipolino
68  void SetHadronPDGCode(const G4int& PDGCode);// Set PDGCode of 1-st Hadron of the Chipolino
69  void SetHadronQCont(const G4QContent& QC);  // Set QContent of 1-st Hadron of the Chipolino
70
71private: 
72  G4QPDGCode            theQPDG1;             // QPDG of the 1-st Hadron of the Chipolino
73  G4QPDGCode            theQPDG2;             // QPDG of the 2-nd Hadron of the Chipolino
74  G4QContent            theQCont;             // Quark Content of the whole Chipolino
75  G4QContent            theQCont1;            // Quark Content of the 1-st Hadron of Chipolino
76  G4double              minM;                 // Minimal Mass of Chipolino
77};
78
79std::ostream& operator<<(std::ostream& lhs, G4QChipolino& rhs);
80//std::ostream& operator<<(std::ostream& lhs, const G4QChipolino& rhs);
81inline G4bool G4QChipolino::operator==(const G4QChipolino& rhs) const {return this==&rhs;}
82inline G4bool G4QChipolino::operator!=(const G4QChipolino& rhs) const {return this!=&rhs;}
83 
84inline G4double   G4QChipolino::GetMass()      {return minM;}
85inline G4double   G4QChipolino::GetMass2()     {return minM*minM;}
86inline G4QPDGCode G4QChipolino::GetQPDG1()     {return theQPDG1;}
87inline G4QPDGCode G4QChipolino::GetQPDG2()     {return theQPDG2;}
88inline G4QContent G4QChipolino::GetQContent1() const {return theQCont1;}
89inline G4QContent G4QChipolino::GetQContent2() const {return theQCont - theQCont1;}
90inline G4QContent G4QChipolino::GetQContent()  const {return theQCont;}
91
92
93inline void G4QChipolino::SetHadronQPDG(const G4QPDGCode& newQPDG)
94{
95  theQPDG1  = newQPDG;
96  theQCont1 = theQPDG1.GetQuarkContent();
97  G4QContent theQCont2 = theQCont - theQCont1;
98  theQPDG2  = G4QPDGCode(theQCont2.GetSPDGCode());
99}
100
101inline void G4QChipolino::SetHadronPDGCode(const G4int& PDGCode)
102{
103  theQPDG1.SetPDGCode(PDGCode);
104  SetHadronQPDG(theQPDG1);
105}
106inline void G4QChipolino::SetHadronQCont(const G4QContent& QCont)
107                          {SetHadronPDGCode(QCont.GetSPDGCode());}
108
109#endif
110
111
112
113
114
Note: See TracBrowser for help on using the repository browser.