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
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4HepRepSceneHandler.cc,v 1.76 2004/05/28 04:59:54 perl Exp $
// GEANT4 tag $Name: geant4-06-02 $
// $Id: G4HepRepSceneHandler.cc,v 1.78 2004/12/07 23:40:58 perl Exp $
// GEANT4 tag $Name: geant4-07-00-cand-03 $
//
/**
@@ -100,9 +100,6 @@ G4HepRepSceneHandler::G4HepRepSceneHandler (G4VGraphicsSystem& system, G4HepRepM
eventNumberWidth (-1),
extension (""),
writeMultipleFiles (false),
currentDepth (0),
currentPV (0),
currentLV (0),
_heprep (NULL),
_heprepGeometry (NULL)
{
@@ -415,14 +412,6 @@ void G4HepRepSceneHandler::writeLayers(HepRep* heprep) {
heprep->addLayer(hitLayer);
}
void G4HepRepSceneHandler::EstablishSpecials(G4PhysicalVolumeModel& model) {
#ifdef SDEBUG
cout << "G4HepRepSceneHandler::EstablishSpecials(G4PhysicalVolumeModel&) " << endl;
#endif
model.DefinePointersToWorkingSpace(&currentDepth, &currentPV, &currentLV);
}
void G4HepRepSceneHandler::BeginModeling() {
#ifdef SDEBUG
cout << "G4HepRepSceneHandler::BeginModeling() " << endl;
@@ -529,7 +518,7 @@ void G4HepRepSceneHandler::AddPrimitive (const G4Polyhedron& polyhedron) {
if (isEventData()) {
instance = factory->createHepRepInstance(getEventInstance(), getCalHitType());
} else {
instance = getGeometryInstance(currentLV, currentDepth);
instance = getGeometryInstance(fpCurrentLV, fCurrentDepth);
}
setVisibility(instance, polyhedron);
@@ -540,7 +529,7 @@ void G4HepRepSceneHandler::AddPrimitive (const G4Polyhedron& polyhedron) {
if (isEventData()) {
face = factory->createHepRepInstance(instance, getCalHitFaceType());
} else {
face = getGeometryInstance("*Face", currentDepth+1);
face = getGeometryInstance("*Face", fCurrentDepth+1);
setAttribute(face, "PickParent", true);
}
@@ -907,7 +896,7 @@ void G4HepRepSceneHandler::addAttVals(HepRepAttribute* attribute, const map<G4St
if (n == 0) {
// first coordinate
double factor = atof(pos.substr(s, i-s).c_str())/point->getX();
m = (int)(log10(factor)+((factor < 1) ? -0.5 : 0.5));
m = (int)(std::log10(factor)+((factor < 1) ? -0.5 : 0.5));
// cout << factor << ", " << m << endl;
} else if (n == 3) {
// unit
@@ -976,7 +965,7 @@ void G4HepRepSceneHandler::addAttVals(HepRepAttribute* attribute, const map<G4St
bool G4HepRepSceneHandler::isEventData () {
return !currentPV || fReadyForTransients;
return !fpCurrentPV || fReadyForTransients;
}
void G4HepRepSceneHandler::addTopLevelAttributes(HepRepType* type) {