CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
QGSPCMS_FTFP_BERT_EMN Class Reference

#include <QGSPCMS_FTFP_BERT_EMN.h>

Inheritance diagram for QGSPCMS_FTFP_BERT_EMN:
PhysicsList

Public Member Functions

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

Constructor & Destructor Documentation

QGSPCMS_FTFP_BERT_EMN::QGSPCMS_FTFP_BERT_EMN ( const edm::ParameterSet p)

Definition at line 16 of file QGSPCMS_FTFP_BERT_EMN.cc.

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

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  double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
23  double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
24  double minQGSP = p.getParameter<double>("EminQGSP") * CLHEP::GeV;
25  double maxFTFP = p.getParameter<double>("EmaxFTFP") * CLHEP::GeV;
26  double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
27  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: "
28  << "QGSP_FTFP_BERT_EMN \n Flags for EM Physics " << emPhys
29  << ", for Hadronic Physics " << hadPhys << " and tracking cut " << tracking
30  << " t(ns)= " << timeLimit / CLHEP::ns << "\n transition energy Bertini/FTFP from "
31  << minFTFP / CLHEP::GeV << " to " << maxBERTpi / CLHEP::GeV << ":"
32  << maxBERT / CLHEP::GeV << " GeV"
33  << "\n transition energy FTFP/QGSP from " << minQGSP / CLHEP::GeV << " to "
34  << maxFTFP / CLHEP::GeV << " GeV";
35 
36  if (emPhys) {
37  // EM Physics
38  RegisterPhysics(new CMSEmStandardPhysicsXS(ver, p));
39 
40  // Synchroton Radiation & GN Physics
41  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
42  RegisterPhysics(gn);
43  }
44 
45  // Decays
46  RegisterPhysics(new G4DecayPhysics(ver));
47 
48  if (hadPhys) {
49  G4HadronicProcessStore::Instance()->SetVerbose(ver);
50 
51  // Hadron Elastic scattering
52  RegisterPhysics(new G4HadronElasticPhysics(ver));
53 
54  // Hadron Physics
55  RegisterPhysics(new HadronPhysicsQGSPCMS_FTFP_BERT(minFTFP, maxBERT, minQGSP, maxFTFP, maxBERTpi));
56 
57  // Stopping Physics
58  RegisterPhysics(new G4StoppingPhysics(ver));
59 
60  // Ion Physics
61  RegisterPhysics(new G4IonPhysics(ver));
62 
63  // Neutron tracking cut
64  if (tracking) {
65  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
66  ncut->SetTimeLimit(timeLimit);
67  RegisterPhysics(ncut);
68  }
69  }
70 }
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
const double GeV
Definition: MathUtil.h:16
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
T getParameter(std::string const &) const
Definition: ParameterSet.h:303