Geant4  10.00.p03
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 
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 
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 
86 {
87  if (this != &right) {
88  fPosition = right.fPosition;
89  fGlobalTime = right.fGlobalTime;
90  fLocalTime = right.fLocalTime;
91  fProperTime = right.fProperTime;
94  fVelocity = right.fVelocity;
95  fpTouchable = right.fpTouchable;
96  fpMaterial = right.fpMaterial;
99  fSafety = right.fSafety;
101  fStepStatus = right.fStepStatus;
103  fMass = right.fMass;
104  fCharge = right.fCharge;
106  fWeight = right.fWeight;
107  }
108  return *this;
109 }
G4ThreeVector fMomentumDirection
Definition: G4StepPoint.hh:191
G4double fMagneticMoment
Definition: G4StepPoint.hh:212
G4ThreeVector fPosition
Definition: G4StepPoint.hh:184
G4VSensitiveDetector * fpSensitiveDetector
Definition: G4StepPoint.hh:201
G4double fSafety
Definition: G4StepPoint.hh:202
G4TouchableHandle fpTouchable
Definition: G4StepPoint.hh:195
G4ThreeVector fPolarization
Definition: G4StepPoint.hh:203
G4double fWeight
Definition: G4StepPoint.hh:214
G4double fGlobalTime
Definition: G4StepPoint.hh:185
G4double fCharge
Definition: G4StepPoint.hh:210
const G4MaterialCutsCouple * fpMaterialCutsCouple
Definition: G4StepPoint.hh:199
G4StepStatus fStepStatus
Definition: G4StepPoint.hh:204
G4double fProperTime
Definition: G4StepPoint.hh:189
G4double fMass
Definition: G4StepPoint.hh:208
G4double fKineticEnergy
Definition: G4StepPoint.hh:192
G4Material * fpMaterial
Definition: G4StepPoint.hh:197
G4StepPoint & operator=(const G4StepPoint &)
Definition: G4StepPoint.cc:85
G4double fVelocity
Definition: G4StepPoint.hh:193
G4double fLocalTime
Definition: G4StepPoint.hh:187
const G4VProcess * fpProcessDefinedStep
Definition: G4StepPoint.hh:206