Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -29,63 +29,47 @@
|
||||
//
|
||||
#include "RE04TrajectoryPoint.hh"
|
||||
|
||||
#include "G4AttDefStore.hh"
|
||||
#include "G4AttDef.hh"
|
||||
#include "G4AttDefStore.hh"
|
||||
#include "G4AttValue.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
|
||||
#include "G4Material.hh"
|
||||
|
||||
//#define G4ATTDEBUG
|
||||
// #define G4ATTDEBUG
|
||||
#ifdef G4ATTDEBUG
|
||||
#include "G4AttCheck.hh"
|
||||
# include "G4AttCheck.hh"
|
||||
#endif
|
||||
|
||||
G4ThreadLocal G4Allocator<RE04TrajectoryPoint> * faTrajPointAllocator = 0;
|
||||
G4ThreadLocal G4Allocator<RE04TrajectoryPoint>* faTrajPointAllocator = 0;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE04TrajectoryPoint::RE04TrajectoryPoint()
|
||||
: G4VTrajectoryPoint(),
|
||||
fPosition(G4ThreeVector(0.,0.,0.)),
|
||||
fpMaterial(0)
|
||||
{
|
||||
}
|
||||
: G4VTrajectoryPoint(), fPosition(G4ThreeVector(0., 0., 0.)), fpMaterial(0)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE04TrajectoryPoint::RE04TrajectoryPoint(G4ThreeVector pos,
|
||||
const G4Material* mat)
|
||||
: G4VTrajectoryPoint(),
|
||||
fPosition(pos),
|
||||
fpMaterial(mat)
|
||||
{
|
||||
}
|
||||
RE04TrajectoryPoint::RE04TrajectoryPoint(G4ThreeVector pos, const G4Material* mat)
|
||||
: G4VTrajectoryPoint(), fPosition(pos), fpMaterial(mat)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE04TrajectoryPoint::RE04TrajectoryPoint(const RE04TrajectoryPoint &right)
|
||||
: G4VTrajectoryPoint(),
|
||||
fPosition(right.fPosition),
|
||||
fpMaterial(right.fpMaterial)
|
||||
{
|
||||
}
|
||||
RE04TrajectoryPoint::RE04TrajectoryPoint(const RE04TrajectoryPoint& right)
|
||||
: G4VTrajectoryPoint(), fPosition(right.fPosition), fpMaterial(right.fpMaterial)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE04TrajectoryPoint::~RE04TrajectoryPoint()
|
||||
{
|
||||
}
|
||||
RE04TrajectoryPoint::~RE04TrajectoryPoint() {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
const std::map<G4String,G4AttDef>* RE04TrajectoryPoint::GetAttDefs() const
|
||||
const std::map<G4String, G4AttDef>* RE04TrajectoryPoint::GetAttDefs() const
|
||||
{
|
||||
G4bool isNew;
|
||||
std::map<G4String,G4AttDef>* store
|
||||
= G4AttDefStore::GetInstance("RE04TrajectoryPoint",isNew);
|
||||
std::map<G4String, G4AttDef>* store = G4AttDefStore::GetInstance("RE04TrajectoryPoint", isNew);
|
||||
if (isNew) {
|
||||
G4String pos("Pos");
|
||||
(*store)[pos] =
|
||||
G4AttDef(pos, "Position", "Physics","G4BestUnit","G4ThreeVector");
|
||||
(*store)[pos] = G4AttDef(pos, "Position", "Physics", "G4BestUnit", "G4ThreeVector");
|
||||
G4String mat("Mat");
|
||||
(*store)[mat] =
|
||||
G4AttDef(mat, "Mat", "Physics","Name","G4String");
|
||||
(*store)[mat] = G4AttDef(mat, "Mat", "Physics", "Name", "G4String");
|
||||
}
|
||||
return store;
|
||||
}
|
||||
@@ -95,11 +79,11 @@ std::vector<G4AttValue>* RE04TrajectoryPoint::CreateAttValues() const
|
||||
{
|
||||
std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
|
||||
|
||||
values->push_back(G4AttValue("Pos",G4BestUnit(fPosition,"Length"),""));
|
||||
values->push_back(G4AttValue("Mat",fpMaterial->GetName(),""));
|
||||
values->push_back(G4AttValue("Pos", G4BestUnit(fPosition, "Length"), ""));
|
||||
values->push_back(G4AttValue("Mat", fpMaterial->GetName(), ""));
|
||||
|
||||
#ifdef G4ATTDEBUG
|
||||
G4cout << G4AttCheck(values,GetAttDefs());
|
||||
G4cout << G4AttCheck(values, GetAttDefs());
|
||||
#endif
|
||||
|
||||
return values;
|
||||
|
||||
Reference in New Issue
Block a user