ATLAS Offline Software
Loading...
Searching...
No Matches
StoppedParticleFastSim.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKWRITEFASTSIM_StoppedParticleFastSim_h
6#define TRACKWRITEFASTSIM_StoppedParticleFastSim_h
7
8//Base class header
9#include "G4VFastSimulationModel.hh"
10#include <G4Region.hh>
11
12//STL headers
13#include <string>
14
15class TrackFastSimSD;
16
17class StoppedParticleFastSim: public G4VFastSimulationModel
18{
19public:
20
21 StoppedParticleFastSim(const std::string& name, G4Region* region, const std::string& fsSDname);
23
24 // Fast Sim Methods
25 G4bool IsApplicable(const G4ParticleDefinition&) override final;
26 virtual G4bool ModelTrigger(const G4FastTrack &) override final;
27 void DoIt(const G4FastTrack&, G4FastStep&) override final;
28
29protected:
30
32 bool m_init{false};
33 std::string m_fsSDname{""};
34};
35
36#endif // TRACKWRITEFASTSIM_StoppedParticleFastSim_h
StoppedParticleFastSim(const std::string &name, G4Region *region, const std::string &fsSDname)
G4bool IsApplicable(const G4ParticleDefinition &) override final
void DoIt(const G4FastTrack &, G4FastStep &) override final
virtual G4bool ModelTrigger(const G4FastTrack &) override final