Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 10:33:36

0001 // Copyright 2025, Jefferson Science Associates, LLC.
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 
0004 #pragma once
0005 #include <JANA/JObject.h>
0006 
0007 struct CalorimeterCluster : public JObject {
0008 
0009     JOBJECT_PUBLIC(CalorimeterCluster)
0010 
0011     double x_center;     // x location of cluster center
0012     double y_center;     // y location of cluster center
0013     double energy;       // Total energy deposited [GeV]
0014     uint64_t time_begin; // Timestamp of earliest hit [ticks since timeframe start]
0015     uint64_t time_end;   // Timestamp of latest hit [ticks since timeframe start]
0016 
0017 
0018     void Summarize(JObjectSummary& summary) const override {
0019         summary.add(x_center, NAME_OF(x_center), "%f", "x location of cluster center");
0020         summary.add(y_center, NAME_OF(y_center), "%f", "y location of cluster center");
0021         summary.add(energy, NAME_OF(energy), "%f", "Total energy deposited [GeV]");
0022         summary.add(time_begin, NAME_OF(t_begin), "%f", "Earliest timestamp [ticks since timeframe start]");
0023         summary.add(time_end, NAME_OF(t_end), "%f", "Latest timestamp [ticks since timeframe start]");
0024     }
0025 
0026 };
0027 
0028