9#ifndef ISF_ACTSTOOLS_ACTSFATRASWRITEHANDLER_H
10#define ISF_ACTSTOOLS_ACTSFATRASWRITEHANDLER_H
20#include "Acts/Geometry/TrackingGeometry.hpp"
22#include "ActsFatras/EventData/Particle.hpp"
23#include "ActsFatras/EventData/Hit.hpp"
56 virtual StatusCode
finalize()
override;
59 StatusCode
WriteHits(std::vector<SiHitCollection>& HitCollections,
const EventContext& ctx)
const;
64 std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry,
65 const std::vector<ActsFatras::Hit>& hits,
72 std::array<StringProperty,2>
m_HitCollectionNames{{{
this,
"PixelCollectionName",
"PixelHits_ActsFatras"},{
this,
"SCTCollectionName",
"SCT_Hits_ActsFatras"}}};
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
AtlasHitsVector< SiHit > SiHitCollection
StatusCode WriteHits(std::vector< SiHitCollection > &HitCollections, const EventContext &ctx) const
SG::WriteHandleKeyArray< SiHitCollection > m_HitCollectionKeys
std::array< StringProperty, 2 > m_HitCollectionNames
virtual StatusCode initialize() override
const PixelID * m_pixIdHelper
the Pixel ID helper
void createHits(const ISF::ISFParticle &isp, std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry, const std::vector< ActsFatras::Hit > &hits, SiHitCollection &pixelSiHits, SiHitCollection &sctSiHits) const
Loop over the hits and call the hit creator, provide the ActsFatras::Particle to create the hits.
virtual StatusCode finalize() override
const SCT_ID * m_sctIdHelper
the SCT ID helper
ActsFatrasWriteHandler(const std::string &, const std::string &, const IInterface *)
Constructor.
~ActsFatrasWriteHandler()
Destructor.
The generic ISF particle definition,.
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray