CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_EMH Class Reference

#include <FTFPCMS_BERT_EMH.h>

Inheritance diagram for FTFPCMS_BERT_EMH:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_EMH (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_EMH.h.

Constructor & Destructor Documentation

◆ FTFPCMS_BERT_EMH()

FTFPCMS_BERT_EMH::FTFPCMS_BERT_EMH ( const edm::ParameterSet p)

Definition at line 11 of file FTFPCMS_BERT_EMH.cc.

References AlCaHLTBitMon_ParallelJobs::p.

11  : PhysicsList(p) {
12  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
13  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
14  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
15  double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
16  double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
17  double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
18  edm::LogVerbatim("PhysicsList") << "CMS Physics List FTFP_BERT_EMH: "
19  << "\n Flags for EM Physics: " << emPhys << "; Hadronic Physics: " << hadPhys
20  << "\n Transition energy Bertini/FTFP from " << minFTFP / CLHEP::GeV << " to "
21  << maxBERT / CLHEP::GeV << "; for pions to " << maxBERTpi / CLHEP::GeV << " GeV";
22 
23  if (emPhys) {
24  // EM Physics
25  RegisterPhysics(new CMSEmStandardPhysicsEMH(ver, p));
26  }
27 
28  // Decays
29  this->RegisterPhysics(new G4DecayPhysics(ver));
30 
31  if (hadPhys) {
32  // Hadron Elastic scattering
33  RegisterPhysics(new G4HadronElasticPhysics(ver));
34 
35  // Hadron Physics
36  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(minFTFP, maxBERT, maxBERTpi, minFTFP, maxBERT));
37 
38  // Stopping Physics
39  RegisterPhysics(new G4StoppingPhysics(ver));
40 
41  // Ion Physics
42  RegisterPhysics(new G4IonPhysics(ver));
43  }
44 }
Log< level::Info, true > LogVerbatim
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3