CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_EMN Class Reference

#include <FTFPCMS_BERT_EMN.h>

Inheritance diagram for FTFPCMS_BERT_EMN:
PhysicsList

Public Member Functions

 FTFPCMS_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 FTFPCMS_BERT_EMN.h.

Constructor & Destructor Documentation

◆ FTFPCMS_BERT_EMN()

FTFPCMS_BERT_EMN::FTFPCMS_BERT_EMN ( const edm::ParameterSet p)

Definition at line 13 of file FTFPCMS_BERT_EMN.cc.

References amptDefaultParameters_cff::mu, and AlCaHLTBitMon_ParallelJobs::p.

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_EMN: "
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 CMSEmStandardPhysicsXS(ver, p));
28 
29  // Synchroton Radiation & GN Physics
30  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
31  RegisterPhysics(gn);
32  bool mu = p.getParameter<bool>("G4MuonPairProductionByMuon");
33  gn->MuonToMuMu(mu);
34  edm::LogVerbatim("PhysicsList") << " Muon pair production by muons: " << mu;
35  }
36 
37  // Decays
38  this->RegisterPhysics(new G4DecayPhysics(ver));
39 
40  if (hadPhys) {
41  bool ngen = p.getParameter<bool>("G4NeutronGeneralProcess");
42  bool bc = p.getParameter<bool>("G4BCHadronicProcess");
43  bool hn = p.getParameter<bool>("G4LightHyperNucleiTracking");
44  auto param = G4HadronicParameters::Instance();
45  param->SetEnableNeutronGeneralProcess(ngen);
46  param->SetEnableBCParticles(bc);
47  param->SetEnableHyperNuclei(hn);
48  edm::LogVerbatim("PhysicsList") << " Eneble neutron general process: " << ngen
49  << "\n Enable b- and c- hadron physics: " << bc
50  << "\n Enable light hyper-nuclei physics: " << hn;
51  // Hadron Elastic scattering
52  RegisterPhysics(new G4HadronElasticPhysics(ver));
53 
54  // Hadron Physics
55  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(minFTFP, maxBERT, maxBERTpi, minFTFP, maxBERT));
56 
57  // Stopping Physics
58  RegisterPhysics(new G4StoppingPhysics(ver));
59 
60  // Ion Physics
61  RegisterPhysics(new G4IonPhysics(ver));
62  }
63 }
Log< level::Info, true > LogVerbatim
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3