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
FTFPCMS_BERT_EMZ Class Reference

#include <FTFPCMS_BERT_EMZ.h>

Inheritance diagram for FTFPCMS_BERT_EMZ:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_EMZ (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 15 of file FTFPCMS_BERT_EMZ.h.

Constructor & Destructor Documentation

FTFPCMS_BERT_EMZ::FTFPCMS_BERT_EMZ ( const edm::ParameterSet p)

Definition at line 13 of file FTFPCMS_BERT_EMZ.cc.

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

13  : PhysicsList(p) {
14  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
15  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
16  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
17  double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
18  double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
19  double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
20  edm::LogVerbatim("PhysicsList") << "CMS Physics List FTFP_BERT_EMZ: "
21  << "\n Flags for EM Physics: " << emPhys << "; Hadronic Physics: " << hadPhys
22  << "\n transition energy Bertini/FTFP from " << minFTFP / CLHEP::GeV << " to "
23  << maxBERT / CLHEP::GeV << ":" << maxBERTpi / CLHEP::GeV << " GeV";
24 
25  if (emPhys) {
26  // EM Physics
27  RegisterPhysics(new CMSEmStandardPhysicsEMZ(ver));
28 
29  // Synchroton Radiation & GN Physics
30  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
31  RegisterPhysics(gn);
32  }
33 
34  // Decays
35  this->RegisterPhysics(new G4DecayPhysics(ver));
36 
37  if (hadPhys) {
38  // Hadron Elastic scattering
39  RegisterPhysics(new G4HadronElasticPhysics(ver));
40 
41  // Hadron Physics
42  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(minFTFP, maxBERT, maxBERTpi, minFTFP, maxBERT));
43 
44  // Stopping Physics
45  RegisterPhysics(new G4StoppingPhysics(ver));
46 
47  // Ion Physics
48  RegisterPhysics(new G4IonPhysics(ver));
49  }
50 }
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