ATLAS Offline Software
ParticleKillerSimTool.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef ISF_PARTICLEKILLERSIMTOOL_h
8 #define ISF_PARTICLEKILLERSIMTOOL_h
9 
10 //Gaudi
11 #include "GaudiKernel/ServiceHandle.h"
12 #include "GaudiKernel/ToolHandle.h" // for ToolHandleArray
13 
14 //Athena
16 
17 // ISF
19 
20 namespace ISF {
21 
23 public:
24  ParticleKillerSimTool( const std::string& type, const std::string& name, const IInterface* parent);
25 
27 
28  virtual StatusCode initialize() override;
29 
30  virtual StatusCode simulate(const EventContext& ctx, ISFParticle& isp, ISFParticleContainer&, McEventCollection* ) override;
31 
33  virtual StatusCode simulateVector(const EventContext& ctx, const ISFParticleVector& particles, ISFParticleContainer&, McEventCollection*, McEventCollection *) override;
34 
35  virtual StatusCode setupEvent(const EventContext&) override { return StatusCode::SUCCESS; };
36 
37  virtual StatusCode releaseEvent(const EventContext&) override { return StatusCode::SUCCESS; };
38 
39  virtual ISF::SimulationFlavor simFlavor() const override { return ISF::ParticleKiller; };
40 };
41 
42 }
43 
44 #endif
ISF::ISFParticleContainer
std::list< ISF::ISFParticle * > ISFParticleContainer
generic ISFParticle container (not necessarily a std::list!)
Definition: ISFParticleContainer.h:23
ISF::ParticleKillerSimTool::simFlavor
virtual ISF::SimulationFlavor simFlavor() const override
Definition: ParticleKillerSimTool.h:39
ISF::ParticleKiller
@ ParticleKiller
Definition: SimulationFlavor.h:21
ISF::ISFParticle
Definition: ISFParticle.h:42
ISF::ParticleKillerSimTool::simulateVector
virtual StatusCode simulateVector(const EventContext &ctx, const ISFParticleVector &particles, ISFParticleContainer &, McEventCollection *, McEventCollection *) override
Simulation call for vectors of particles.
Definition: ParticleKillerSimTool.cxx:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
ISF::ISFParticleVector
std::vector< ISF::ISFParticle * > ISFParticleVector
ISFParticle vector.
Definition: ISFParticleContainer.h:26
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ISF::ParticleKillerSimTool::simulate
virtual StatusCode simulate(const EventContext &ctx, ISFParticle &isp, ISFParticleContainer &, McEventCollection *) override
Definition: ParticleKillerSimTool.cxx:20
ISF::ParticleKillerSimTool::ParticleKillerSimTool
ParticleKillerSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ParticleKillerSimTool.cxx:7
BaseSimulatorTool.h
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition: McEventCollection.h:33
ISF::ParticleKillerSimTool::releaseEvent
virtual StatusCode releaseEvent(const EventContext &) override
Release Event chain - in case of an end-of event action is needed.
Definition: ParticleKillerSimTool.h:37
ISF::ParticleKillerSimTool
Definition: ParticleKillerSimTool.h:22
ISF::BaseSimulatorTool
Definition: BaseSimulatorTool.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ISF::ParticleKillerSimTool::~ParticleKillerSimTool
~ParticleKillerSimTool()
Definition: ParticleKillerSimTool.cxx:12
ISF::ParticleKillerSimTool::setupEvent
virtual StatusCode setupEvent(const EventContext &) override
Setup Event chain - in case of a begin-of event action is needed.
Definition: ParticleKillerSimTool.h:35
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ISF::ParticleKillerSimTool::initialize
virtual StatusCode initialize() override
Definition: ParticleKillerSimTool.cxx:16
LArG4FSStartPointFilter.particles
list particles
Definition: LArG4FSStartPointFilter.py:84
ISF::SimulationFlavor
int SimulationFlavor
Identifier type for simulation flavor.
Definition: SimulationFlavor.h:16