CMS 3D CMS Logo

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