CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_BERT_EMLSNX.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EMLSNX.hh"
8 
9 #include "globals.hh"
10 #include "G4ParticleDefinition.hh"
11 #include "G4ParticleWithCuts.hh"
12 #include "G4ProcessManager.hh"
13 #include "G4ProcessVector.hh"
14 #include "G4ParticleTypes.hh"
15 #include "G4ParticleTable.hh"
16 
17 #include "G4Material.hh"
18 #include "G4MaterialTable.hh"
19 #include "G4ios.hh"
20 #include <iomanip>
21 
22 #include "G4DecayPhysics.hh"
23 #include "G4EmStandardPhysics_option1.hh"
24 #include "G4EmExtraPhysics.hh"
25 #include "G4IonPhysics.hh"
26 #include "G4QStoppingPhysics.hh"
27 #include "G4HadronElasticPhysics.hh"
28 #include "G4NeutronTrackingCut.hh"
29 
30 #include "G4DataQuestionaire.hh"
31 #include "HadronPhysicsQGSP_BERT.hh"
32 
33 
34 QGSPCMS_BERT_EMLSNX::QGSPCMS_BERT_EMLSNX(G4LogicalVolumeToDDLogicalPartMap& map,
36  sim::FieldBuilder *fieldBuilder_,
37  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
38 
39  G4DataQuestionaire it(photon);
40 
41  int ver = p.getUntrackedParameter<int>("Verbosity",0);
42  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
43  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
44  bool tracking= p.getParameter<bool>("TrackingCut");
45  std::string region = p.getParameter<std::string>("Region");
46  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
47  << "QGSP_BERT_EMLSNX 3.3 with Flags for EM Physics "
48  << emPhys << ", for Hadronic Physics "
49  << hadPhys << " and tracking cut " << tracking
50  << " with special region " << region;
51 
52  if (emPhys) {
53  // EM Physics
54  RegisterPhysics( new CMSEmStandardPhysics92("emstandard_eml",ver,region));
55 
56  // Synchroton Radiation & GN Physics
57  RegisterPhysics( new G4EmExtraPhysics("extra EM"));
58  }
59 
60  // Decays
61  RegisterPhysics( new G4DecayPhysics("decay",ver) );
62 
63  if (hadPhys) {
64  // Hadron Elastic scattering
65  RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
66 
67  // Hadron Physics
68  G4bool quasiElastic=true;
69  RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic));
70 
71  // Stopping Physics
72  RegisterPhysics( new G4QStoppingPhysics("stopping"));
73 
74  // Ion Physics
75  RegisterPhysics( new G4IonPhysics("ion"));
76 
77  // Neutron tracking cut
78  if (tracking)
79  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
80 
81  // Neutron x-section
82  RegisterPhysics( new CMSNeutronXS("neutronXS",ver));
83 
84  // Neutron x-section
85  RegisterPhysics( new CMSHadronElasticPhysicsXS(ver));
86 
87  // Glauber Gribov Cross Section
88  RegisterPhysics( new CMSGlauberGribovXS(ver));
89  }
90 
91  // Monopoles
92  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
93 }
94 
95 
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