CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
CustomPhysics Class Reference

#include <CustomPhysics.h>

Inheritance diagram for CustomPhysics:
PhysicsList

Public Member Functions

 CustomPhysics (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
 
virtual void SetCuts ()
 
virtual ~PhysicsList ()
 

Detailed Description

Definition at line 7 of file CustomPhysics.h.

Constructor & Destructor Documentation

CustomPhysics::CustomPhysics ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::FieldBuilder fieldBuilder_,
const edm::ParameterSet p 
)

Definition at line 16 of file CustomPhysics.cc.

References edm::ParameterSet::getUntrackedParameter().

19  : PhysicsList(map, table_, fieldBuilder_, p) {
20 
21  G4DataQuestionaire it(photon);
22 
23  int ver = p.getUntrackedParameter<int>("Verbosity",0);
24  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
25  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
26  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
27  << "QGSP_EMV 3.3 with Flags for EM Physics "
28  << emPhys << " and for Hadronic Physics "
29  << hadPhys << "\n";
30 
31  // EM Physics
32  RegisterPhysics( new CMSEmStandardPhysics71("standard EM v71",ver));
33 
34  // Synchroton Radiation & GN Physics
35  RegisterPhysics(new G4EmExtraPhysics("extra EM"));
36 
37  // Decays
38  RegisterPhysics(new G4DecayPhysics("decay"));
39 
40  // Hadron Elastic scattering
41  RegisterPhysics(new G4HadronElasticPhysics("elastic",ver,false));
42 
43  // Hadron Physics
44  G4bool quasiElastic=true;
45  RegisterPhysics(new HadronPhysicsQGSP("hadron",quasiElastic));
46  //RegisterPhysics(new HadronPhysicsQGSP("hadron"));
47 
48  // Stopping Physics
49  RegisterPhysics(new G4QStoppingPhysics("stopping"));
50 
51  // Ion Physics
52  RegisterPhysics(new G4IonPhysics("ion"));
53 
54  // Neutron tracking cut
55  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
56 
57  // Custom Physics
58  RegisterPhysics(new CustomPhysicsList("custom",p));
59 }
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:7
Table table_
Definition: Actions.cc:22