CMS 3D CMS Logo

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