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

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

import all except CVS

File size: 4.4 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.25 2006/11/27 10:44:55 mkossov Exp $
28// GEANT4 tag $Name:  $
29//
30//      ---------------- G4QParentCluster ----------------
31//             by Mikhail Kossov, Sept 1999.
32//      class fora Parent nuclear cluster in the CHIPS Model
33// ----------------------------------------------------------
34
35//#define debug
36//#define pdebug
37
38#include "G4QParentClusterVector.hh"
39
40G4QParentCluster::G4QParentCluster(G4int PDGCode): thePDGCode(PDGCode), theProbability(0.){}
41
42G4QParentCluster::G4QParentCluster(G4int PDGCode, G4double prob): 
43  thePDGCode(PDGCode), theProbability(prob){}
44
45G4QParentCluster::G4QParentCluster(const G4QParentCluster& rhs)
46{
47  thePDGCode          = rhs.thePDGCode;
48  theProbability      = rhs.theProbability;
49  nQPart2             = rhs.nQPart2;
50  transQC             = rhs.transQC;
51  lowLimit            = rhs.lowLimit;
52  highLimit           = rhs.highLimit;
53  theEnvBoundedMass   = rhs.theEnvBoundedMass;
54  theEnvBindingEnergy = rhs.theEnvBindingEnergy;
55  theNucBoundedMass   = rhs.theNucBoundedMass;
56  theNucBindingEnergy = rhs.theNucBindingEnergy;
57}
58
59G4QParentCluster::G4QParentCluster(G4QParentCluster* rhs)
60{
61  thePDGCode          = rhs->thePDGCode;
62  theProbability      = rhs->theProbability;
63  nQPart2             = rhs->nQPart2;
64  transQC             = rhs->transQC;
65  lowLimit            = rhs->lowLimit;
66  highLimit           = rhs->highLimit;
67  theEnvBoundedMass   = rhs->theEnvBoundedMass;
68  theEnvBindingEnergy = rhs->theEnvBindingEnergy;
69  theNucBoundedMass   = rhs->theNucBoundedMass;
70  theNucBindingEnergy = rhs->theNucBindingEnergy;
71}
72
73const G4QParentCluster& G4QParentCluster::operator=(const G4QParentCluster& rhs)
74{
75  if(this != &rhs)                          // Beware of self assignment
76  {
77    thePDGCode          = rhs.thePDGCode;
78    theProbability      = rhs.theProbability;
79    nQPart2             = rhs.nQPart2;
80    transQC             = rhs.transQC;
81    lowLimit            = rhs.lowLimit;
82    highLimit           = rhs.highLimit;
83    theEnvBoundedMass   = rhs.theEnvBoundedMass;
84    theEnvBindingEnergy = rhs.theEnvBindingEnergy;
85    theNucBoundedMass   = rhs.theNucBoundedMass;
86    theNucBindingEnergy = rhs.theNucBindingEnergy;
87  }
88  return *this;
89}
90
91G4QParentCluster::~G4QParentCluster() {}
92
93// Standard output for G4QParentCluster
94std::ostream& operator<<(std::ostream& lhs, G4QParentCluster& rhs)
95{//      ===============================================
96  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
97  return lhs;
98}
99
100// Standard output for const G4QParentCluster
101std::ostream& operator<<(std::ostream& lhs, const G4QParentCluster& rhs)
102{//      ===============================================
103  lhs << "[ParClPDG=" << rhs.GetPDGCode() << ", probab=" << rhs.GetProbability() << "]";
104  return lhs;
105}
106
107
108
109
110
Note: See TracBrowser for help on using the repository browser.