source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QParentCluster.hh @ 836

Last change on this file since 836 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 7.1 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: G4QParentCluster.hh,v 1.23 2006/06/29 20:06:29 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30//      ---------------- G4QParentCluster ----------------
31//             by Mikhail Kossov, Sept 1999.
32//  class header for a Parent nuclear cluster in the CHIPS Model
33// -------------------------------------------------------------
34
35#ifndef G4QParentCluster_h
36#define G4QParentCluster_h 1
37
38#include <iostream>
39#include "globals.hh"
40#include "G4QContent.hh"
41
42class G4QParentCluster
43{
44public:
45  // Constructors
46  G4QParentCluster(G4int PDGCode = 0);               // Construction by PDGCode
47  G4QParentCluster(G4int PDGCode, G4double prob);    // Construction by PDGCode & Probab
48  G4QParentCluster(const G4QParentCluster& rhs);     // Copy Constructor by value
49  G4QParentCluster(G4QParentCluster* rhs);           // Copy Constructor by pointer
50
51  ~G4QParentCluster();                               // Public Destructor
52
53  // Operators
54  const G4QParentCluster& operator=(const G4QParentCluster& rhs);
55  G4bool                   operator==(const G4QParentCluster& rhs) const;
56  G4bool                   operator!=(const G4QParentCluster& rhs) const;
57
58  // Selectors
59  G4int      GetPDGCode()      const;   // Get PDG code of the Parent Cluster
60  G4double   GetProbability()  const;   // Get a probability of hadronization on it
61  G4int      GetNQPart2()      const;   // Get n-2 for the fragment
62  G4QContent GetTransQC()      const;   // Get QuarkCont of a Pseudo Exchange Meson
63  G4double   GetLow()          const;   // Get a low limit for randomization
64  G4double   GetHigh()         const;   // Get a high limit for randomization
65  G4double   GetEBMass()       const;   // Get a Nuclear Bounded mass of the parent cluster
66  G4double   GetEBind()        const;   // Get Environment Binding energy for the parent cluster
67  G4double   GetNBMass()       const;   // Get an Environmental bounded mass of the parent cluster
68  G4double   GetNBind()        const;   // Get Total Nucleus Binding energy for the parent cluster
69
70  // Modifiers
71  void  SetPDGCode(G4int newPDGCode);                // Set PDG code of the Parent Cluster
72  void  SetProbability(G4double probab);             // Set probab. to hadronize on this cluster
73  void  SetNQPart2(G4int nm2);                       // Get n-2 for the fragment
74  void  SetTransQC(G4QContent newTrans);             // Set QuarkCont of a Pseudo Exchange Meson
75  void  SetLow(G4double loLim);                      // Set a low limit for hadronization
76  void  SetHigh(G4double hiLim);                     // Set a high limit for hadronization
77  void  SetEBMass(G4double bMass);                   // Set a bounded mass of the parent cluster in E
78  void  SetEBind(G4double bEn);                      // Set binding energy of the parent cluster in E
79  void  SetNBMass(G4double bMass);                   // Set a bounded mass of the parent cluster in N
80  void  SetNBind(G4double bEn);                      // Set binding energy of the parent cluster in N
81
82  // General
83
84private:
85  // Encapsulated functions
86
87private:
88  // the Body
89  G4int               thePDGCode;
90  G4double            theProbability;
91  // Secondary
92  G4int               nQPart2;
93  G4QContent          transQC;                         // Quark Content of pseudo exchange meson
94  G4double            lowLimit;
95  G4double            highLimit;
96  G4double            theEnvBoundedMass;
97  G4double            theEnvBindingEnergy;
98  G4double            theNucBoundedMass;
99  G4double            theNucBindingEnergy;
100};
101
102// Not member operators
103std::ostream&   operator<<(std::ostream& lhs, G4QParentCluster& rhs);
104std::ostream&   operator<<(std::ostream& lhs, const G4QParentCluster& rhs);
105
106inline G4bool G4QParentCluster::operator==(const G4QParentCluster& rhs) const {return this==&rhs;}
107inline G4bool G4QParentCluster::operator!=(const G4QParentCluster& rhs) const {return this!=&rhs;}
108 
109inline G4int      G4QParentCluster::GetPDGCode()     const {return thePDGCode;}
110inline G4double   G4QParentCluster::GetProbability() const {return theProbability;}
111inline G4int      G4QParentCluster::GetNQPart2()     const {return nQPart2;}
112inline G4QContent G4QParentCluster::GetTransQC()     const {return transQC;}
113inline G4double   G4QParentCluster::GetHigh()        const {return highLimit;}
114inline G4double   G4QParentCluster::GetLow()         const {return lowLimit;}
115inline G4double   G4QParentCluster::GetEBMass()      const {return theEnvBoundedMass;}
116inline G4double   G4QParentCluster::GetEBind()       const {return theEnvBindingEnergy;}
117inline G4double   G4QParentCluster::GetNBMass()      const {return theNucBoundedMass;}
118inline G4double   G4QParentCluster::GetNBind()       const {return theNucBindingEnergy;}
119
120inline void  G4QParentCluster::SetPDGCode(G4int newPDGCode)    {thePDGCode      = newPDGCode;}
121inline void  G4QParentCluster::SetProbability(G4double prob)   {theProbability  = prob;}
122inline void  G4QParentCluster::SetNQPart2(G4int nm2)           {nQPart2         = nm2;}
123inline void  G4QParentCluster::SetTransQC(G4QContent newTrans) {transQC=newTrans;}
124inline void  G4QParentCluster::SetHigh(G4double hiLim)         {highLimit       = hiLim;}
125inline void  G4QParentCluster::SetLow(G4double loLim)          {lowLimit        = loLim;}
126inline void  G4QParentCluster::SetEBMass(G4double bMass)       {theEnvBoundedMass  = bMass;}
127inline void  G4QParentCluster::SetNBMass(G4double bMass)       {theNucBoundedMass  = bMass;}
128inline void  G4QParentCluster::SetEBind(G4double bEn)          {theEnvBindingEnergy= bEn;}
129inline void  G4QParentCluster::SetNBind(G4double bEn)          {theNucBindingEnergy= bEn;}
130
131#endif
132
133
134
Note: See TracBrowser for help on using the repository browser.