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" 14 using namespace CLHEP;
19 : G4VPhysicsConstructor(name), theParSet(p) {}
32 G4LeptonConstructor pLeptonConstructor;
33 pLeptonConstructor.ConstructParticle();
35 G4MesonConstructor pMesonConstructor;
36 pMesonConstructor.ConstructParticle();
38 G4BaryonConstructor pBaryonConstructor;
39 pBaryonConstructor.ConstructParticle();
41 G4ShortLivedConstructor pShortLivedConstructor;
42 pShortLivedConstructor.ConstructParticle();
44 G4IonConstructor pConstructor;
45 pConstructor.ConstructParticle();
57 G4cout <<
"GFlash Construct: " << gem <<
" " << ghad << G4endl;
62 G4ParticleTable *table = G4ParticleTable::GetParticleTable();
65 G4ParticleDefinition *particle = table->FindParticle(
particleName);
66 G4ProcessManager *pmanager = particle->GetProcessManager();
67 const G4String &
pname = particle->GetParticleName();
68 if (pname ==
"e-" || pname ==
"e+") {
74 G4Region *aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
77 G4cout <<
"EcalRegion is not defined !!!" << G4endl;
78 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
83 G4cout <<
"GFlash is defined for EcalRegion" << G4endl;
87 G4Region *aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
89 G4cout <<
"HcalRegion is not defined !!!" << G4endl;
90 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
95 G4cout <<
"GFlash is defined for HcalRegion" << G4endl;
T getParameter(std::string const &) const
const std::vector< G4String > & PartNames() const
void ConstructParticle() override
void ConstructProcess() override
ParametrisedPhysics(std::string name, const edm::ParameterSet &p)
~ParametrisedPhysics() override
edm::ParameterSet theParSet
G4FastSimulationManagerProcess * theFastSimulationManagerProcess
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel
GflashHadronShowerModel * theHadronShowerModel
static G4ThreadLocal ThreadPrivate * tpdata