7#ifndef TRIGSCINT_TRIGSCINTCLUSTERPRODUCER_H
8#define TRIGSCINT_TRIGSCINTCLUSTERPRODUCER_H
13#include "Framework/Configure/Parameters.h"
16#include "TrigScint/Event/TrigScintCluster.h"
17#include "TrigScint/Event/TrigScintHit.h"
45 std::vector<ldmx::TrigScintCluster> clusters_;
57 bool ampl_weighting_{
true};
66 double time_tolerance_{0.};
69 std::string input_collection_;
72 std::string output_collection_;
75 std::string pass_name_{
""};
78 int vert_bar_start_idx_{52};
84 float centroid_x_{-1};
87 float centroid_y_{-1};
99 std::vector<unsigned int> v_added_indices_;
102 std::vector<unsigned int> v_used_indices_;
112 std::map<int, int> hit_channel_map_;
Base classes for all user event processing components to extend.
Class implementing an event buffer system for storing event data.
Implements an event buffer system for storing event data.
Class which represents the process under execution.
Base class for a module which produces a data product.
Producer(const std::string &name, Process &process)
Class constructor.
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.
Class encapsulating parameters for configuring a processor.
void onProcessStart() override
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
void produce(framework::Event &event) override
Process the event and put new data products into it.
void onProcessEnd() override
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...
virtual void addHit(uint idx, ldmx::TrigScintHit hit)
add a hit at index idx to a cluster
void configure(framework::config::Parameters &ps) override
Callback for the EventProcessor to configure itself from the given set of parameters.