diff --git a/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp b/Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp index efb52f51540edbbeccfc401dacd2b21c992eaeee..6b590cae4bffdb559fd1fddb0a8939cc83065979 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 d045439f3380e3362d27698c620da35235d51a0e..fca5093f8574d8529df72b9e74e0bcbcdcc4414a 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