ATLAS Offline Software
Simulation
ISF
ISF_Geant4
ISF_Geant4Services
src
Geant4SimSvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ISF_GEANT4SIMSVC_H
6
#define ISF_GEANT4SIMSVC_H 1
7
8
// STL includes
9
#include <string>
10
11
// Gaudi
12
#include "GaudiKernel/ServiceHandle.h"
13
#include "GaudiKernel/ToolHandle.h"
14
15
// ISF includes
16
#include "
ISF_Interfaces/BaseSimulationSvc.h
"
17
#include "
ISF_Interfaces/ISimulatorTool.h
"
18
#include "
ISF_Event/ISFParticleContainer.h
"
19
20
#include "
CxxUtils/checker_macros.h
"
21
22
namespace
iGeant4
{
23
27
class
ATLAS_NOT_THREAD_SAFE
Geant4SimSvc
:
public
ISF::BaseSimulationSvc
{
28
29
public
:
30
//** Constructor with parameters */
31
Geant4SimSvc
(
const
std::string&
name
, ISvcLocator* pSvcLocator );
32
34
virtual
~
Geant4SimSvc
();
35
37
virtual
StatusCode
initialize
()
override
;
38
virtual
StatusCode
finalize
()
override
;
39
41
virtual
StatusCode
simulate(
ISF::ISFParticle
& isp,
McEventCollection
* mcEventCollection)
override
;
42
44
virtual
StatusCode
simulateVector(
const
ISF::ISFParticleVector
&
particles
,
McEventCollection
* mcEventCollection,
McEventCollection
*shadowTruth=
nullptr
)
override
;
45
47
virtual
StatusCode
setupEvent()
override
;
48
50
virtual
StatusCode
releaseEvent()
override
;
51
52
private
:
54
Geant4SimSvc
();
55
56
PublicToolHandle<ISF::ISimulatorTool> m_simulatorTool{
this
,
"SimulatorTool"
,
""
,
""
};
57
58
};
59
}
60
61
62
#endif //> !ISF_Geant4SimSvc_H
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition:
PyTestsLib.py:50
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition:
checker_macros.h:212
initialize
void initialize()
Definition:
run_EoverP.cxx:894
iGeant4::Geant4SimSvc::Geant4SimSvc
Geant4SimSvc()
Default constructor.
ISF::ISFParticle
Definition:
ISFParticle.h:42
ISimulatorTool.h
iGeant4::Geant4SimSvc
Definition:
Geant4SimSvc.h:27
ISFParticleContainer.h
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
BaseSimulationSvc.h
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition:
McEventCollection.h:33
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
LArG4FSStartPointFilter.particles
list particles
Definition:
LArG4FSStartPointFilter.py:84
ISF::BaseSimulationSvc
Definition:
BaseSimulationSvc.h:40
checker_macros.h
Define macros for attributes used to control the static checker.
iGeant4
Definition:
Geant4TruthIncident.h:35
Generated on Thu Nov 7 2024 21:15:37 for ATLAS Offline Software by
1.8.18