Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TrajectoryPoint.cc,v 1.10 2002/11/08 18:28:29 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: G4TrajectoryPoint.cc,v 1.12 2003/06/16 17:13:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "G4AttDef.hh"
|
||||
#include "G4AttValue.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "g4std/strstream"
|
||||
#include <strstream>
|
||||
|
||||
G4Allocator<G4TrajectoryPoint> aTrajectoryPointAllocator;
|
||||
|
||||
@@ -52,7 +52,7 @@ G4TrajectoryPoint::G4TrajectoryPoint(G4ThreeVector pos)
|
||||
}
|
||||
|
||||
G4TrajectoryPoint::G4TrajectoryPoint(const G4TrajectoryPoint &right)
|
||||
: fPosition(right.fPosition)
|
||||
: G4VTrajectoryPoint(),fPosition(right.fPosition)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -60,10 +60,10 @@ G4TrajectoryPoint::~G4TrajectoryPoint()
|
||||
{
|
||||
}
|
||||
|
||||
const G4std::map<G4String,G4AttDef>* G4TrajectoryPoint::GetAttDefs() const
|
||||
const std::map<G4String,G4AttDef>* G4TrajectoryPoint::GetAttDefs() const
|
||||
{
|
||||
G4bool isNew;
|
||||
G4std::map<G4String,G4AttDef>* store
|
||||
std::map<G4String,G4AttDef>* store
|
||||
= G4AttDefStore::GetInstance("G4TrajectoryPoint",isNew);
|
||||
if (isNew) {
|
||||
G4String Pos("Pos");
|
||||
@@ -72,15 +72,15 @@ const G4std::map<G4String,G4AttDef>* G4TrajectoryPoint::GetAttDefs() const
|
||||
return store;
|
||||
}
|
||||
|
||||
G4std::vector<G4AttValue>* G4TrajectoryPoint::CreateAttValues() const
|
||||
std::vector<G4AttValue>* G4TrajectoryPoint::CreateAttValues() const
|
||||
{
|
||||
char c[100];
|
||||
G4std::ostrstream s(c,100);
|
||||
std::ostrstream s(c,100);
|
||||
|
||||
G4std::vector<G4AttValue>* values = new G4std::vector<G4AttValue>;
|
||||
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << G4BestUnit(fPosition,"Length") << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << G4BestUnit(fPosition,"Length") << std::ends;
|
||||
values->push_back(G4AttValue("Pos",c,""));
|
||||
|
||||
return values;
|
||||
|
||||
Reference in New Issue
Block a user