From 666145faea3308bb04ababddd422ef6b4a2e4774 Mon Sep 17 00:00:00 2001 From: lintao <lintao51@gmail.com> Date: Mon, 7 Dec 2020 18:05:24 +0800 Subject: [PATCH] WIP: setup DummyFastSimG4Model --- .../src/DummyFastSimG4Model.cpp | 21 +++++++++++++++++++ .../DetSimFastModel/src/DummyFastSimG4Model.h | 12 +++++++++++ 2 files changed, 33 insertions(+) diff --git a/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp b/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp index efb52f51..6b590cae 100644 --- a/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp +++ b/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp @@ -1 +1,22 @@ #include "DummyFastSimG4Model.h" + +DummyFastSimG4Model::DummyFastSimG4Model(G4String aModelName, G4Region* aEnvelope) + : G4VFastSimulationModel(aModelName, aEnvelope) { + +} + +DummyFastSimG4Model::~DummyFastSimG4Model() { + +} + +G4bool DummyFastSimG4Model::IsApplicable(const G4ParticleDefinition& aParticle) { + return true; +} + +G4bool DummyFastSimG4Model::ModelTrigger(const G4FastTrack& aFastTrack) { + return true; +} + +void DummyFastSimG4Model::DoIt(const G4FastTrack& aFastTrack, G4FastStep& aFastStep) { + +} diff --git a/Simulation/DetSimFastModel/src/DummyFastSimG4Model.h b/Simulation/DetSimFastModel/src/DummyFastSimG4Model.h index d045439f..fca5093f 100644 --- a/Simulation/DetSimFastModel/src/DummyFastSimG4Model.h +++ b/Simulation/DetSimFastModel/src/DummyFastSimG4Model.h @@ -1,7 +1,19 @@ #ifndef DummyFastSimG4Model_h #define DummyFastSimG4Model_h +#include "G4VFastSimulationModel.hh" +class DummyFastSimG4Model: public G4VFastSimulationModel { +public: + + DummyFastSimG4Model(G4String aModelName, G4Region* aEnvelope); + ~DummyFastSimG4Model(); + + virtual G4bool IsApplicable( const G4ParticleDefinition& aParticle ); + virtual G4bool ModelTrigger( const G4FastTrack& aFastTrack ); + virtual void DoIt( const G4FastTrack& aFastTrack, G4FastStep& aFastStep ); + +}; #endif -- GitLab