CMS 3D CMS Logo

List of all members | Public Member Functions
QBBCCMS Class Reference

#include <QBBCCMS.h>

Inheritance diagram for QBBCCMS:
PhysicsList

Public Member Functions

 QBBCCMS (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 QBBCCMS.h.

Constructor & Destructor Documentation

◆ QBBCCMS()

QBBCCMS::QBBCCMS ( const edm::ParameterSet p)

Definition at line 16 of file QBBCCMS.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  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: "
23  << "FTFP_BERT_EMM: \n Flags for EM Physics: " << emPhys
24  << "; Hadronic Physics: " << hadPhys << "; tracking cut: " << tracking
25  << "; time limit(ns)= " << timeLimit / CLHEP::ns;
26 
27  if (emPhys) {
28  // EM Physics
29  RegisterPhysics(new CMSEmStandardPhysics(ver, p));
30 
31  // Synchroton Radiation & GN Physics
32  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
33  RegisterPhysics(gn);
34  }
35 
36  // Decays
37  RegisterPhysics(new G4DecayPhysics(ver));
38 
39  if (hadPhys) {
40  G4HadronicProcessStore::Instance()->SetVerbose(ver);
41 
42  // Hadron Elastic scattering
43  RegisterPhysics(new G4HadronElasticPhysicsXS(ver));
44 
45  // Hadron Physics
46  RegisterPhysics(new G4HadronInelasticQBBC(ver));
47 
48  // Stopping Physics
49  RegisterPhysics(new G4StoppingPhysics(ver));
50 
51  // Ion Physics
52  RegisterPhysics(new G4IonPhysics(ver));
53 
54  // Neutron tracking cut
55  if (tracking) {
56  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
57  ncut->SetTimeLimit(timeLimit);
58  RegisterPhysics(ncut);
59  }
60  }
61 }

References AlCaHLTBitMon_ParallelJobs::p.

CMSEmStandardPhysics
Definition: CMSEmStandardPhysics.h:10
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
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128