CMS 3D CMS Logo

List of all members | Public Member Functions
DummyPhysics Class Reference

#include <DummyPhysics.h>

Inheritance diagram for DummyPhysics:
PhysicsList

Public Member Functions

 DummyPhysics (G4LogicalVolumeToDDLogicalPartMap &, const HepPDT::ParticleDataTable *, sim::ChordFinderSetter *, const edm::ParameterSet &)
 
 ~DummyPhysics () override
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 7 of file DummyPhysics.h.

Constructor & Destructor Documentation

DummyPhysics::DummyPhysics ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::ChordFinderSetter chordFinderSetter_,
const edm::ParameterSet p 
)

Definition at line 7 of file DummyPhysics.cc.

References g4SimHits_cfi::DummyEMPhysics, and edm::ParameterSet::getUntrackedParameter().

10  : PhysicsList(map, table_, chordFinderSetter_, 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 << " and Decay";
18 }
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
Table table_
DummyPhysics::~DummyPhysics ( )
override

Definition at line 20 of file DummyPhysics.cc.

20 {}