CMS 3D CMS Logo

QGSPCMS_BERT.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT.h"
3 
4 #include "G4EmStandardPhysics.hh"
5 #include "G4DecayPhysics.hh"
6 #include "G4EmExtraPhysics.hh"
7 #include "G4IonPhysics.hh"
8 #include "G4StoppingPhysics.hh"
9 #include "G4HadronElasticPhysics.hh"
10 #include "G4NeutronTrackingCut.hh"
11 #include "G4HadronicProcessStore.hh"
12 
13 #include "G4HadronPhysicsQGSP_BERT.hh"
14 
16  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
17  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
18  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
19  bool tracking = p.getParameter<bool>("TrackingCut");
20  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
21  << "QGSP_BERT \n Flags for EM Physics " << emPhys << ", for Hadronic Physics " << hadPhys
22  << " and tracking cut " << tracking;
23 
24  if (emPhys) {
25  // EM Physics
26  RegisterPhysics(new G4EmStandardPhysics(ver));
27 
28  // Synchroton Radiation & GN Physics
29  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
30  RegisterPhysics(gn);
31  }
32 
33  // Decays
34  this->RegisterPhysics(new G4DecayPhysics(ver));
35 
36  if (hadPhys) {
37  G4HadronicProcessStore::Instance()->SetVerbose(ver);
38 
39  // Hadron Elastic scattering
40  RegisterPhysics(new G4HadronElasticPhysics(ver));
41 
42  // Hadron Physics
43  RegisterPhysics(new G4HadronPhysicsQGSP_BERT(ver));
44 
45  // Stopping Physics
46  RegisterPhysics(new G4StoppingPhysics(ver));
47 
48  // Ion Physics
49  RegisterPhysics(new G4IonPhysics(ver));
50 
51  // Neutron tracking cut
52  if (tracking) {
53  RegisterPhysics(new G4NeutronTrackingCut(ver));
54  }
55  }
56 }
MessageLogger.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::LogInfo
Definition: MessageLogger.h:254
tracking
Definition: TempMeasurements.h:8
QGSPCMS_BERT.h
PhysicsList
Definition: PhysicsList.h:7
edm::ParameterSet
Definition: ParameterSet.h:36
QGSPCMS_BERT::QGSPCMS_BERT
QGSPCMS_BERT(const edm::ParameterSet &p)
Definition: QGSPCMS_BERT.cc:15