Changeset 1196 for trunk/source/tracking/src/G4SmoothTrajectory.cc
- Timestamp:
- Nov 25, 2009, 5:13:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tracking/src/G4SmoothTrajectory.cc
r1011 r1196 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.cc,v 1.1 8 2006/10/16 13:37:17allison Exp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4SmoothTrajectory.cc,v 1.19 2009/11/12 09:09:56 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 29 29 // 30 30 // … … 60 60 : positionRecord(0), fTrackID(0), fParentID(0), 61 61 PDGEncoding( 0 ), PDGCharge(0.0), ParticleName(""), 62 initial Momentum( G4ThreeVector() )62 initialKineticEnergy( 0. ), initialMomentum( G4ThreeVector() ) 63 63 {;} 64 64 … … 71 71 fTrackID = aTrack->GetTrackID(); 72 72 fParentID = aTrack->GetParentID(); 73 initialKineticEnergy = aTrack->GetKineticEnergy(); 73 74 initialMomentum = aTrack->GetMomentum(); 74 75 positionRecord = new TrajectoryPointContainer(); … … 88 89 fTrackID = right.fTrackID; 89 90 fParentID = right.fParentID; 91 initialKineticEnergy = right.initialKineticEnergy; 90 92 initialMomentum = right.initialMomentum; 91 93 positionRecord = new TrajectoryPointContainer(); … … 147 149 (*store)[PDG] = G4AttDef(PDG,"PDG Encoding","Physics","","G4int"); 148 150 151 G4String IKE("IKE"); 152 (*store)[IKE] = 153 G4AttDef(IKE, "Initial kinetic energy", 154 "Physics","G4BestUnit","G4double"); 155 149 156 G4String IMom("IMom"); 150 (*store)[IMom] = G4AttDef(IMom, " Momentum of track at start of trajectory",157 (*store)[IMom] = G4AttDef(IMom, "Initial momentum", 151 158 "Physics","G4BestUnit","G4ThreeVector"); 152 159 153 160 G4String IMag("IMag"); 154 161 (*store)[IMag] = G4AttDef 155 (IMag, " Magnitude of momentum of track at start of trajectory",162 (IMag, "Initial momentum magnitude", 156 163 "Physics","G4BestUnit","G4double"); 157 164 … … 181 188 values->push_back 182 189 (G4AttValue("PDG",G4UIcommand::ConvertToString(PDGEncoding),"")); 190 191 values->push_back 192 (G4AttValue("IKE",G4BestUnit(initialKineticEnergy,"Energy"),"")); 183 193 184 194 values->push_back
Note: See TracChangeset
for help on using the changeset viewer.