CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_EMMT Class Reference

#include <FTFPCMS_BERT_EMMT.h>

Inheritance diagram for FTFPCMS_BERT_EMMT:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_EMMT (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_EMMT.h.

Constructor & Destructor Documentation

◆ FTFPCMS_BERT_EMMT()

FTFPCMS_BERT_EMMT::FTFPCMS_BERT_EMMT ( const edm::ParameterSet p)

Definition at line 12 of file FTFPCMS_BERT_EMMT.cc.

References AlCaHLTBitMon_ParallelJobs::p.

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