Skip to content

Commit

Permalink
* only access G4HadronicParameters.hh if version is G4.10.07
Browse files Browse the repository at this point in the history
  or greater [rtj]
  • Loading branch information
rjones30 committed Dec 30, 2021
1 parent 3d3d42c commit 2c44c50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/GlueXPhysicsList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "G4StoppingPhysics.hh"
#include "G4HadronElasticPhysics.hh"
#include "G4NeutronTrackingCut.hh"
#include "G4HadronicParameters.hh"
#if USING_BERNARD
#include "G4BetheHeitler5DModel.hh"
#endif
Expand Down
6 changes: 5 additions & 1 deletion src/hdgeant4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include <G4Timer.hh>
#include <G4LogicalVolumeStore.hh>
#include <G4HadronicProcessStore.hh>
#include <G4HadronicParameters.hh>
#if G4VERSION_NUMBER >= 1070
#include "G4HadronicParameters.hh"
#endif
#include <G4StateManager.hh>

#ifdef G4VIS_USE
Expand Down Expand Up @@ -203,7 +205,9 @@ int main(int argc,char** argv)
GlueXUserActionInitialization *userinit;
userinit = new GlueXUserActionInitialization(physicslist);
runManager.SetUserInitialization(userinit);
#if G4VERSION_NUMBER >= 1070
G4HadronicParameters::Instance()->SetVerboseLevel(0);
#endif

// Initialize G4 kernel
std::cout << "Initializing the Geant4 kernel..." << std::endl;
Expand Down

0 comments on commit 2c44c50

Please sign in to comment.