source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/src/G4QParentCluster.cc @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.8 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.cc,v 1.26 2009/02/23 09:49:24 mkossov Exp $
28// GEANT4 tag $Name: hadr-chips-V09-03-08 $
29//
30//      ---------------- G4QParentCluster ----------------
31//             by Mikhail Kossov, Sept 1999.
32//      class fora Parent nuclear cluster in the CHIPS Model
33// -------------------------------------------------------------------
34// Short description: The parent cluster is the cluster, which can be
35// used for the nuclear fragment production. Different clusters csn be
36// used as the parent cluser for the particular G4QCandidate (nuclear
37// fragment), e.g. t and He3 for the t-fragment production. So the
38// G4QParentClusterVector is needed.
39// -------------------------------------------------------------------
40//#define debug
41//#define pdebug
42
43#include "G4QParentClusterVector.hh"
44
45G4QParentCluster::G4QParentCluster(G4int PDGCode): thePDGCode(PDGCode),theProbability(0.){}
46
47G4QParentCluster::G4QParentCluster(G4int PDGCode, G4double prob): 
48  thePDGCode(PDGCode), theProbability(prob){}
49
50G4QParentCluster::G4QParentCluster(const G4QParentCluster& rhs)
51{
52  thePDGCode          = rhs.thePDGCode;
53  theProbability      = rhs.theProbability;
54  nQPart2             = rhs.nQPart2;
55  transQC             = rhs.transQC;
56  lowLimit            = rhs.lowLimit;
57  highLimit           = rhs.highLimit;
58  theEnvBoundedMass   = rhs.theEnvBoundedMass;
59  theEnvBindingEnergy = rhs.theEnvBindingEnergy;
60  theNucBoundedMass   = rhs.theNucBoundedMass;
61  theNucBindingEnergy = rhs.theNucBindingEnergy;
62}
63
64G4QParentCluster::G4QParentCluster(G4QParentCluster* rhs)
65{
66  thePDGCode          = rhs->thePDGCode;
67  theProbability      = rhs->theProbability;
68  nQPart2             = rhs->nQPart2;
69  transQC             = rhs->transQC;
70  lowLimit            = rhs->lowLimit;
71  highLimit           = rhs->highLimit;
72  theEnvBoundedMass   = rhs->theEnvBoundedMass;
73  theEnvBindingEnergy = rhs->theEnvBindingEnergy;
74  theNucBoundedMass   = rhs->theNucBoundedMass;
75  theNucBindingEnergy = rhs->theNucBindingEnergy;
76}
77
78const G4QParentCluster& G4QParentCluster::operator=(const G4QParentCluster& rhs)
79{
80  if(this != &rhs)                          // Beware of self assignment
81  {
82    thePDGCode          = rhs.thePDGCode;
83    theProbability      = rhs.theProbability;
84    nQPart2             = rhs.nQPart2;
85    transQC             = rhs.transQC;
86    lowLimit            = rhs.lowLimit;
87    highLimit           = rhs.highLimit;
88    theEnvBoundedMass   = rhs.theEnvBoundedMass;
89    theEnvBindingEnergy = rhs.theEnvBindingEnergy;
90    theNucBoundedMass   = rhs.theNucBoundedMass;
91    theNucBindingEnergy = rhs.theNucBindingEnergy;
92  }
93  return *this;
94}
95
96G4QParentCluster::~G4QParentCluster() {}
97
98// Standard output for G4QParentCluster
99std::ostream& operator<<(std::ostream& lhs, G4QParentCluster& rhs)
100{//      ===============================================
101  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
102  return lhs;
103}
104
105// Standard output for const G4QParentCluster
106std::ostream& operator<<(std::ostream& lhs, const G4QParentCluster& rhs)
107{//      ===============================================
108  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
109  return lhs;
110}
111
112
113
114
115
Note: See TracBrowser for help on using the repository browser.