3 #include "G4Electron.hh"
4 #include "G4FastSimulationManagerProcess.hh"
5 #include "G4ProcessManager.hh"
7 #include "G4LeptonConstructor.hh"
8 #include "G4MesonConstructor.hh"
9 #include "G4BaryonConstructor.hh"
10 #include "G4ShortLivedConstructor.hh"
11 #include "G4IonConstructor.hh"
12 #include "G4RegionStore.hh"
14 using namespace CLHEP;
18 G4VPhysicsConstructor(name), theParSet(p)
33 G4LeptonConstructor pLeptonConstructor;
34 pLeptonConstructor.ConstructParticle();
36 G4MesonConstructor pMesonConstructor;
37 pMesonConstructor.ConstructParticle();
39 G4BaryonConstructor pBaryonConstructor;
40 pBaryonConstructor.ConstructParticle();
42 G4ShortLivedConstructor pShortLivedConstructor;
43 pShortLivedConstructor.ConstructParticle();
45 G4IonConstructor pConstructor;
46 pConstructor.ConstructParticle();
53 std::cout <<
"GFlash Construct: " << gem <<
" " << ghad << std::endl;
56 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
57 new G4FastSimulationManagerProcess();
58 theParticleIterator->reset();
59 while ((*theParticleIterator)()) {
60 G4ParticleDefinition * particle = theParticleIterator->value();
61 G4ProcessManager * pmanager = particle->GetProcessManager();
62 G4String pname = particle->GetParticleName();
63 if(pname ==
"e-" || pname ==
"e+") {
64 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
69 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
72 std::cout <<
"EcalRegion is not defined !!!" << std::endl;
73 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
80 std::cout <<
"GFlash is defined for EcalRegion" << std::endl;
84 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
86 std::cout <<
"HcalRegion is not defined !!!" << std::endl;
87 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
94 std::cout <<
"GFlash is defined for HcalRegion" << std::endl;
T getParameter(std::string const &) const
ParametrisedPhysics(std::string name, const edm::ParameterSet &p)
tuple GflashEMShowerModel
edm::ParameterSet theParSet
GflashEMShowerModel * theEMShowerModel
virtual void ConstructParticle()
virtual ~ParametrisedPhysics()
virtual void ConstructProcess()
GflashHadronShowerModel * theHadronShowerModel
GflashEMShowerModel * theHadShowerModel