CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LHEPCMS_EMV.cc
Go to the documentation of this file.
1 #include "LHEPCMS_EMV.hh"
5 
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4QStoppingPhysics.hh"
10 #include "G4HadronElasticPhysics.hh"
11 
12 #include "G4DataQuestionaire.hh"
13 #include "HadronPhysicsLHEP_EMV.hh"
14 
15 LHEPCMS_EMV::LHEPCMS_EMV(G4LogicalVolumeToDDLogicalPartMap& map,
17  sim::FieldBuilder *fieldBuilder_,
18  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
19 
20  G4DataQuestionaire it(photon);
21 
22  int ver = p.getUntrackedParameter<int>("Verbosity",0);
23  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
24  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
25  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
26  << "LHEP_EMV 3.2 with Flags for EM Physics "
27  << emPhys << " and for Hadronic Physics "
28  << hadPhys << "\n";
29 
30  if (emPhys) {
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 
38  // General Physics - i.e. decay
39  RegisterPhysics( new G4DecayPhysics("decay"));
40 
41  if (hadPhys) {
42  // Hadron Elastic scattering
43  RegisterPhysics( new G4HadronElasticPhysics("LElastic",ver,false));
44 
45  // Hadron Physics
46  RegisterPhysics( new HadronPhysicsLHEP_EMV("hadron"));
47 
48  // Stopping Physics
49  RegisterPhysics(new G4QStoppingPhysics("stopping"));
50 
51  // Ion Physics
52  RegisterPhysics( new G4IonPhysics("ion"));
53  }
54 
55  // Monopoles
56  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
57 }
58 
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
dictionary map
Definition: Association.py:205
Table table_
Definition: Actions.cc:22