CMS 3D CMS Logo

CustomPhysics.cc
Go to the documentation of this file.
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 
14 #include "G4HadronPhysicsFTFP_BERT.hh"
15 #include "G4SystemOfUnits.hh"
16 
18  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
19  bool tracking = p.getParameter<bool>("TrackingCut");
20  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS", false);
21  double timeLimit = p.getParameter<double>("MaxTrackTime") * ns;
22  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
23  << "FTFP_BERT_EMM for regular particles \n"
24  << "CustomPhysicsList " << ssPhys << " for exotics; "
25  << " tracking cut " << tracking << " t(ns)= " << timeLimit / ns;
26  // EM Physics
27  RegisterPhysics(new CMSEmStandardPhysicsLPM(ver));
28 
29  // Synchroton Radiation & GN Physics
30  RegisterPhysics(new G4EmExtraPhysics(ver));
31 
32  // Decays
33  RegisterPhysics(new G4DecayPhysics(ver));
34 
35  // Hadron Elastic scattering
36  RegisterPhysics(new G4HadronElasticPhysics(ver));
37 
38  // Hadron Physics
39  RegisterPhysics(new G4HadronPhysicsFTFP_BERT(ver));
40 
41  // Stopping Physics
42  RegisterPhysics(new G4StoppingPhysics(ver));
43 
44  // Ion Physics
45  RegisterPhysics(new G4IonPhysics(ver));
46 
47  // Neutron tracking cut
48  if (tracking) {
49  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
50  ncut->SetTimeLimit(timeLimit);
51  RegisterPhysics(ncut);
52  }
53 
54  // Custom Physics
55  if (ssPhys) {
56  RegisterPhysics(new CustomPhysicsListSS("custom", p));
57  } else {
58  RegisterPhysics(new CustomPhysicsList("custom", p));
59  }
60 }
MessageLogger.h
CustomPhysicsListSS
Definition: CustomPhysicsListSS.h:11
CustomPhysicsList.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::LogInfo
Definition: MessageLogger.h:254
tracking
Definition: TempMeasurements.h:8
CustomPhysicsListSS.h
CustomPhysics::CustomPhysics
CustomPhysics(const edm::ParameterSet &p)
Definition: CustomPhysics.cc:17
PhysicsList
Definition: PhysicsList.h:7
edm::ParameterSet
Definition: ParameterSet.h:36
CMSEmStandardPhysicsLPM
Definition: CMSEmStandardPhysicsLPM.h:8
CustomPhysics.h
CustomPhysicsList
Definition: CustomPhysicsList.h:12
CMSEmStandardPhysicsLPM.h