CMS 3D CMS Logo

PhysicsListMaker.h
Go to the documentation of this file.
1 #ifndef Physics_PhysicsListMaker_h
2 #define Physics_PhysicsListMaker_h
3 // -*- C++ -*-
4 //
5 // Package: Physics
6 // Class : PhysicsListMaker
7 //
16 //
17 // Original Author:
18 // Created: Tue Nov 22 13:03:44 EST 2005
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
28 // forward declarations
29 
30 template<class T>
32 {
33 
34  public:
36 
37  // ---------- const member functions ---------------------
38  virtual std::unique_ptr<PhysicsList> make(G4LogicalVolumeToDDLogicalPartMap& map_,
40  sim::ChordFinderSetter * chordFinderSetter_,
41  const edm::ParameterSet& p,
42  SimActivityRegistry& reg) const
43  {
44  std::unique_ptr<T> returnValue(new T(map_, table_, chordFinderSetter_, p));
45  SimActivityRegistryEnroller::enroll(reg, returnValue.get());
46 
47  return returnValue;
48  }
49  private:
50 
51  PhysicsListMaker(const PhysicsListMaker&) = delete;
52  const PhysicsListMaker& operator=(const PhysicsListMaker&) = delete;
53 
54 };
55 
56 
57 #endif
Map map_
HepPDT::ParticleDataTable ParticleDataTable
static void enroll(SimActivityRegistry &iReg, T *iObj)
virtual std::unique_ptr< PhysicsList > make(G4LogicalVolumeToDDLogicalPartMap &map_, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p, SimActivityRegistry &reg) const
Table table_
const PhysicsListMaker & operator=(const PhysicsListMaker &)=delete
long double T