ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace ISF {
21
23public:
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
BaseSimulatorTool(const std::string &type, const std::string &name, const IInterface *parent)
The generic ISF particle definition,.
Definition ISFParticle.h:42
virtual ISF::SimulationFlavor simFlavor() const override
virtual StatusCode initialize() override
ParticleKillerSimTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode setupEvent(const EventContext &) override
Setup Event chain - in case of a begin-of event action is needed.
virtual StatusCode simulate(const EventContext &ctx, ISFParticle &isp, ISFParticleContainer &, McEventCollection *) override
virtual StatusCode simulateVector(const EventContext &ctx, const ISFParticleVector &particles, ISFParticleContainer &, McEventCollection *, McEventCollection *) override
Simulation call for vectors of particles.
virtual StatusCode releaseEvent(const EventContext &) override
Release Event chain - in case of an end-of event action is needed.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
ISFParticleOrderedQueue.
int SimulationFlavor
Identifier type for simulation flavor.
@ ParticleKiller
std::list< ISF::ISFParticle * > ISFParticleContainer
generic ISFParticle container (not necessarily a std::list!)
std::vector< ISF::ISFParticle * > ISFParticleVector
ISFParticle vector.