CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: PhysicsListMaker.h,v 1.4 2010/07/29 22:40:22 sunanda Exp $
20 //
21 
22 // system include files
23 #include <memory>
24 
25 // user include files
28 
29 // forward declarations
30 
31 template<class T>
33 {
34 
35  public:
37 
38  // ---------- const member functions ---------------------
39  virtual std::auto_ptr<PhysicsList> make(G4LogicalVolumeToDDLogicalPartMap& map_,
41  sim::FieldBuilder * fieldBuilder_,
42  const edm::ParameterSet& p,
43  SimActivityRegistry& reg) const
44  {
45  std::auto_ptr<T> returnValue(new T(map_, table_, fieldBuilder_, p));
46  SimActivityRegistryEnroller::enroll(reg, returnValue.get());
47 
48  return std::auto_ptr<PhysicsList>(returnValue);
49  }
50 
51 };
52 
53 
54 #endif
HepPDT::ParticleDataTable ParticleDataTable
virtual std::auto_ptr< PhysicsList > make(G4LogicalVolumeToDDLogicalPartMap &map_, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p, SimActivityRegistry &reg) const
static void enroll(SimActivityRegistry &iReg, T *iObj)
long double T
Table table_
Definition: Actions.cc:22