Skip to content
Snippets Groups Projects
Commit b7050516 authored by Shaojun Lu's avatar Shaojun Lu Committed by Andre Sailer
Browse files

Set verbose true for G4EmSaturation to printout Birks coefficient.

parent 8b5c50b2
No related branches found
No related tags found
No related merge requests found
...@@ -114,9 +114,10 @@ G4ThreeVector Geant4StepHandler::globalToLocalG4(const G4ThreeVector& global) c ...@@ -114,9 +114,10 @@ G4ThreeVector Geant4StepHandler::globalToLocalG4(const G4ThreeVector& global) c
/// Apply BirksLaw /// Apply BirksLaw
double Geant4StepHandler::birkAttenuation() const { double Geant4StepHandler::birkAttenuation() const {
#if G4VERSION_NUMBER >= 1001 #if G4VERSION_NUMBER >= 1001
static G4EmSaturation s_emSaturation(0); static G4EmSaturation s_emSaturation(1);
#else #else
static G4EmSaturation s_emSaturation(); static G4EmSaturation s_emSaturation();
s_emSaturation.SetVerbose(1);
#endif #endif
double energyDeposition = step->GetTotalEnergyDeposit(); double energyDeposition = step->GetTotalEnergyDeposit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment