ATLAS Offline Software
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 
6 
7 ISF::ParticleKillerSimTool::ParticleKillerSimTool(const std::string& type, const std::string& name, const IInterface* parent)
9 {
10 }
11 
13 
14 }
15 
17  return StatusCode::SUCCESS;
18 }
19 
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 
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