CMS 3D CMS Logo

List of all members | Public Member Functions
CustomPhysics Class Reference

#include <CustomPhysics.h>

Inheritance diagram for CustomPhysics:
PhysicsList

Public Member Functions

 CustomPhysics (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)
 
virtual void SetCuts ()
 
virtual ~PhysicsList ()
 

Detailed Description

Definition at line 7 of file CustomPhysics.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file CustomPhysics.cc.

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

21  : PhysicsList(map, table_, chordFinderSetter_, p) {
22 
23  G4DataQuestionaire it(photon);
24 
25  int ver = p.getUntrackedParameter<int>("Verbosity",0);
26  bool tracking= p.getParameter<bool>("TrackingCut");
27  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS",false);
28  double timeLimit = p.getParameter<double>("MaxTrackTime")*ns;
29  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
30  << "QGSP_FTFP_BERT_EML for regular particles \n"
31  << "CustomPhysicsList " << ssPhys << " for exotics; "
32  << " tracking cut " << tracking << " t(ns)= " << timeLimit/ns;
33  // EM Physics
34  RegisterPhysics(new CMSEmStandardPhysicsLPM(ver));
35 
36  // Synchroton Radiation & GN Physics
37  RegisterPhysics(new G4EmExtraPhysics(ver));
38 
39  // Decays
40  RegisterPhysics(new G4DecayPhysics(ver));
41 
42  // Hadron Elastic scattering
43  RegisterPhysics(new G4HadronElasticPhysics(ver));
44 
45  // Hadron Physics
46  RegisterPhysics(new G4HadronPhysicsFTFP_BERT(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  // Custom Physics
62  if(ssPhys) {
63  RegisterPhysics(new CustomPhysicsListSS("custom",p));
64  } else {
65  RegisterPhysics(new CustomPhysicsList("custom",p));
66  }
67 }
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_