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 (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 7 of file QBBCCMS.h.

Constructor & Destructor Documentation

QBBCCMS::QBBCCMS ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::ChordFinderSetter chordFinderSetter_,
const edm::ParameterSet p 
)

Definition at line 17 of file QBBCCMS.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and muons2muons_cfi::photon.

20  : PhysicsList(map, table_, chordFinderSetter_, p) {
21 
22  G4DataQuestionaire it(photon);
23 
24  int ver = p.getUntrackedParameter<int>("Verbosity",0);
25  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
26  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
27  bool tracking= p.getParameter<bool>("TrackingCut");
28  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
29  << "QBBC \n Flags for EM Physics "
30  << emPhys << " and for Hadronic Physics "
31  << hadPhys
32  << " and tracking cut " << tracking;
33 
34  if (emPhys) {
35  // EM Physics
36  RegisterPhysics( new G4EmStandardPhysics(ver));
37 
38  // Synchroton Radiation & GN Physics
39  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
40  RegisterPhysics(gn);
41  }
42 
43  // Decays
44  RegisterPhysics(new G4DecayPhysics(ver));
45 
46  if (hadPhys) {
47  G4HadronicProcessStore::Instance()->SetVerbose(ver);
48 
49  // Hadron Elastic scattering
50  RegisterPhysics(new G4HadronElasticPhysicsXS(ver));
51 
52  // Hadron Physics
53  RegisterPhysics( new G4HadronInelasticQBBC(ver));
54 
55  // Stopping Physics
56  RegisterPhysics(new G4StoppingPhysics(ver));
57 
58  // Ion Physics
59  RegisterPhysics(new G4IonPhysics(ver));
60 
61  // Neutron tracking cut
62  if (tracking) {
63  RegisterPhysics( new G4NeutronTrackingCut(ver));
64  }
65  }
66 
67  // Monopoles
68  RegisterPhysics( new CMSMonopolePhysics(table_,chordFinderSetter_,p));
69 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
Table table_