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 #include <cstdint>
0008 
0009 struct SimParticle : public JObject {
0010 
0011     JOBJECT_PUBLIC(SimParticle)
0012 
0013     double momentum_z;       // Momentum in the z direction
0014     double momentum_theta;   // Momentum in the theta direction
0015     double momentum_phi;     // Momentum in the phi direction
0016     double energy;           // Total energy
0017     uint32_t pdg;            // PDG particle id
0018 
0019 
0020     void Summarize(JObjectSummary& summary) const override {
0021         summary.add(momentum_z, NAME_OF(momentum_z), "%f");
0022         summary.add(momentum_theta, NAME_OF(momentum_theta), "%f");
0023         summary.add(momentum_phi, NAME_OF(momentum_phi), "%f");
0024         summary.add(energy, NAME_OF(energy), "%f");
0025         summary.add(pdg, NAME_OF(pdg), "%d");
0026     }
0027 };
0028 
0029