CMS 3D CMS Logo

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