Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QChipolino.hh
Go to the documentation of this file.
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$
28//
29// ---------------- G4QChipolino ----------------
30// by Mikhail Kossov, Sept 1999.
31// class header for Chipolino (Double Hadron) in CHIPS Model
32// ----------------------------------------------------------
33// Short description: In the CHIPS model not only hadrons are considered,
34// but the di-hadrons, which can not be convereged to the quark content
35// of only one hadron (e.g. pi+pi+, K+p, Delta++p etc). This kind of
36// hadronic states, which can be easily decayed in two hadrons, is called
37// Chipolino-particle in the model.
38// ----------------------------------------------------------------------
39
40#ifndef G4QChipolino_h
41#define G4QChipolino_h 1
42
43#include "globals.hh"
44#include "G4QPDGCode.hh"
45
47{
48public:
49 // Constructors
50 G4QChipolino(); // Default Constructor
51 G4QChipolino(G4QContent& QContent); // Construction by Quark Content
52 G4QChipolino(const G4QChipolino& right); // Copy constructor by value
53 G4QChipolino(G4QChipolino* right); // Copy constructor by pointer
54
55 ~G4QChipolino(); // Public Destructor
56
57 // Operators
58 const G4QChipolino& operator=(const G4QChipolino& right);
59 G4bool operator==(const G4QChipolino& right) const;
60 G4bool operator!=(const G4QChipolino& right) const;
61
62 // Selectors
63 G4double GetMass(); // Get ChipolinoMass (MinDoubleHadronMass)
64 G4double GetMass2(); // Get mass^2 of the Chipolino
65 G4QPDGCode GetQPDG1(); // Get 1-st QPDG of the Chipolino
66 G4QPDGCode GetQPDG2(); // Get 2-nd QPDG of the Chipolino
67 G4QContent GetQContent() const; // Get private quark content of the Chipolino
68 G4QContent GetQContent1() const; // Get 1-st quark content of the Chipolino
69 G4QContent GetQContent2() const; // Get 2-st quark content of the Chipolino
70
71 // Modifiers
72 void SetHadronQPDG(const G4QPDGCode& QPDG); // Set QPDG of 1-st Hadron of the Chipolino
73 void SetHadronPDGCode(const G4int& PDGCode);// Set PDGCode of 1st Hadron of the Chipolino
74 void SetHadronQCont(const G4QContent& QC); // Set QContent of 1st Hadron of theChipolino
75
76private:
77 G4QPDGCode theQPDG1; // QPDG of the 1-st Hadron of the Chipolino
78 G4QPDGCode theQPDG2; // QPDG of the 2-nd Hadron of the Chipolino
79 G4QContent theQCont; // QuarkContent of the whole Chipolino
80 G4QContent theQCont1; // QuarkCont. of the 1st Hadron of Chipolino
81 G4double minM; // Minimal Mass of Chipolino
82};
83
84std::ostream& operator<<(std::ostream& lhs, G4QChipolino& rhs);
85//std::ostream& operator<<(std::ostream& lhs, const G4QChipolino& rhs);
86inline G4bool G4QChipolino::operator==(const G4QChipolino& rhs) const {return this==&rhs;}
87inline G4bool G4QChipolino::operator!=(const G4QChipolino& rhs) const {return this!=&rhs;}
88
89inline G4double G4QChipolino::GetMass() {return minM;}
90inline G4double G4QChipolino::GetMass2() {return minM*minM;}
91inline G4QPDGCode G4QChipolino::GetQPDG1() {return theQPDG1;}
92inline G4QPDGCode G4QChipolino::GetQPDG2() {return theQPDG2;}
93inline G4QContent G4QChipolino::GetQContent1() const {return theQCont1;}
94inline G4QContent G4QChipolino::GetQContent2() const {return theQCont - theQCont1;}
95inline G4QContent G4QChipolino::GetQContent() const {return theQCont;}
96
97
98inline void G4QChipolino::SetHadronQPDG(const G4QPDGCode& newQPDG)
99{
100 theQPDG1 = newQPDG;
101 theQCont1 = theQPDG1.GetQuarkContent();
102 G4QContent theQCont2 = theQCont - theQCont1;
103 theQPDG2 = G4QPDGCode(theQCont2.GetSPDGCode());
104}
105
106inline void G4QChipolino::SetHadronPDGCode(const G4int& PDGCode)
107{
108 theQPDG1.SetPDGCode(PDGCode);
109 SetHadronQPDG(theQPDG1);
110}
112 {SetHadronPDGCode(QCont.GetSPDGCode());}
113
114#endif
115
116
117
118
119
std::ostream & operator<<(std::ostream &lhs, G4QChipolino &rhs)
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
G4QContent GetQContent2() const
Definition: G4QChipolino.hh:94
const G4QChipolino & operator=(const G4QChipolino &right)
G4QContent GetQContent1() const
Definition: G4QChipolino.hh:93
void SetHadronQPDG(const G4QPDGCode &QPDG)
Definition: G4QChipolino.hh:98
G4QPDGCode GetQPDG1()
Definition: G4QChipolino.hh:91
void SetHadronQCont(const G4QContent &QC)
G4bool operator!=(const G4QChipolino &right) const
Definition: G4QChipolino.hh:87
G4double GetMass()
Definition: G4QChipolino.hh:89
G4QContent GetQContent() const
Definition: G4QChipolino.hh:95
void SetHadronPDGCode(const G4int &PDGCode)
G4QPDGCode GetQPDG2()
Definition: G4QChipolino.hh:92
G4bool operator==(const G4QChipolino &right) const
Definition: G4QChipolino.hh:86
G4double GetMass2()
Definition: G4QChipolino.hh:90
G4int GetSPDGCode() const
Definition: G4QContent.cc:1204
G4QContent GetQuarkContent() const
Definition: G4QPDGCode.cc:2057
void SetPDGCode(G4int newPDGCode)
Definition: G4QPDGCode.hh:340