LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PhysicsListServiceBase.hh
Go to the documentation of this file.
1 // PhysicsListServiceBase
2 #ifndef artg4tk_services_PhysicsListServiceBase_hh
3 #define artg4tk_services_PhysicsListServiceBase_hh
4 
7 
8 #include "Geant4/G4VUserPhysicsList.hh"
9 #include <memory>
10 
11 namespace artg4tk {
12 
14 
15  public:
16  // The constructor does the registration
18  {
20  ph->registerPhysicsListService(this);
21  }
22 
23  // Make the physics list
24  virtual G4VUserPhysicsList* makePhysicsList() = 0;
25 
26  // Call initialize if you need to.
27  // This gets called AFTER the physics list is given to Geant.
28  // If you don't override it, then nothing will happen when called
29  virtual void initializePhysicsList(){};
30  };
31 
32 } // namespace artg4tk
33 
34 #endif /* artg4tk_services_PhysicsListServiceBase_hh */
virtual G4VUserPhysicsList * makePhysicsList()=0