File indexing completed on 2025-07-01 08:57:58
0001
0002
0003
0004
0005 #pragma once
0006 #include <JANA/JObject.h>
0007
0008
0009 struct CalorimeterHit : public JObject {
0010
0011 JOBJECT_PUBLIC(CalorimeterHit)
0012
0013 int cell_id;
0014
0015 int row;
0016 int col;
0017
0018 double x;
0019 double y;
0020 double z;
0021
0022 double energy;
0023 uint64_t time;
0024
0025
0026 void Summarize(JObjectSummary& summary) const override {
0027 summary.add(cell_id, NAME_OF(cell_id), "%d", "Cell ID");
0028 summary.add(row, NAME_OF(cell_id), "%d", "Cell row (zero-indexed)");
0029 summary.add(col, NAME_OF(cell_id), "%d", "Cell col (zero-indexed)");
0030 summary.add(x, NAME_OF(x), "%f", "x location of cell center [cm]");
0031 summary.add(y, NAME_OF(y), "%f", "y location of cell center [cm]");
0032 summary.add(z, NAME_OF(z), "%f", "z location of cell center [cm]");
0033 summary.add(energy, NAME_OF(energy), "%f", "Measured energy deposit [GeV]");
0034 summary.add(time, NAME_OF(time), "%d", "Time [ns]");
0035 }
0036 };
0037
0038