test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 19 of file CustomPhysics.cc.

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

22  : PhysicsList(map, table_, chordFinderSetter_, p) {
23 
24  G4DataQuestionaire it(photon);
25 
26  int ver = p.getUntrackedParameter<int>("Verbosity",0);
27  bool tracking= p.getParameter<bool>("TrackingCut");
28  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS",false);
29  double timeLimit = p.getParameter<double>("MaxTrackTime")*ns;
30  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
31  << "QGSP_FTFP_BERT_EML for regular particles \n"
32  << "CustomPhysicsList " << ssPhys << " for exotics; "
33  << " tracking cut " << tracking << " t(ns)= " << timeLimit/ns;
34  // EM Physics
35  RegisterPhysics(new CMSEmStandardPhysics(ver));
36  //RegisterPhysics(new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
37 
38  // Synchroton Radiation & GN Physics
39  RegisterPhysics(new G4EmExtraPhysics(ver));
40 
41  // Decays
42  RegisterPhysics(new G4DecayPhysics(ver));
43 
44  // Hadron Elastic scattering
45  RegisterPhysics(new G4HadronElasticPhysics(ver));
46 
47  // Hadron Physics
48  RegisterPhysics(new G4HadronPhysicsQGSP_FTFP_BERT(ver));
49 
50  // Stopping Physics
51  RegisterPhysics(new G4StoppingPhysics(ver));
52 
53  // Ion Physics
54  RegisterPhysics(new G4IonPhysics(ver));
55 
56  // Neutron tracking cut
57  if (tracking) {
58  G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver);
59  ncut->SetTimeLimit(timeLimit);
60  RegisterPhysics(ncut);
61  }
62 
63  // Custom Physics
64  if(ssPhys) {
65  RegisterPhysics(new CustomPhysicsListSS("custom",p));
66  } else {
67  RegisterPhysics(new CustomPhysicsList("custom",p));
68  }
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_