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 18 of file CustomPhysics.cc.

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

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