CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_FTFP_BERT_EMY Class Reference

#include <QGSPCMS_FTFP_BERT_EMY.h>

Inheritance diagram for QGSPCMS_FTFP_BERT_EMY:
PhysicsList

Public Member Functions

 QGSPCMS_FTFP_BERT_EMY (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 14 of file QGSPCMS_FTFP_BERT_EMY.h.

Constructor & Destructor Documentation

QGSPCMS_FTFP_BERT_EMY::QGSPCMS_FTFP_BERT_EMY ( const edm::ParameterSet p)

Definition at line 16 of file QGSPCMS_FTFP_BERT_EMY.cc.

References edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().

16  : PhysicsList(p) {
17  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
18  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
19  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
20  bool tracking = p.getParameter<bool>("TrackingCut");
21  double timeLimit = p.getParameter<double>("MaxTrackTime") * CLHEP::ns;
22  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: "
23  << "QGSP_FTFP_BERT_EMY \n Flags for EM Physics " << emPhys
24  << ", for Hadronic Physics " << hadPhys << " and tracking cut " << tracking
25  << " t(ns)= " << timeLimit / CLHEP::ns;
26 
27  if (emPhys) {
28  // EM Physics
29  RegisterPhysics(new G4EmStandardPhysics_option3(ver));
30  G4EmParameters::Instance()->SetMscStepLimitType(fUseSafetyPlus);
31 
32  // Synchroton Radiation & GN Physics
33  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
34  RegisterPhysics(gn);
35  }
36 
37  // Decays
38  RegisterPhysics(new G4DecayPhysics(ver));
39 
40  if (hadPhys) {
41  G4HadronicProcessStore::Instance()->SetVerbose(ver);
42 
43  // Hadron Elastic scattering
44  RegisterPhysics(new G4HadronElasticPhysics(ver));
45 
46  // Hadron Physics
47  RegisterPhysics(new G4HadronPhysicsQGSP_FTFP_BERT(ver));
48 
49  // Stopping Physics
50  RegisterPhysics(new G4StoppingPhysics(ver));
51 
52  // Ion Physics
53  RegisterPhysics(new G4IonPhysics(ver));
54 
55  // Neutron tracking cut
56  if (tracking) {
57  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
58  ncut->SetTimeLimit(timeLimit);
59  RegisterPhysics(ncut);
60  }
61  }
62 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3