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;
19 G4VPhysicsConstructor(name), theParSet(p)
34 G4LeptonConstructor pLeptonConstructor;
35 pLeptonConstructor.ConstructParticle();
37 G4MesonConstructor pMesonConstructor;
38 pMesonConstructor.ConstructParticle();
40 G4BaryonConstructor pBaryonConstructor;
41 pBaryonConstructor.ConstructParticle();
43 G4ShortLivedConstructor pShortLivedConstructor;
44 pShortLivedConstructor.ConstructParticle();
46 G4IonConstructor pConstructor;
47 pConstructor.ConstructParticle();
59 G4cout <<
"GFlash Construct: " << gem <<
" " << ghad << G4endl;
62 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
63 new G4FastSimulationManagerProcess();
64 aParticleIterator->reset();
65 while ((*aParticleIterator)()) {
66 G4ParticleDefinition * particle = aParticleIterator->value();
67 G4ProcessManager * pmanager = particle->GetProcessManager();
68 G4String
pname = particle->GetParticleName();
69 if(pname ==
"e-" || pname ==
"e+") {
70 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
75 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
78 G4cout <<
"EcalRegion is not defined !!!" << G4endl;
79 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
86 G4cout <<
"GFlash is defined for EcalRegion" << G4endl;
90 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
92 G4cout <<
"HcalRegion is not defined !!!" << G4endl;
93 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
100 G4cout <<
"GFlash is defined for HcalRegion" << G4endl;
T getParameter(std::string const &) const
ParametrisedPhysics(std::string name, const edm::ParameterSet &p)
tuple GflashEMShowerModel
edm::ParameterSet theParSet
virtual void ConstructParticle()
virtual ~ParametrisedPhysics()
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel
virtual void ConstructProcess()
GflashHadronShowerModel * theHadronShowerModel
static G4ThreadLocal ThreadPrivate * tpdata