ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Core
ISF_Tools
src
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
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
17
// ISF
18
#include "
ISF_Interfaces/BaseSimulatorTool.h
"
19
20
namespace
ISF
{
21
22
class
ParticleKillerSimTool
:
public
BaseSimulatorTool
{
23
public
:
24
ParticleKillerSimTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
25
26
~ParticleKillerSimTool
();
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
AthAlgTool.h
BaseSimulatorTool.h
ISF::BaseSimulatorTool::BaseSimulatorTool
BaseSimulatorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
BaseSimulatorTool.h:39
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
ISF::ParticleKillerSimTool::simFlavor
virtual ISF::SimulationFlavor simFlavor() const override
Definition
ParticleKillerSimTool.h:39
ISF::ParticleKillerSimTool::~ParticleKillerSimTool
~ParticleKillerSimTool()
Definition
ParticleKillerSimTool.cxx:12
ISF::ParticleKillerSimTool::initialize
virtual StatusCode initialize() override
Definition
ParticleKillerSimTool.cxx:16
ISF::ParticleKillerSimTool::ParticleKillerSimTool
ParticleKillerSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ParticleKillerSimTool.cxx:7
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::ParticleKillerSimTool::simulate
virtual StatusCode simulate(const EventContext &ctx, ISFParticle &isp, ISFParticleContainer &, McEventCollection *) override
Definition
ParticleKillerSimTool.cxx:20
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
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
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
ISF::SimulationFlavor
int SimulationFlavor
Identifier type for simulation flavor.
Definition
SimulationFlavor.h:16
ISF::ParticleKiller
@ ParticleKiller
Definition
SimulationFlavor.h:21
ISF::ISFParticleContainer
std::list< ISF::ISFParticle * > ISFParticleContainer
generic ISFParticle container (not necessarily a std::list!)
Definition
ISFParticleContainer.h:23
ISF::ISFParticleVector
std::vector< ISF::ISFParticle * > ISFParticleVector
ISFParticle vector.
Definition
ISFParticleContainer.h:26
type
Generated on
for ATLAS Offline Software by
1.17.0