LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PhysicsListServiceBase.hh
Go to the documentation of this file.
1
// PhysicsListServiceBase
2
#ifndef artg4tk_services_PhysicsListServiceBase_hh
3
#define artg4tk_services_PhysicsListServiceBase_hh
4
5
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
6
#include "
artg4tk/services/PhysicsListHolder_service.hh
"
7
8
#include "Geant4/G4VUserPhysicsList.hh"
9
#include <memory>
10
11
namespace
artg4tk
{
12
13
class
PhysicsListServiceBase
{
14
15
public
:
16
// The constructor does the registration
17
PhysicsListServiceBase
()
18
{
19
art::ServiceHandle<PhysicsListHolderService>
ph;
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 */
art::ServiceHandle
Definition:
ServiceHandle.h:37
artg4tk::PhysicsListServiceBase::PhysicsListServiceBase
PhysicsListServiceBase()
Definition:
PhysicsListServiceBase.hh:17
ServiceHandle.h
artg4tk::PhysicsListServiceBase
Definition:
PhysicsListServiceBase.hh:13
artg4tk
Definition:
ActionBase.hh:12
artg4tk::PhysicsListServiceBase::initializePhysicsList
virtual void initializePhysicsList()
Definition:
PhysicsListServiceBase.hh:29
artg4tk::PhysicsListServiceBase::makePhysicsList
virtual G4VUserPhysicsList * makePhysicsList()=0
PhysicsListHolder_service.hh
artg4tk
v12_00_03
source
artg4tk
services
PhysicsListServiceBase.hh
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11