Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
chiral_inv_phase_space
body
include
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
46
class
G4QChipolino
47
{
48
public
:
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
76
private
:
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
84
std::ostream&
operator<<
(std::ostream& lhs,
G4QChipolino
& rhs);
85
//std::ostream& operator<<(std::ostream& lhs, const G4QChipolino& rhs);
86
inline
G4bool
G4QChipolino::operator==
(
const
G4QChipolino
& rhs)
const
{
return
this
==&rhs;}
87
inline
G4bool
G4QChipolino::operator!=
(
const
G4QChipolino
& rhs)
const
{
return
this
!=&rhs;}
88
89
inline
G4double
G4QChipolino::GetMass
() {
return
minM;}
90
inline
G4double
G4QChipolino::GetMass2
() {
return
minM*minM;}
91
inline
G4QPDGCode
G4QChipolino::GetQPDG1
() {
return
theQPDG1;}
92
inline
G4QPDGCode
G4QChipolino::GetQPDG2
() {
return
theQPDG2;}
93
inline
G4QContent
G4QChipolino::GetQContent1
()
const
{
return
theQCont1;}
94
inline
G4QContent
G4QChipolino::GetQContent2
()
const
{
return
theQCont - theQCont1;}
95
inline
G4QContent
G4QChipolino::GetQContent
()
const
{
return
theQCont;}
96
97
98
inline
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
106
inline
void
G4QChipolino::SetHadronPDGCode
(
const
G4int
& PDGCode)
107
{
108
theQPDG1.
SetPDGCode
(PDGCode);
109
SetHadronQPDG
(theQPDG1);
110
}
111
inline
void
G4QChipolino::SetHadronQCont
(
const
G4QContent
& QCont)
112
{
SetHadronPDGCode
(QCont.
GetSPDGCode
());}
113
114
#endif
115
116
117
118
119
Generated on Sat May 25 2013 14:33:45 for Geant4 by
1.8.4