|
| 1 | +#if !defined(__CLING__) || defined(__ROOTCLING__) |
| 2 | +#include "VMCReplay/VMCReplay.h" |
| 3 | +#include "FairRunSim.h" |
| 4 | +#include <iostream> |
| 5 | +#endif |
| 6 | +#include "commonConfig.C" |
| 7 | + |
| 8 | +void Config() |
| 9 | +{ |
| 10 | + FairRunSim* run = FairRunSim::Instance(); |
| 11 | + TString* gModel = run->GetGeoModel(); |
| 12 | + |
| 13 | + // THIS WOULD A GOOD MOMENT TO PASS IN THE CACHED STEP INFORMATION |
| 14 | + auto replayvmc = new VMCReplay("Hello"); |
| 15 | + |
| 16 | + stackSetup(replayvmc, run); |
| 17 | + |
| 18 | + // ******* replayvmc specific configuration for simulated Runs ******* |
| 19 | + // |
| 20 | + replayvmc->SetTRIG(1); // Number of events to be processed |
| 21 | + replayvmc->SetSWIT(4, 100); |
| 22 | + replayvmc->SetDEBU(0, 0, 1); |
| 23 | + |
| 24 | + replayvmc->SetRAYL(1); |
| 25 | + replayvmc->SetSTRA(0); |
| 26 | + |
| 27 | + // NOTE: Please avoid changing this setting, unless justified as this might lead to very many steps |
| 28 | + // performed by G3; AUTO(1) is the G3 default |
| 29 | + replayvmc->SetAUTO(1); // Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0) |
| 30 | + |
| 31 | + replayvmc->SetABAN(0); // Restore 3.16 behaviour for abandoned tracks |
| 32 | + replayvmc->SetOPTI(2); // Select optimisation level for GEANT geometry searches (0,1,2) |
| 33 | + replayvmc->SetERAN(5.e-7); |
| 34 | + replayvmc->SetCKOV(1); // cerenkov photons |
| 35 | + |
| 36 | + // allow many steps per track (per volume) |
| 37 | + // since this is needed in the TPC |
| 38 | + // (this does not seem to be possible per module) |
| 39 | + replayvmc->SetMaxNStep(1E5); |
| 40 | +} |
0 commit comments