source: trunk/source/processes/hadronic/models/parton_string/management/src/G4VSplitableHadron.cc @ 1340

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

update ti head

File size: 4.5 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: G4VSplitableHadron.cc,v 1.7 2009/07/17 12:36:41 vuzhinsk Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
29//
30
31// ------------------------------------------------------------
32//      GEANT 4 class implementation file
33//
34//      ---------------- G4VSplitableHadron----------------
35//             by Gunter Folger, June 1998.
36//       class storing an interacting particle. Used by Parton String Models.
37// ------------------------------------------------------------
38
39#include "G4VSplitableHadron.hh"
40#include "G4Nucleon.hh"
41#include "G4VKineticNucleon.hh"
42
43G4VSplitableHadron::G4VSplitableHadron()
44      :  theDefinition(NULL), TimeOfCreation(0.), theCollisionCount(0),  // Uzhi 8.05.08
45         Status(0), isSplit(false)                                       // Uzhi 17.07.09
46{
47}
48
49G4VSplitableHadron::G4VSplitableHadron(const G4ReactionProduct & aPrimary)
50      :  TimeOfCreation(0.), theCollisionCount(0),                       // Uzhi 8.05.08
51         Status(0), isSplit(false)                                       // Uzhi 17.07.09
52{
53        theDefinition=aPrimary.GetDefinition();
54        the4Momentum.setVect(aPrimary.GetMomentum());
55        the4Momentum.setE(aPrimary.GetTotalEnergy());
56}
57
58G4VSplitableHadron::G4VSplitableHadron(const G4Nucleon & aNucleon)
59{
60        TimeOfCreation   = 0.;                                          // Uzhi 8.05.08
61        theCollisionCount= 0;
62        isSplit          = false;
63        theDefinition    =aNucleon.GetParticleType();
64        the4Momentum     =aNucleon.GetMomentum();
65        thePosition      =aNucleon.GetPosition();
66        Status           = 0;                                           // Uzhi 17.07.09
67}
68
69G4VSplitableHadron::G4VSplitableHadron(const G4VKineticNucleon * aNucleon)
70{
71        TimeOfCreation   = 0.;   // Uzhi 8.05.08
72        theCollisionCount= 0;
73        isSplit          = false;
74        theDefinition    =aNucleon->GetDefinition();
75        the4Momentum     =aNucleon->Get4Momentum();
76        thePosition      =aNucleon->GetPosition();
77        Status           = 0;                                        // Uzhi 17.07.09
78}
79
80G4VSplitableHadron::G4VSplitableHadron(const G4VSplitableHadron &right)
81{
82        TimeOfCreation   = 0.;   // Uzhi 8.05.08
83        theCollisionCount= 0;
84        isSplit          = false;
85        theDefinition    = right.GetDefinition();
86        the4Momentum     = right.Get4Momentum();
87        thePosition      =  right.GetPosition();
88        Status           = 0;                                        // Uzhi 17.07.09
89}
90
91
92G4VSplitableHadron::~G4VSplitableHadron()
93{
94}
95
96
97const G4VSplitableHadron & G4VSplitableHadron::operator=(const G4VSplitableHadron &)
98{
99  throw G4HadronicException(__FILE__, __LINE__, "G4VSplitableHadron::operator= meant to not be accessable");
100  return *this;
101}
102
103
104int G4VSplitableHadron::operator==(const G4VSplitableHadron &right) const
105{
106        return this==&right;
107}
108
109int G4VSplitableHadron::operator!=(const G4VSplitableHadron &right) const
110{
111        return this!=&right;
112}
113
114
115void G4VSplitableHadron::SplitUp()
116{
117}
Note: See TracBrowser for help on using the repository browser.