18#include <RtypesCore.h>
24 auto IsPrimaryCluster(
const R3BNeulandCluster& cluster,
const std::vector<R3BNeulandHit>& primaryHits) ->
bool
26 for (
const auto& primary_hit : primaryHits)
28 for (
const auto& hit : cluster.GetHits())
30 if (hit == primary_hit)
43 std::string_view clusters,
44 std::string_view primaryClusters,
45 std::string_view secondaryClusters)
70 for (
const auto& cluster : clusters)
72 if (IsPrimaryCluster(cluster, primaryHits))
R3B::InputVectorConnector< R3BNeulandHit > fPrimaryHits
R3B::OutputVectorConnector< R3BNeulandCluster > fSecondaryClusters
R3B::InputVectorConnector< R3BNeulandCluster > fClusters
R3B::OutputVectorConnector< R3BNeulandCluster > fPrimaryClusters
auto Init() -> InitStatus override
void Exec(Option_t *) override
R3BNeulandPrimaryClusterFinder(std::string_view primaryHits="NeulandPrimaryHits", std::string_view clusters="NeulandClusters", std::string_view primaryClusters="NeulandPrimaryClusters", std::string_view secondaryClusters="NeulandSecondaryClusters")