CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DummyPhysics.cc
Go to the documentation of this file.
1 #include "DummyPhysics.hh"
3 
5 #include "G4DecayPhysics.hh"
6 
7 DummyPhysics::DummyPhysics(G4LogicalVolumeToDDLogicalPartMap& map,
9  sim::FieldBuilder *fieldBuilder_,
10  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
11 
12  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
13  RegisterPhysics(new G4DecayPhysics("decay"));
14  if (emPhys)
15  RegisterPhysics(new DummyEMPhysics("dummyEM"));
16  edm::LogInfo("PhysicsList") << "DummyPhysics constructed with EM Physics "
17  << emPhys << "\n";
18 }
19 
20 DummyPhysics::~DummyPhysics() {}
21 
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_