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"
16 G4VPhysicsConstructor(name), theParSet(p)
31 G4LeptonConstructor pLeptonConstructor;
32 pLeptonConstructor.ConstructParticle();
34 G4MesonConstructor pMesonConstructor;
35 pMesonConstructor.ConstructParticle();
37 G4BaryonConstructor pBaryonConstructor;
38 pBaryonConstructor.ConstructParticle();
40 G4ShortLivedConstructor pShortLivedConstructor;
41 pShortLivedConstructor.ConstructParticle();
43 G4IonConstructor pConstructor;
44 pConstructor.ConstructParticle();
51 std::cout <<
"GFlash Construct: " << gem <<
" " << ghad << std::endl;
54 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
55 new G4FastSimulationManagerProcess();
56 theParticleIterator->reset();
57 while ((*theParticleIterator)()) {
58 G4ParticleDefinition * particle = theParticleIterator->value();
59 G4ProcessManager * pmanager = particle->GetProcessManager();
60 G4String pname = particle->GetParticleName();
61 if(pname ==
"e-" || pname ==
"e+") {
62 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
67 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
70 std::cout <<
"EcalRegion is not defined !!!" << std::endl;
71 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
78 std::cout <<
"GFlash is defined for EcalRegion" << std::endl;
82 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
84 std::cout <<
"HcalRegion is not defined !!!" << std::endl;
85 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
92 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