#include <ParametrisedPhysics.h>
Definition at line 13 of file ParametrisedPhysics.h.
ParametrisedPhysics::ParametrisedPhysics |
( |
std::string |
name, |
|
|
const edm::ParameterSet & |
p |
|
) |
| |
ParametrisedPhysics::~ParametrisedPhysics |
( |
| ) |
|
|
virtual |
void ParametrisedPhysics::ConstructParticle |
( |
| ) |
|
|
protectedvirtual |
Definition at line 31 of file ParametrisedPhysics.cc.
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();
void ParametrisedPhysics::ConstructProcess |
( |
| ) |
|
|
protectedvirtual |
Definition at line 49 of file ParametrisedPhysics.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), ecalTB2006H4_GenSimDigiReco_cfg::GflashEMShowerModel, theEMShowerModel, theHadShowerModel, and theParSet.
53 std::cout <<
"GFlash Construct: " << gem <<
" " << ghad << std::endl;
56 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
57 new G4FastSimulationManagerProcess();
58 aParticleIterator->reset();
59 while ((*aParticleIterator)()) {
60 G4ParticleDefinition * particle = aParticleIterator->value();
61 G4ProcessManager * pmanager = particle->GetProcessManager();
62 G4String pname = particle->GetParticleName();
63 if(pname ==
"e-" || pname ==
"e+") {
64 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
69 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
72 std::cout <<
"EcalRegion is not defined !!!" << std::endl;
73 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
80 std::cout <<
"GFlash is defined for EcalRegion" << std::endl;
84 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
86 std::cout <<
"HcalRegion is not defined !!!" << std::endl;
87 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
94 std::cout <<
"GFlash is defined for HcalRegion" << std::endl;
T getParameter(std::string const &) const
tuple GflashEMShowerModel
edm::ParameterSet theParSet
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel