#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 29 of file ParametrisedPhysics.cc.
31 G4LeptonConstructor pLeptonConstructor;
32 pLeptonConstructor.ConstructParticle();
34 G4MesonConstructor pMesonConstructor;
35 pMesonConstructor.ConstructParticle();
37 G4BaryonConstructor pBaryonConstructor;
38 pBaryonConstructor.ConstructParticle();
40 G4ShortLivedConstructor pShortLivedConstructor;
41 pShortLivedConstructor.ConstructParticle();
43 G4IonConstructor pConstructor;
44 pConstructor.ConstructParticle();
void ParametrisedPhysics::ConstructProcess |
( |
| ) |
|
|
protectedvirtual |
Definition at line 47 of file ParametrisedPhysics.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), ecalTB2006H4_GenSimDigiReco_cfg::GflashEMShowerModel, theEMShowerModel, theHadShowerModel, and theParSet.
51 std::cout <<
"GFlash Construct: " << gem <<
" " << ghad << std::endl;
54 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
55 new G4FastSimulationManagerProcess();
56 theParticleIterator->reset();
57 while ((*theParticleIterator)()) {
58 G4ParticleDefinition * particle = theParticleIterator->value();
59 G4ProcessManager * pmanager = particle->GetProcessManager();
60 G4String pname = particle->GetParticleName();
61 if(pname ==
"e-" || pname ==
"e+") {
62 pmanager->AddProcess(theFastSimulationManagerProcess, -1, -1, 1);
67 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
70 std::cout <<
"EcalRegion is not defined !!!" << std::endl;
71 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
78 std::cout <<
"GFlash is defined for EcalRegion" << std::endl;
82 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
84 std::cout <<
"HcalRegion is not defined !!!" << std::endl;
85 std::cout <<
"This means that GFlash will not be turned on." << std::endl;
92 std::cout <<
"GFlash is defined for HcalRegion" << std::endl;
T getParameter(std::string const &) const
tuple GflashEMShowerModel
edm::ParameterSet theParSet
GflashEMShowerModel * theEMShowerModel
GflashEMShowerModel * theHadShowerModel