3 #include "G4Electron.hh" 4 #include "G4ProcessManager.hh" 6 #include "G4LeptonConstructor.hh" 7 #include "G4MesonConstructor.hh" 8 #include "G4BaryonConstructor.hh" 9 #include "G4ShortLivedConstructor.hh" 10 #include "G4IonConstructor.hh" 11 #include "G4RegionStore.hh" 13 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();
59 G4cout <<
"GFlash Construct: " << gem <<
" " << ghad << G4endl;
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+") {
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)
edm::ParameterSet theParSet
G4FastSimulationManagerProcess * theFastSimulationManagerProcess
virtual void ConstructParticle()
virtual ~ParametrisedPhysics()
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel
virtual void ConstructProcess()
GflashHadronShowerModel * theHadronShowerModel
static G4ThreadLocal ThreadPrivate * tpdata