Skip to content
Snippets Groups Projects
Commit da5f8cb9 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

enable the PAI model.

parent feb7155e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
#include "DetectorConstruction.h"
#include "G4PhysListFactory.hh"
#include "G4EmParameters.hh"
#include "G4StepLimiterPhysics.hh"
#include "G4FastSimulationPhysics.hh"
#include "PrimaryGeneratorAction.h"
......@@ -59,6 +60,10 @@ DetSimAlg::initialize() {
G4PhysListFactory *physListFactory = new G4PhysListFactory();
G4VModularPhysicsList* modularPhysicsList = physListFactory->GetReferencePhysList(m_physics_lists_name.value());
// PAI model
G4EmParameters::Instance()->AddPAIModel("all","DriftChamberRegion","pai");
// G4EmParameters::Instance()->AddPAIModel("all","DriftChamberRegion","pai_photon");
// register addition physics list
modularPhysicsList->RegisterPhysics(new G4StepLimiterPhysics());
......
......@@ -17,7 +17,7 @@ G4bool DummyFastSimG4Model::IsApplicable(const G4ParticleDefinition& aParticle)
}
G4bool DummyFastSimG4Model::ModelTrigger(const G4FastTrack& aFastTrack) {
G4cout << __FILE__ << __LINE__ << ": ModelTrigger." << G4endl;
// G4cout << __FILE__ << __LINE__ << ": ModelTrigger." << G4endl;
bool istrigged = false;
......@@ -31,7 +31,7 @@ G4bool DummyFastSimG4Model::ModelTrigger(const G4FastTrack& aFastTrack) {
}
void DummyFastSimG4Model::DoIt(const G4FastTrack& aFastTrack, G4FastStep& aFastStep) {
G4cout << __FILE__ << __LINE__ << ": DoIt." << G4endl;
// G4cout << __FILE__ << __LINE__ << ": DoIt." << G4endl;
aFastStep.ProposeTrackStatus(fStopAndKill);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment