Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4StepPoint.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: G4StepPoint.cc 68795 2013-04-05 13:24:46Z gcosmo $
28 //
29 //
30 //---------------------------------------------------------------
31 //
32 // G4StepPoint.cc
33 //
34 // Description:
35 // This class represents information associated with the
36 // each end of a Step like the space/time data of the
37 // particle.
38 //
39 // Contact:
40 // Questions and comments to this code should be sent to
41 // Hisaya Kurashige
42 //
43 // ---------------------------------------------------------------
44 
45 #include "G4StepPoint.hh"
46 
47 //////////////////////////
49 //////////////////////////
50  : fGlobalTime(0.), fLocalTime(0.), fProperTime(0.),
51  fKineticEnergy(0.), fVelocity(0.), fpTouchable(0), fpMaterial(0),
52  fpMaterialCutsCouple(0), fpSensitiveDetector(0), fSafety(0.),
53  fStepStatus(fUndefined),fpProcessDefinedStep(0),
54  fMass(0.), fCharge(0.), fMagneticMoment(0.),
55  fWeight(0.)
56 {
57 }
58 
59 //////////////////////////
61 //////////////////////////
62  fPosition(right.fPosition),
63  fGlobalTime(right.fGlobalTime),
64  fLocalTime(right.fLocalTime),
65  fProperTime(right.fProperTime),
66  fMomentumDirection(right.fMomentumDirection),
67  fKineticEnergy(right.fKineticEnergy),
68  fVelocity(right.fVelocity),
69  fpTouchable(right.fpTouchable),
70  fpMaterial(right.fpMaterial),
71  fpMaterialCutsCouple(right.fpMaterialCutsCouple),
72  fpSensitiveDetector(right.fpSensitiveDetector),
73  fSafety(right.fSafety),
74  fPolarization(right.fPolarization),
75  fStepStatus(right.fStepStatus),
76  fpProcessDefinedStep(right.fpProcessDefinedStep),
77  fMass(right.fMass),
78  fCharge(right.fCharge),
79  fMagneticMoment(right.fMagneticMoment),
80  fWeight(right.fWeight)
81 {
82 }
83 
84 //////////////////////////
86 {
87  if (this != &right) {
88  fPosition = right.fPosition;
89  fGlobalTime = right.fGlobalTime;
90  fLocalTime = right.fLocalTime;
91  fProperTime = right.fProperTime;
92  fMomentumDirection = right.fMomentumDirection;
93  fKineticEnergy = right.fKineticEnergy;
94  fVelocity = right.fVelocity;
95  fpTouchable = right.fpTouchable;
96  fpMaterial = right.fpMaterial;
97  fpMaterialCutsCouple = right.fpMaterialCutsCouple;
98  fpSensitiveDetector = right.fpSensitiveDetector;
99  fSafety = right.fSafety;
100  fPolarization = right.fPolarization;
101  fStepStatus = right.fStepStatus;
102  fpProcessDefinedStep = right.fpProcessDefinedStep;
103  fMass = right.fMass;
104  fCharge = right.fCharge;
105  fMagneticMoment = right.fMagneticMoment;
106  fWeight = right.fWeight;
107  }
108  return *this;
109 }
G4StepPoint & operator=(const G4StepPoint &)
Definition: G4StepPoint.cc:85