CbmRoot
CbmGeant3Settings.cxx
Go to the documentation of this file.
1 #include "CbmGeant3Settings.h"
2 
3 #include <FairLogger.h>
4 
5 #include <TGeant3.h>
6 #include <TVirtualMC.h>
7 
8 void CbmGeant3Settings::Init(TVirtualMC* vmc) {
9 
11 
12  TGeant3* vmcg3 = dynamic_cast<TGeant3*>(vmc);
13 
14  assert(vmcg3);
15  LOG(info) << ": Configuring Geant3";
16 
17  // Set Number of events to be processed
18  // Can't be changed from the user code
19  vmcg3->SetTRIG(1);
20 
21  // Print every 100th event : GTREVE_ROOT : Transporting primary track No
22  // Can't be changed from user code
23  vmcg3->SetSWIT(4, 100);
24 
25  if (fDebugOutput) {
26  vmcg3->SetDEBU(fDebugMinEvent, fDebugMaxEvent, 1);
27  // IF (ISWIT(2).EQ.2) CALL GPCXYZ ! step by step printed debug
28  vmcg3->SetSWIT(2, 2);
29  } else {
30  vmcg3->SetDEBU(0, 0, 1);
31  }
32 
33  // Switch on/off the rayleigh scattering
34  vmcg3->SetRAYL(fProcessRayleighScattering);
35 
36  // Control Cerenkov production
37  vmcg3->SetCKOV(fProcessCherenkov);
38 
39  // Switch on/off the energy loss fluctuations with the Photo-Absorption Ionization model
40  vmcg3->SetSTRA(fProcessEnergyLossStraggling);
41 
42  // Control the automatic calculation of tracking medium parameters
43  vmcg3->SetAUTO(fAutomaticTrackingMediumParameters);
44 
45  // Control if particles should be stopped
46  vmcg3->SetABAN(fStoppingMethod);
47 
48  // This flag controls the tracking optimization performed via the
49  // GSORD routine:
50  vmcg3->SetOPTI(fTrackingOptimizationMethod);
51 
52  // Control the cross section tabulations
53  vmcg3->SetERAN(
55 }
56 
CbmGeant3Settings::fProcessRayleighScattering
Int_t fProcessRayleighScattering
Definition: CbmGeant3Settings.h:148
CbmGeant3Settings::fDebugOutput
Bool_t fDebugOutput
Definition: CbmGeant3Settings.h:159
CbmGeant3Settings::fStoppingMethod
Int_t fStoppingMethod
Definition: CbmGeant3Settings.h:152
CbmVMCSettings::Init
void Init(TVirtualMC *)
Set all parameters defined in this class.
Definition: CbmVMCSettings.cxx:7
CbmGeant3Settings::Init
void Init(TVirtualMC *)
Set all parameters defined in this class.
Definition: CbmGeant3Settings.cxx:8
ClassImp
ClassImp(CbmGeant3Settings)
CbmGeant3Settings.h
CbmGeant3Settings::fAutomaticTrackingMediumParameters
Int_t fAutomaticTrackingMediumParameters
Definition: CbmGeant3Settings.h:151
CbmGeant3Settings::fCrossSectionMinEnergy
Double_t fCrossSectionMinEnergy
Definition: CbmGeant3Settings.h:155
CbmGeant3Settings::fCrossSectionBins
Double_t fCrossSectionBins
Definition: CbmGeant3Settings.h:157
CbmGeant3Settings::fCrossSectionMaxEnergy
Double_t fCrossSectionMaxEnergy
Definition: CbmGeant3Settings.h:156
CbmGeant3Settings::fDebugMinEvent
Int_t fDebugMinEvent
Definition: CbmGeant3Settings.h:160
CbmGeant3Settings
User interface class to define the Geant3 simulation settings.
Definition: CbmGeant3Settings.h:19
CbmGeant3Settings::fProcessCherenkov
Int_t fProcessCherenkov
Definition: CbmGeant3Settings.h:149
CbmGeant3Settings::fProcessEnergyLossStraggling
Int_t fProcessEnergyLossStraggling
Definition: CbmGeant3Settings.h:150
CbmGeant3Settings::fDebugMaxEvent
Int_t fDebugMaxEvent
Definition: CbmGeant3Settings.h:161
CbmGeant3Settings::fTrackingOptimizationMethod
Int_t fTrackingOptimizationMethod
Definition: CbmGeant3Settings.h:153