CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_BERT_EMLGG.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EMLGG.hh"
6 
7 #include "G4DecayPhysics.hh"
8 #include "G4EmExtraPhysics.hh"
9 #include "G4IonPhysics.hh"
10 #include "G4QStoppingPhysics.hh"
11 #include "G4HadronElasticPhysics.hh"
12 #include "G4NeutronTrackingCut.hh"
13 
14 #include "G4DataQuestionaire.hh"
15 #include "HadronPhysicsQGSP_BERT.hh"
16 
17 #include <string>
18 
19 QGSPCMS_BERT_EMLGG::QGSPCMS_BERT_EMLGG(G4LogicalVolumeToDDLogicalPartMap& map,
21  sim::FieldBuilder *fieldBuilder_,
22  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
23 
24  G4DataQuestionaire it(photon);
25 
26  int ver = p.getUntrackedParameter<int>("Verbosity",0);
27  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
28  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
29  bool tracking= p.getParameter<bool>("TrackingCut");
30  std::string region = p.getParameter<std::string>("Region");
31  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
32  << "QGSP_BERT_EMLGG 3.3 with Flags for EM Physics "
33  << emPhys << ", for Hadronic Physics "
34  << hadPhys << " and tracking cut " << tracking
35  << " with special region " << region;
36 
37  if (emPhys) {
38  // EM Physics
39  RegisterPhysics( new CMSEmStandardPhysics92("standard EM EML",ver,region));
40 
41  // Synchroton Radiation & GN Physics
42  RegisterPhysics( new G4EmExtraPhysics("extra EM"));
43  }
44 
45  // Decays
46  RegisterPhysics( new G4DecayPhysics("decay",ver) );
47 
48  if (hadPhys) {
49  // Hadron Elastic scattering
50  RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
51 
52  // Hadron Physics
53  G4bool quasiElastic=true;
54  RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic));
55  //RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
56 
57  // Stopping Physics
58  RegisterPhysics( new G4QStoppingPhysics("stopping"));
59 
60  // Ion Physics
61  RegisterPhysics( new G4IonPhysics("ion"));
62 
63  // Neutron tracking cut
64  if (tracking)
65  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
66 
67  // Glauber Griboc Cross Section
68  RegisterPhysics( new CMSGlauberGribovXS(ver));
69  }
70 
71  // Monopoles
72  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
73 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
dictionary map
Definition: Association.py:205
Table table_
Definition: Actions.cc:22