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::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, 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::FieldBuilder fieldBuilder_,
const edm::ParameterSet p 
)

Definition at line 18 of file CustomPhysics.cc.

References edm::ParameterSet::getUntrackedParameter().

21  : PhysicsList(map, table_, fieldBuilder_, p) {
22 
23  G4DataQuestionaire it(photon);
24 
25  int ver = p.getUntrackedParameter<int>("Verbosity",0);
26  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS",false);
27  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
28  << "QGSP_FTFP_BERT_EML for regular particles";
29 
30  // EM Physics
31  RegisterPhysics(new CMSEmStandardPhysics(ver));
32  //RegisterPhysics(new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
33 
34  // Synchroton Radiation & GN Physics
35  RegisterPhysics(new G4EmExtraPhysics(ver));
36 
37  // Decays
38  RegisterPhysics(new G4DecayPhysics(ver));
39 
40  // Hadron Elastic scattering
41  RegisterPhysics(new G4HadronElasticPhysics(ver));
42 
43  // Hadron Physics
44  RegisterPhysics(new G4HadronPhysicsQGSP_FTFP_BERT(ver));
45 
46  // Stopping Physics
47  RegisterPhysics(new G4StoppingPhysics(ver));
48 
49  // Ion Physics
50  RegisterPhysics(new G4IonPhysics(ver));
51 
52  // Neutron tracking cut
53  RegisterPhysics(new G4NeutronTrackingCut(ver));
54 
55  // Custom Physics
56  if(ssPhys) {
57  RegisterPhysics(new CustomPhysicsListSS("custom",p));
58  } else {
59  RegisterPhysics(new CustomPhysicsList("custom",p));
60  }
61 }
T getUntrackedParameter(std::string const &, T const &) const
Table table_
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:8