Go to the documentation of this file.00001 #include "SimG4Core/CustomPhysics/interface/CustomPhysics.h"
00002 #include "SimG4Core/CustomPhysics/interface/CustomPhysicsList.h"
00003 #include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysics95msc93.h"
00004 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00005
00006 #include "G4DecayPhysics.hh"
00007 #include "G4EmExtraPhysics.hh"
00008 #include "G4IonPhysics.hh"
00009 #include "G4StoppingPhysics.hh"
00010 #include "G4HadronElasticPhysics.hh"
00011 #include "G4NeutronTrackingCut.hh"
00012
00013 #include "G4DataQuestionaire.hh"
00014 #include "HadronPhysicsQGSP_FTFP_BERT.hh"
00015
00016 CustomPhysics::CustomPhysics(G4LogicalVolumeToDDLogicalPartMap& map,
00017 const HepPDT::ParticleDataTable * table_,
00018 sim::FieldBuilder *fieldBuilder_,
00019 const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
00020
00021 G4DataQuestionaire it(photon);
00022
00023 int ver = p.getUntrackedParameter<int>("Verbosity",0);
00024 bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
00025 bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
00026 edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
00027 << "QQGSP_FTFP_BERT_EML with Flags for EM Physics "
00028 << emPhys << " and for Hadronic Physics "
00029 << hadPhys << "\n";
00030
00031
00032 RegisterPhysics(new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
00033
00034
00035 RegisterPhysics(new G4EmExtraPhysics(ver));
00036
00037
00038 RegisterPhysics(new G4DecayPhysics(ver));
00039
00040
00041 RegisterPhysics(new G4HadronElasticPhysics(ver));
00042
00043
00044 RegisterPhysics(new HadronPhysicsQGSP_FTFP_BERT(ver));
00045
00046
00047 RegisterPhysics(new G4StoppingPhysics(ver));
00048
00049
00050 RegisterPhysics(new G4IonPhysics(ver));
00051
00052
00053 RegisterPhysics( new G4NeutronTrackingCut(ver));
00054
00055
00056 RegisterPhysics(new CustomPhysicsList("custom",p));
00057 }