CMS 3D CMS Logo

List of all members | Public Member Functions
CustomPhysics Class Reference

#include <CustomPhysics.h>

Inheritance diagram for CustomPhysics:
PhysicsList

Public Member Functions

 CustomPhysics (const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 7 of file CustomPhysics.h.

Constructor & Destructor Documentation

◆ CustomPhysics()

CustomPhysics::CustomPhysics ( const edm::ParameterSet p)

Definition at line 19 of file CustomPhysics.cc.

References AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.

19  : PhysicsList(p) {
20  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
21  bool tracking = p.getParameter<bool>("TrackingCut");
22  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS", false);
23  bool dbrem = p.getUntrackedParameter<bool>("DBrem", false);
24  double timeLimit = p.getParameter<double>("MaxTrackTime") * ns;
25  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
26  << "FTFP_BERT_EMM for regular particles \n"
27  << "CustomPhysicsList " << ssPhys << " for exotics; "
28  << " tracking cut " << tracking << " t(ns)= " << timeLimit / ns;
29  // EM Physics
30  RegisterPhysics(new CMSEmStandardPhysics(ver, p));
31 
32  // Synchroton Radiation & GN Physics
33  RegisterPhysics(new G4EmExtraPhysics(ver));
34 
35  // Decays
36  RegisterPhysics(new G4DecayPhysics(ver));
37 
38  // Hadron Elastic scattering
39  RegisterPhysics(new G4HadronElasticPhysics(ver));
40 
41  // Hadron Physics
42  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(ver));
43 
44  // Stopping Physics
45  RegisterPhysics(new G4StoppingPhysics(ver));
46 
47  // Ion Physics
48  RegisterPhysics(new G4IonPhysics(ver));
49 
50  // Neutron tracking cut
51  if (tracking) {
52  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
53  ncut->SetTimeLimit(timeLimit);
54  RegisterPhysics(ncut);
55  }
56 
57  // Custom Physics
58  if (dbrem) {
59  RegisterPhysics(new APrimePhysics(p.getUntrackedParameter<double>("DBremMass"),
60  p.getUntrackedParameter<std::string>("DBremScaleFile"),
61  p.getUntrackedParameter<double>("DBremBiasFactor")));
62  } else if (ssPhys) {
63  RegisterPhysics(new CustomPhysicsListSS("custom", p));
64  } else {
65  RegisterPhysics(new CustomPhysicsList("custom", p));
66  }
67 }
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
Log< level::Info, false > LogInfo