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"
16 G4VPhysicsConstructor(name), theParSet(p) {}
27 G4LeptonConstructor pLeptonConstructor;
28 pLeptonConstructor.ConstructParticle();
30 G4MesonConstructor pMesonConstructor;
31 pMesonConstructor.ConstructParticle();
33 G4BaryonConstructor pBaryonConstructor;
34 pBaryonConstructor.ConstructParticle();
36 G4ShortLivedConstructor pShortLivedConstructor;
37 pShortLivedConstructor.ConstructParticle();
39 G4IonConstructor pConstructor;
40 pConstructor.ConstructParticle();
45 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
new G4FastSimulationManagerProcess();
46 theParticleIterator->reset();
47 while ((*theParticleIterator)()) {
48 G4ParticleDefinition * particle = theParticleIterator->value();
49 G4ProcessManager * pmanager = particle->GetProcessManager();
50 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
54 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"CaloRegion");
56 std::cout <<
"CaloRegion is not defined !!!" << std::endl;
57 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
58 std::cout <<
"Take a look at cmsGflashGeometryXML.cfi if it includes gflashCaloProdCuts.xml." << std::endl;
T getParameter(std::string const &) const
tuple GflashHadronShowerModel
ParametrisedPhysics(std::string name, const edm::ParameterSet &p)
tuple GflashEMShowerModel
edm::ParameterSet theParSet
GflashEMShowerModel * theEMShowerModel
virtual void ConstructParticle()
virtual ~ParametrisedPhysics()
virtual void ConstructProcess()
GflashHadronShowerModel * theHadronShowerModel