4 #include "G4Electron.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();
60 G4cout <<
"GFlash Construct: " << gem <<
" " << ghad << G4endl;
64 new G4FastSimulationManagerProcess();
66 G4ParticleTable* table = G4ParticleTable::GetParticleTable();
69 G4ParticleDefinition* particle = table->FindParticle(
particleName);
70 G4ProcessManager * pmanager = particle->GetProcessManager();
71 const G4String&
pname = particle->GetParticleName();
72 if(pname ==
"e-" || pname ==
"e+") {
78 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
81 G4cout <<
"EcalRegion is not defined !!!" << G4endl;
82 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
89 G4cout <<
"GFlash is defined for EcalRegion" << G4endl;
93 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
95 G4cout <<
"HcalRegion is not defined !!!" << G4endl;
96 G4cout <<
"This means that GFlash will not be turned on." << G4endl;
103 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