4 #include "G4Electron.hh"
5 #include "G4ProcessManager.hh"
7 #include "G4BaryonConstructor.hh"
8 #include "G4IonConstructor.hh"
9 #include "G4LeptonConstructor.hh"
10 #include "G4MesonConstructor.hh"
11 #include "G4RegionStore.hh"
12 #include "G4ShortLivedConstructor.hh"
17 : G4VPhysicsConstructor(name), theParSet(p) {}
30 G4LeptonConstructor pLeptonConstructor;
31 pLeptonConstructor.ConstructParticle();
33 G4MesonConstructor pMesonConstructor;
34 pMesonConstructor.ConstructParticle();
36 G4BaryonConstructor pBaryonConstructor;
37 pBaryonConstructor.ConstructParticle();
39 G4ShortLivedConstructor pShortLivedConstructor;
40 pShortLivedConstructor.ConstructParticle();
42 G4IonConstructor pConstructor;
43 pConstructor.ConstructParticle();
55 G4cout <<
"GFlash Construct: " << gem <<
" " << ghad << G4endl;
60 G4ParticleTable *
table = G4ParticleTable::GetParticleTable();
62 for (
const auto &particleName : emList.
PartNames()) {
63 G4ParticleDefinition *particle = table->FindParticle(particleName);
64 G4ProcessManager *pmanager = particle->GetProcessManager();
65 const G4String &
pname = particle->GetParticleName();
66 if (pname ==
"e-" || pname ==
"e+") {
72 G4Region *aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
75 G4cout <<
"EcalRegion is not defined !!!" << G4endl;
76 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
81 G4cout <<
"GFlash is defined for EcalRegion" << G4endl;
85 G4Region *aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
87 G4cout <<
"HcalRegion is not defined !!!" << G4endl;
88 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
93 G4cout <<
"GFlash is defined for HcalRegion" << G4endl;
const std::vector< G4String > & PartNames() const
void ConstructParticle() override
void ConstructProcess() override
ParametrisedPhysics(std::string name, const edm::ParameterSet &p)
~ParametrisedPhysics() override
tuple GflashEMShowerModel
edm::ParameterSet theParSet
G4FastSimulationManagerProcess * theFastSimulationManagerProcess
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel
T getParameter(std::string const &) const
GflashHadronShowerModel * theHadronShowerModel
static G4ThreadLocal ThreadPrivate * tpdata