CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_XS_EML Class Reference

#include <FTFPCMS_BERT_XS_EML.h>

Inheritance diagram for FTFPCMS_BERT_XS_EML:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_XS_EML (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 FTFPCMS_BERT_XS_EML.h.

Constructor & Destructor Documentation

FTFPCMS_BERT_XS_EML::FTFPCMS_BERT_XS_EML ( const edm::ParameterSet p)

Definition at line 18 of file FTFPCMS_BERT_XS_EML.cc.

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

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