Skip to content

Commit

Permalink
Merge pull request #72 from JeffersonLab/upgrade_hdgeant4_to_G4.10.04…
Browse files Browse the repository at this point in the history
….p02_RTJ

Upgrade hdgeant4 to g4.10.04.p02 rtj
  • Loading branch information
jrstevenjlab committed Nov 24, 2018
2 parents 1f49ba8 + d7e9ee0 commit 8ca95d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ CPPFLAGS += -DG4MULTITHREADED
#CPPFLAGS += -DDEBUG_PLACEMENT
#CPPFLAGS += -DDEBUG_SECTIONPLANE
#CPPFLAGS += -DDEBUG_SECTIONPLANE_ZAVE
#CPPFLAGS += -DG4VERSION_10_04_OR_LATER=1

# If you want to build against Geant4.10.03 or greater, you will need this line uncommented
#CPPFLAGS += -DG4VUSERPHYSICSLIST_HAS_GETPARTICLEITERATOR
Expand Down
5 changes: 5 additions & 0 deletions src/GlueXDetectorConstruction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,13 @@ void GlueXDetectorConstruction::CloneF()
// First time we see this FM, let's clone and remember...

G4ChordFinder *cfinder = masterFM->GetChordFinder();
#if G4VERSION_10_04_OR_LATER
G4VIntegrationDriver *midriver = cfinder->GetIntegrationDriver();
double stepMinimum = 1e-2;
#else
G4MagInt_Driver *midriver = cfinder->GetIntegrationDriver();
double stepMinimum = midriver->GetHmin();
#endif
G4MagIntegratorStepper *stepper = midriver->GetStepper();
const G4Field *field = masterFM->GetDetectorField();

Expand Down
2 changes: 1 addition & 1 deletion src/GlueXPhysicsList.hh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class GlueXPhysicsList: public G4VModularPhysicsList
#endif
G4OpticalPhysics *fOpticalPhysics;

#ifndef G4VUSERPHYSICSLIST_HAS_GETPARTICLEITERATOR
#ifndef G4VERSION_10_04_OR_LATER
// This member function gets introduced into base class
// G4VUserPhysicsList in release Geant4.10.03, but until
// we abandon ability to build under previous releases,
Expand Down

0 comments on commit 8ca95d0

Please sign in to comment.