|
40 | 40 |
|
41 | 41 | #include "TG4RunConfiguration.h" |
42 | 42 | #include "TG4ComposedPhysicsList.h" |
| 43 | +#include "FastSim/G4FastSimulation.h" |
43 | 44 |
|
44 | 45 | #include <G4VUserPhysicsList.hh> |
45 | 46 | #include <G4ParticleTable.hh> |
@@ -384,20 +385,22 @@ class O2MonopolePhysics : public G4VUserPhysicsList |
384 | 385 | //____________________________________________________________________________ |
385 | 386 | /// TG4RunConfiguration that appends O2MonopolePhysics to the composed physics |
386 | 387 | /// list which VMC builds for the requested reference list. |
387 | | -class O2G4RunConfiguration : public TG4RunConfiguration |
| 388 | +/// Derives from o2::fastsim::G4RunConfiguration (rather than TG4RunConfiguration |
| 389 | +/// directly) so that monopole ionisation and the G4 fast-simulation can be combined |
| 390 | +class O2G4RunConfiguration : public o2::fastsim::G4RunConfiguration |
388 | 391 | { |
389 | 392 | public: |
390 | 393 | O2G4RunConfiguration(const TString& userGeometry, const TString& physicsList, |
391 | 394 | const TString& specialProcess, Bool_t specialStacking, |
392 | 395 | Bool_t mtApplication, double magneticChargeEplus) |
393 | | - : TG4RunConfiguration(userGeometry, physicsList, specialProcess, specialStacking, mtApplication), |
| 396 | + : o2::fastsim::G4RunConfiguration(userGeometry, physicsList, specialProcess, specialStacking, mtApplication), |
394 | 397 | mMagneticCharge(magneticChargeEplus) |
395 | 398 | { |
396 | 399 | } |
397 | 400 |
|
398 | 401 | G4VUserPhysicsList* CreatePhysicsList() override |
399 | 402 | { |
400 | | - G4VUserPhysicsList* physicsList = TG4RunConfiguration::CreatePhysicsList(); |
| 403 | + G4VUserPhysicsList* physicsList = o2::fastsim::G4RunConfiguration::CreatePhysicsList(); |
401 | 404 | if (auto* composed = dynamic_cast<TG4ComposedPhysicsList*>(physicsList)) { |
402 | 405 | composed->AddPhysicsList(new O2MonopolePhysics(mMagneticCharge)); |
403 | 406 | LOG(info) << "O2G4RunConfiguration: monopole ionisation physics registered " |
|
0 commit comments