Skip to content
Snippets Groups Projects

Fix Geant4 configuration

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_geant4_config into master
1 file
+ 12
12
Compare changes
  • Side-by-side
  • Inline
@@ -25,7 +25,7 @@
class TVirtualMC;
class CbmGeant4Settings : public CbmVMCSettings {
public:
public:
CbmGeant4Settings() = default;
~CbmGeant4Settings() = default;
CbmGeant4Settings(const CbmGeant4Settings&) = delete;
@@ -94,25 +94,25 @@ public:
**/
Int_t GetMaximumNumberOfSteps() { return fMaxNumSteps; }
private:
std::array<std::string, 3> fG4RunConfig {{"geomRoot", "QGSP_BERT_EMV+optical", "stepLimiter+specialCuts"}};
private:
std::array<std::string, 3> fG4RunConfig{{"geomRoot", "QGSP_BERT_EMV+optical", "stepLimiter+specialCuts"}};
/*
See https://redmine.cbm.gsi.de/issues/2913
As of Geant4-10.5 these commands were changed.
Tested for Geant4-11
*/
std::vector<std::string> fG4Commands {"/process/optical/verbose 0",
"/process/optical/cerenkov/setMaxPhotons 20",
"/process/optical/cerenkov/setMaxBetaChange 0.1",
"/process/optical/cerenkov/setTrackSecondariesFirst true",
"/process/optical/processActivation Cerenkov true",
"/process/optical/processActivation OpAbsorption true",
"/process/optical/processActivation OpBoundary true"};
std::vector<std::string> fG4Commands{"/process/optical/verbose 0",
"/process/optical/cerenkov/setMaxPhotons 20",
"/process/optical/cerenkov/setMaxBetaChange 0.1",
"/process/optical/cerenkov/setTrackSecondariesFirst true",
"/process/optical/processActivation Cerenkov true",
"/process/optical/processActivation OpAbsorption true",
"/process/optical/processActivation OpBoundary true"};
Int_t fMaxNumSteps {10000};
Int_t fMaxNumSteps{10000};
Int_t fRandomSeed {0};
Int_t fRandomSeed{0};
ClassDef(CbmGeant4Settings, 4);
};
Loading