CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_BERT_EMLSYNC.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EMLSYNC.hh"
5 
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4StoppingPhysics.hh"
10 #include "G4HadronElasticPhysics.hh"
11 #include "G4NeutronTrackingCut.hh"
12 #include "G4HadronicProcessStore.hh"
13 
14 #include "G4DataQuestionaire.hh"
15 #include "G4HadronPhysicsQGSP_BERT.hh"
16 
17 QGSPCMS_BERT_EMLSYNC::QGSPCMS_BERT_EMLSYNC(G4LogicalVolumeToDDLogicalPartMap& map,
19  sim::ChordFinderSetter *chordFinderSetter_,
20  const edm::ParameterSet & p) : PhysicsList(map, table_, chordFinderSetter_, p) {
21 
22  G4DataQuestionaire it(photon);
23 
24  int ver = p.getUntrackedParameter<int>("Verbosity",0);
25  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
26  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
27  bool tracking= p.getParameter<bool>("TrackingCut");
28  bool munucl = p.getParameter<bool>("FlagMuNucl");
29  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
30  << "QGSP_BERT_EMLSYNC with 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* extra = new G4EmExtraPhysics(ver);
40  G4String yes = "ON";
41  extra->Synch(yes);
42  if(munucl) { extra->MuonNuclear(yes); }
43  RegisterPhysics(extra);
44  }
45 
46  // Decays
47  this->RegisterPhysics( new G4DecayPhysics(ver) );
48 
49  if (hadPhys) {
50  G4HadronicProcessStore::Instance()->SetVerbose(ver);
51 
52  // Hadron Elastic scattering
53  RegisterPhysics( new G4HadronElasticPhysics(ver));
54 
55  // Hadron Physics
56  RegisterPhysics( new G4HadronPhysicsQGSP_BERT(ver));
57 
58  // Stopping Physics
59  RegisterPhysics( new G4StoppingPhysics(ver));
60 
61  // Ion Physics
62  RegisterPhysics( new G4IonPhysics(ver));
63 
64  // Neutron tracking cut
65  if (tracking) {
66  RegisterPhysics( new G4NeutronTrackingCut(ver));
67  }
68  }
69 
70  // Monopoles
71  RegisterPhysics( new CMSMonopolePhysics(table_,chordFinderSetter_,p));
72 }
73 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_