Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4SmoothTrajectory.cc,v 1.8 2002/11/11 13:13:02 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// $Id: G4SmoothTrajectory.cc,v 1.10 2003/06/16 17:13:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "G4AttDef.hh"
|
||||
#include "G4AttValue.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "g4std/strstream"
|
||||
#include <strstream>
|
||||
|
||||
G4Allocator<G4SmoothTrajectory> aSmoothTrajectoryAllocator;
|
||||
|
||||
@@ -73,7 +73,7 @@ G4SmoothTrajectory::G4SmoothTrajectory(const G4Track* aTrack)
|
||||
positionRecord->push_back(new G4SmoothTrajectoryPoint(aTrack->GetPosition(), NULL));
|
||||
}
|
||||
|
||||
G4SmoothTrajectory::G4SmoothTrajectory(G4SmoothTrajectory & right)
|
||||
G4SmoothTrajectory::G4SmoothTrajectory(G4SmoothTrajectory & right):G4VTrajectory()
|
||||
{
|
||||
ParticleName = right.ParticleName;
|
||||
PDGCharge = right.PDGCharge;
|
||||
@@ -102,7 +102,7 @@ G4SmoothTrajectory::~G4SmoothTrajectory()
|
||||
delete positionRecord;
|
||||
}
|
||||
|
||||
void G4SmoothTrajectory::ShowTrajectory(G4std::ostream& os) const
|
||||
void G4SmoothTrajectory::ShowTrajectory(std::ostream& os) const
|
||||
{
|
||||
// Invoke the default implementation in G4VTrajectory...
|
||||
G4VTrajectory::ShowTrajectory(os);
|
||||
@@ -116,10 +116,10 @@ void G4SmoothTrajectory::DrawTrajectory(G4int i_mode) const
|
||||
// ... or override with your own code here.
|
||||
}
|
||||
|
||||
const G4std::map<G4String,G4AttDef>* G4SmoothTrajectory::GetAttDefs() const
|
||||
const std::map<G4String,G4AttDef>* G4SmoothTrajectory::GetAttDefs() const
|
||||
{
|
||||
G4bool isNew;
|
||||
G4std::map<G4String,G4AttDef>* store
|
||||
std::map<G4String,G4AttDef>* store
|
||||
= G4AttDefStore::GetInstance("G4SmoothTrajectory",isNew);
|
||||
if (isNew) {
|
||||
|
||||
@@ -150,37 +150,37 @@ const G4std::map<G4String,G4AttDef>* G4SmoothTrajectory::GetAttDefs() const
|
||||
}
|
||||
|
||||
|
||||
G4std::vector<G4AttValue>* G4SmoothTrajectory::CreateAttValues() const
|
||||
std::vector<G4AttValue>* G4SmoothTrajectory::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 << fTrackID << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << fTrackID << std::ends;
|
||||
values->push_back(G4AttValue("ID",c,""));
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << fParentID << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << fParentID << std::ends;
|
||||
values->push_back(G4AttValue("PID",c,""));
|
||||
|
||||
values->push_back(G4AttValue("PN",ParticleName,""));
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << PDGCharge << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << PDGCharge << std::ends;
|
||||
values->push_back(G4AttValue("Ch",c,""));
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << PDGEncoding << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << PDGEncoding << std::ends;
|
||||
values->push_back(G4AttValue("PDG",c,""));
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << G4BestUnit(initialMomentum,"Energy") << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << G4BestUnit(initialMomentum,"Energy") << std::ends;
|
||||
values->push_back(G4AttValue("IMom",c,""));
|
||||
|
||||
s.seekp(G4std::ios::beg);
|
||||
s << GetPointEntries() << G4std::ends;
|
||||
s.seekp(std::ios::beg);
|
||||
s << GetPointEntries() << std::ends;
|
||||
values->push_back(G4AttValue("NTP",c,""));
|
||||
|
||||
return values;
|
||||
|
||||
Reference in New Issue
Block a user