Import Geant4 7.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 11:11:55 +02:00
parent e083ffb441
commit 516dbf1a58
5914 changed files with 202605 additions and 71141 deletions
+10 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Trajectory.cc,v 1.24 2004/06/11 14:30:20 gcosmo Exp $
// GEANT4 tag $Name: geant4-06-02 $
// $Id: G4Trajectory.cc,v 1.25 2004/11/18 23:10:10 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// ---------------------------------------------------------------
@@ -137,6 +137,10 @@ const std::map<G4String,G4AttDef>* G4Trajectory::GetAttDefs() const
(*store)[IMom] = G4AttDef(IMom, "Momentum of track at start of trajectory",
"Physics","","G4ThreeVector");
G4String IMag("IMag");
(*store)[IMag] = G4AttDef(IMag, "Magnitude of momentum of track at start of trajectory",
"Physics","","G4double");
G4String NTP("NTP");
(*store)[NTP] = G4AttDef(NTP,"No. of points","Physics","","G4int");
@@ -173,6 +177,10 @@ std::vector<G4AttValue>* G4Trajectory::CreateAttValues() const
s << G4BestUnit(initialMomentum,"Energy") << std::ends;
values->push_back(G4AttValue("IMom",c,""));
s.seekp(std::ios::beg);
s << initialMomentum.mag() << std::ends;
values->push_back(G4AttValue("IMag",c,""));
s.seekp(std::ios::beg);
s << GetPointEntries() << std::ends;
values->push_back(G4AttValue("NTP",c,""));