LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PhysicsListHolder.cc
Go to the documentation of this file.
1 // Implemenation for PhysicsListHolder_service
2 
5 
6 void
8 {
9  // There can be only one
10  if (physicsListService_) {
11  throw cet::exception("PhysicsListHolderService") << "A physics list is already registered.\n";
12  }
13 
15 }
16 
17 G4VUserPhysicsList*
19 {
20  // Make sure we have one
21  if (!physicsListService_) {
22  throw cet::exception("PhysicsListHolderService") << "No physics list has been registered.\n";
23  }
24 
25  // Return the physics list (Geant is going to delete it)
27 }
28 
29 void
31 {
32  // Make sure we have one
33  if (!physicsListService_) {
34  throw cet::exception("PhysicsListHolderService") << "No physics list has been registered.\n";
35  }
36 
38 }
void registerPhysicsListService(PhysicsListServiceBase *)
G4VUserPhysicsList * makePhysicsList() const
virtual G4VUserPhysicsList * makePhysicsList()=0
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33