CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_FTFP_BERT_EML95msc93.cc
Go to the documentation of this file.
1 #include "QGSPCMS_FTFP_BERT_EML95msc93.hh"
6 
7 #include "G4DecayPhysics.hh"
8 #include "G4EmExtraPhysics.hh"
9 #include "G4IonPhysics.hh"
10 #include "G4StoppingPhysics.hh"
11 #include "G4HadronElasticPhysics.hh"
12 #include "G4NeutronTrackingCut.hh"
13 #include "G4HadronicProcessStore.hh"
14 
15 #include "G4DataQuestionaire.hh"
16 #include "G4HadronPhysicsQGSP_FTFP_BERT.hh"
17 
18 QGSPCMS_FTFP_BERT_EML95msc93::QGSPCMS_FTFP_BERT_EML95msc93(G4LogicalVolumeToDDLogicalPartMap& map,
20  sim::ChordFinderSetter *chordFinderSetter_,
21  const edm::ParameterSet & p) : PhysicsList(map, table_, chordFinderSetter_, p) {
22 
23  G4DataQuestionaire it(photon);
24 
25  int ver = p.getUntrackedParameter<int>("Verbosity",0);
26  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
27  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
28  bool tracking= p.getParameter<bool>("TrackingCut");
29  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
30  << "QGSP_FTFP_BERT_EML95msc93 \n Flags for EM Physics "
31  << emPhys << ", for Hadronic Physics "
32  << hadPhys << " and tracking cut " << tracking;
33 
34  if (emPhys) {
35  // EM Physics
36  RegisterPhysics( new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
37 
38  // Synchroton Radiation & GN Physics
39  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
40  RegisterPhysics(gn);
41  }
42 
43  // Decays
44  this->RegisterPhysics( new G4DecayPhysics(ver) );
45 
46  if (hadPhys) {
47  G4HadronicProcessStore::Instance()->SetVerbose(ver);
48 
49  // Hadron Elastic scattering
50  RegisterPhysics( new G4HadronElasticPhysics(ver));
51 
52  // Hadron Physics
53  RegisterPhysics( new HadronPhysicsQGSPCMS_FTFP_BERT(ver));
54 
55  // Stopping Physics
56  RegisterPhysics( new G4StoppingPhysics(ver));
57 
58  // Ion Physics
59  RegisterPhysics( new G4IonPhysics(ver));
60 
61  // Neutron tracking cut
62  if (tracking) {
63  RegisterPhysics( new G4NeutronTrackingCut(ver));
64  }
65  }
66 
67  // Monopoles
68  RegisterPhysics( new CMSMonopolePhysics(table_,chordFinderSetter_,p));
69 }
70 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_