CMS 3D CMS Logo

FTFPCMS_BERT_EMM.cc
Go to the documentation of this file.
1 #include "FTFPCMS_BERT_EMM.h"
7 
8 #include "G4DecayPhysics.hh"
9 #include "G4EmExtraPhysics.hh"
10 #include "G4IonPhysics.hh"
11 #include "G4StoppingPhysics.hh"
12 #include "G4HadronElasticPhysics.hh"
13 #include "G4NeutronTrackingCut.hh"
14 #include "G4HadronicProcessStore.hh"
15 
17  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
18  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
19  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
20  bool tracking = p.getParameter<bool>("TrackingCut");
21  double timeLimit = p.getParameter<double>("MaxTrackTime") * CLHEP::ns;
22  double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
23  double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
24  double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
25  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: FTFP_BERT_EMM: \n Flags for EM Physics: "
26  << emPhys << "; Hadronic Physics: " << hadPhys << "; tracking cut: " << tracking
27  << "; time limit(ns)= " << timeLimit / CLHEP::ns
28  << "\n Transition energy Bertini/FTFP from " << minFTFP / CLHEP::GeV << " to "
29  << maxBERT / CLHEP::GeV << "; for pions to " << maxBERTpi / CLHEP::GeV << " GeV";
30 
31  if (emPhys) {
32  // EM Physics
33  RegisterPhysics(new CMSEmStandardPhysicsLPM(ver));
34 
35  // Synchroton Radiation & GN Physics
36  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
37  RegisterPhysics(gn);
38  }
39 
40  // Decays
41  this->RegisterPhysics(new G4DecayPhysics(ver));
42 
43  if (hadPhys) {
44  G4HadronicProcessStore::Instance()->SetVerbose(ver);
45 
46  // Hadron Elastic scattering
47  RegisterPhysics(new G4HadronElasticPhysics(ver));
48 
49  // Hadron Physics
50  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT106(minFTFP, maxBERT, maxBERTpi));
51 
52  // Stopping Physics
53  RegisterPhysics(new G4StoppingPhysics(ver));
54 
55  // Ion Physics
56  RegisterPhysics(new G4IonPhysics(ver));
57 
58  // Neutron tracking cut
59  if (tracking) {
60  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
61  ncut->SetTimeLimit(timeLimit);
62  RegisterPhysics(ncut);
63  }
64  }
65 }
MessageLogger.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CMSHadronPhysicsFTFP_BERT.h
tracking
Definition: TempMeasurements.h:8
CMSEmStandardPhysics.h
PhysicsList
Definition: PhysicsList.h:7
edm::ParameterSet
Definition: ParameterSet.h:47
GeV
const double GeV
Definition: MathUtil.h:16
FTFPCMS_BERT_EMM::FTFPCMS_BERT_EMM
FTFPCMS_BERT_EMM(const edm::ParameterSet &p)
Definition: FTFPCMS_BERT_EMM.cc:16
CMSEmStandardPhysicsLPM
Definition: CMSEmStandardPhysicsLPM.h:7
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
CMSHadronPhysicsFTFP_BERT106.h
CMSEmStandardPhysicsLPM.h
CMSHadronPhysicsFTFP_BERT106
Definition: CMSHadronPhysicsFTFP_BERT106.h:19
FTFPCMS_BERT_EMM.h