38#include <edm4hep/ReconstructedParticleCollection.h>
39#include <podio/Frame.h>
63 std::optional<trax::Output>
trax;
71 std::optional<emca::Output>
emca;
151 std::optional<edm4hep::ReconstructedParticle>
particleForPa(
int paIdx)
const;
157 std::string_view readable)
const {
164 std::string_view readable)
const {
172 template <
typename Coll>
173 const Coll&
put(Coll&& coll,
174 std::string_view
bank,
175 std::string_view readable,
179 return frame_.put(std::move(coll), std::move(name));
186 template <
typename T>
188 std::string_view key,
193 frame_.putParameter(std::move(name), std::forward<T>(value));
206 std::string_view
bank,
208 : writer_(writer), bank_(
bank), prov_(prov) {}
210 template <
typename T>
212 writer_.putParameter(bank_, key, std::forward<T>(value), prov_);
217 std::string_view bank_;
ParameterGroup(CollectionWriter &writer, std::string_view bank, Provenance prov)
void operator()(std::string_view key, T &&value) const
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
ParameterGroup parameters(std::string_view bank, Provenance prov)
void putParameter(std::string_view bank, std::string_view key, T &&value, Provenance prov)
std::string makeName(std::string_view bank, std::string_view readable) const
virtual ~CollectionWriter()=default
std::optional< edm4hep::ReconstructedParticle > particleForPa(int paIdx) const
std::string sdstName(std::string_view bank, std::string_view readable) const
const Coll & put(Coll &&coll, std::string_view bank, std::string_view readable, Provenance prov)
std::string make(Pass pass, std::string_view bank, std::string_view readable_name)
void noteProvenance(std::string_view name, Provenance prov)
ProvenanceRecord provenanceRecord()
std::optional< emca::Output > emca
std::optional< vd_hits::Output > vd_hits
std::optional< trax::Output > trax
std::optional< std::vector< int > > fdst_pa_to_sdst_particle
std::optional< tracking::Output > tracking
std::optional< std::vector< int > > fdst_pa_to_sdst_track
std::optional< track_elements::Output > track_elements
std::optional< truth::GenParticleResult > gen_truth
std::vector< std::string > sources
std::vector< std::string > collections