Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-18 10:23:14

0001 
0002 // Copyright 2025, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 #pragma once
0006 #include <JANA/JEventProcessor.h>
0007 
0008 class HeatmapProcessor : public JEventProcessor {
0009 
0010     Parameter<size_t> m_cell_cols {this, "cell_cols", 20, "Number of columns in the detector"};
0011     Parameter<size_t> m_cell_rows {this, "cell_rows", 10, "Number of rows in the detector"};
0012 
0013     std::unique_ptr<double[]> m_heatmap;
0014 
0015 public:
0016 
0017     HeatmapProcessor();
0018     virtual ~HeatmapProcessor() = default;
0019 
0020     void Init() override;
0021     void Process(const std::shared_ptr<const JEvent>& event) override;
0022     void Finish() override;
0023 
0024 };
0025