Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,45 @@
#include "G4HyperbolaCreator.hh"
G4HyperbolaCreator G4HyperbolaCreator::csc;
G4HyperbolaCreator::G4HyperbolaCreator(){G4GeometryTable::RegisterObject(this);}
G4HyperbolaCreator::~G4HyperbolaCreator(){}
void G4HyperbolaCreator::CreateG4Geometry(STEPentity& Ent)
{
G4double semi1,semi_imag;
// L. Broglia
// G4Placement* place;
G4Axis2Placement3D* place;
Ent.ResetAttributes();
STEPattribute* Attr = Ent.NextAttribute();
while(Attr->NonRefType() == STRING_TYPE ||
Attr->NonRefType() == sdaiSTRING )
Attr = Ent.NextAttribute();
// Get the placement
STEPentity* TmpEnt= *Attr->ptr.c;
void *tmp =G4GeometryTable::CreateObject(*TmpEnt);
// L. Broglia
// place = (G4Placement*)tmp;
place = (G4Axis2Placement3D*)tmp;
// get semi axises
Attr = Ent.NextAttribute();
semi1 = *Attr->ptr.r;
Attr = Ent.NextAttribute();
semi_imag = *Attr->ptr.r;
}
void G4HyperbolaCreator::CreateSTEPGeometry(void* G4obj)
{
}