3#include "../../../Algo_HLS/Ecal/src/TotalEnergy.cpp"
4#include "../../../Algo_HLS/Ecal/src/data.h"
7#include "Recon/Event/HgcrocTrigDigi.h"
12 hitCollName_ = ps.
getParameter<std::string>(
"hitCollName");
16 if (!event.
exists(hitCollName_))
return;
18 event.getObject<ldmx::HgcrocTrigDigiCollection>(hitCollName_)};
25 EcalTP Input_TPs_hw[N_INPUT_TP];
29 for (
const auto& trigDigi : ecalTrigDigis) {
33 float e = cvt.calc(trigDigi.linearPrimitive(), tid.
layer());
42 if (iTP < N_INPUT_TP) {
43 Input_TPs_hw[iTP].tid = trigDigi.getId();
44 Input_TPs_hw[iTP].tp =
e_t(e);
49 TotalEnergy_hw(Input_TPs_hw, energy_hw);
Class that translates raw positions of ECal module hits into cells in a hexagonal readout.
#define DECLARE_PRODUCER_NS(NS, CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
Class that represents a digitized hit in a calorimeter cell readout by an HGCROC.
Implements an event buffer system for storing event data.
bool exists(const std::string &name, const std::string &passName="", bool unique=true) const
Check for the existence of an object or collection with the given name and pass name in the event.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Extension of DetectorID providing access to ECal trigger cell information.
int layer() const
Get the value of the layer field from the ID.
virtual void configure(framework::config::Parameters &ps)
Callback for the EventProcessor to configure itself from the given set of parameters.
virtual void produce(framework::Event &event)
Process the event and put new data products into it.