ATLAS Offline Software
Simulation
ISF
ISF_Core
ISF_Tools
src
ParticleKillerSimTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./ParticleKillerSimTool.h
"
6
7
ISF::ParticleKillerSimTool::ParticleKillerSimTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
)
8
:
BaseSimulatorTool
(
type
,
name
,
parent
)
9
{
10
}
11
12
ISF::ParticleKillerSimTool::~ParticleKillerSimTool
() {
13
14
}
15
16
StatusCode
ISF::ParticleKillerSimTool::initialize
() {
17
return
StatusCode::SUCCESS;
18
}
19
20
StatusCode
ISF::ParticleKillerSimTool::simulate
(
const
EventContext&,
ISFParticle
& isp,
ISFParticleContainer
&,
McEventCollection
* ) {
21
22
// give a screen output that you entered ParticleKillerSimSvc
23
ATH_MSG_VERBOSE
(
"Particle '"
<< isp <<
"' received for simulation."
);
24
ATH_MSG_VERBOSE
(
"Killing this particle, since this"
25
<<
"is the soul purpose of this 'simulation engine'."
);
26
27
// particle 'simulation' done
28
// (memory management, ie delete, of the ISFParticle is done inside the ISFKernel)
29
return
StatusCode::SUCCESS;
30
}
31
32
StatusCode
ISF::ParticleKillerSimTool::simulateVector
(
const
EventContext& ctx,
const
ISFParticleVector
&
particles
,
ISFParticleContainer
& secondaries,
McEventCollection
* mcEventCollection,
McEventCollection
*) {
33
for
(
auto
isp :
particles
) {
34
ATH_CHECK
(simulate(ctx, *isp, secondaries, mcEventCollection));
35
}
36
return
StatusCode::SUCCESS;
37
}
ISF::ISFParticleContainer
std::list< ISF::ISFParticle * > ISFParticleContainer
generic ISFParticle container (not necessarily a std::list!)
Definition:
ISFParticleContainer.h:23
ISF::ISFParticle
Definition:
ISFParticle.h:42
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition:
AthMsgStreamMacros.h:28
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
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
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
ISF::ParticleKillerSimTool::ParticleKillerSimTool
ParticleKillerSimTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
ParticleKillerSimTool.cxx:7
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition:
McEventCollection.h:33
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
ParticleKillerSimTool.h
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
Generated on Sun Dec 22 2024 21:16:03 for ATLAS Offline Software by
1.8.18