Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4QParentCluster.cc
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 // ---------------- G4QParentCluster ----------------
30 // by Mikhail Kossov, Sept 1999.
31 // class fora Parent nuclear cluster in the CHIPS Model
32 // -------------------------------------------------------------------
33 // Short description: The parent cluster is the cluster, which can be
34 // used for the nuclear fragment production. Different clusters csn be
35 // used as the parent cluser for the particular G4QCandidate (nuclear
36 // fragment), e.g. t and He3 for the t-fragment production. So the
37 // G4QParentClusterVector is needed.
38 // -------------------------------------------------------------------
39 //#define debug
40 //#define pdebug
41 
43 
44 G4QParentCluster::G4QParentCluster(G4int PDGCode) : thePDGCode(PDGCode),theProbability(0.),
45  nQPart2(0), lowLimit(0), highLimit(0), theEnvBoundedMass(0), theEnvBindingEnergy(0),
46  theNucBoundedMass(0), theNucBindingEnergy(0) {}
47 
48 G4QParentCluster::G4QParentCluster(G4int PDGCode, G4double prob) : thePDGCode(PDGCode),
49  theProbability(prob), nQPart2(0), lowLimit(0), highLimit(0), theEnvBoundedMass(0),
50  theEnvBindingEnergy(0), theNucBoundedMass(0), theNucBindingEnergy(0) {}
51 
53 {
54  thePDGCode = rhs.thePDGCode;
55  theProbability = rhs.theProbability;
56  nQPart2 = rhs.nQPart2;
57  transQC = rhs.transQC;
58  lowLimit = rhs.lowLimit;
59  highLimit = rhs.highLimit;
60  theEnvBoundedMass = rhs.theEnvBoundedMass;
61  theEnvBindingEnergy = rhs.theEnvBindingEnergy;
62  theNucBoundedMass = rhs.theNucBoundedMass;
63  theNucBindingEnergy = rhs.theNucBindingEnergy;
64 }
65 
67 {
68  thePDGCode = rhs->thePDGCode;
69  theProbability = rhs->theProbability;
70  nQPart2 = rhs->nQPart2;
71  transQC = rhs->transQC;
72  lowLimit = rhs->lowLimit;
73  highLimit = rhs->highLimit;
74  theEnvBoundedMass = rhs->theEnvBoundedMass;
75  theEnvBindingEnergy = rhs->theEnvBindingEnergy;
76  theNucBoundedMass = rhs->theNucBoundedMass;
77  theNucBindingEnergy = rhs->theNucBindingEnergy;
78 }
79 
81 {
82  if(this != &rhs) // Beware of self assignment
83  {
84  thePDGCode = rhs.thePDGCode;
85  theProbability = rhs.theProbability;
86  nQPart2 = rhs.nQPart2;
87  transQC = rhs.transQC;
88  lowLimit = rhs.lowLimit;
89  highLimit = rhs.highLimit;
90  theEnvBoundedMass = rhs.theEnvBoundedMass;
91  theEnvBindingEnergy = rhs.theEnvBindingEnergy;
92  theNucBoundedMass = rhs.theNucBoundedMass;
93  theNucBindingEnergy = rhs.theNucBindingEnergy;
94  }
95  return *this;
96 }
97 
99 
100 // Standard output for G4QParentCluster
101 std::ostream& operator<<(std::ostream& lhs, G4QParentCluster& rhs)
102 {
103  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
104  return lhs;
105 }
106 
107 // Standard output for const G4QParentCluster
108 std::ostream& operator<<(std::ostream& lhs, const G4QParentCluster& rhs)
109 {
110  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
111  return lhs;
112 }
113 
114 
115 
116 
117