Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-01 08:57:58

0001 
0002 // Copyright 2020-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/JObject.h>
0007 
0008 
0009 struct CalorimeterHit : public JObject {
0010 
0011     JOBJECT_PUBLIC(CalorimeterHit)
0012 
0013     int cell_id; // Cell's id
0014 
0015     int row;  // Cell's row in detector plane (zero-indexed)
0016     int col;  // Cell's column in detector plane (zero-indexed)
0017 
0018     double x; // x location of cell's center [cm]
0019     double y; // y location of cell's center [cm]
0020     double z; // z location of cell's center [cm]
0021 
0022     double energy;  // Measured energy deposit [GeV]
0023     uint64_t time;  // Time [ns]
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