Back to home page

EIC code displayed by LXR

 
 

    


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

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 z_center;     // z location of cluster center
0014     double energy;       // Total energy deposited [GeV]
0015     uint64_t time_begin; // Timestamp of earliest hit [ticks since timeframe start]
0016     uint64_t time_end;   // Timestamp of latest hit [ticks since timeframe start]
0017 
0018 
0019     void Summarize(JObjectSummary& summary) const override {
0020         summary.add(x_center, NAME_OF(x_center), "%f", "x location of cluster center");
0021         summary.add(y_center, NAME_OF(y_center), "%f", "y location of cluster center");
0022         summary.add(z_center, NAME_OF(z_center), "%f", "z location of cluster center");
0023         summary.add(energy, NAME_OF(energy), "%f", "Total energy deposited [GeV]");
0024         summary.add(time_begin, NAME_OF(t_begin), "%f", "Earliest timestamp [ticks since timeframe start]");
0025         summary.add(time_end, NAME_OF(t_end), "%f", "Latest timestamp [ticks since timeframe start]");
0026     }
0027 
0028 };
0029 
0030