CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_EMM Class Reference

#include <FTFPCMS_BERT_EMM.h>

Inheritance diagram for FTFPCMS_BERT_EMM:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_EMM (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_EMM.h.

Constructor & Destructor Documentation

◆ FTFPCMS_BERT_EMM()

FTFPCMS_BERT_EMM::FTFPCMS_BERT_EMM ( const edm::ParameterSet p)

Definition at line 16 of file FTFPCMS_BERT_EMM.cc.

16  : PhysicsList(p) {
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 }

References GeV, and AlCaHLTBitMon_ParallelJobs::p.

PhysicsList::PhysicsList
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
tracking
Definition: TempMeasurements.h:8
GeV
const double GeV
Definition: MathUtil.h:16
CMSEmStandardPhysicsLPM
Definition: CMSEmStandardPhysicsLPM.h:7
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
CMSHadronPhysicsFTFP_BERT106
Definition: CMSHadronPhysicsFTFP_BERT106.h:19