7#ifndef _ANALYSIS_UTILS_H_
8#define _ANALYSIS_UTILS_H_
15#include <unordered_map>
34std::tuple<int, const ldmx::SimParticle *>
getRecoil(
35 const std::map<int, ldmx::SimParticle> &particleMap);
46 const std::map<int, ldmx::SimParticle> &particleMap);
65 const std::map<int, ldmx::SimParticle> &particleMap,
const ldmx::SimParticle * getPNGamma(const std::map< int, ldmx::SimParticle > &particleMap, const ldmx::SimParticle *recoil, const float &energyThreshold)
Get a pointer to the sim particle associated with the photon that underwent a photo-nuclear reaction.
bool doesParticleHavePNDaughters(const ldmx::SimParticle &gamma, const std::map< int, ldmx::SimParticle > &particleMap)
Helper function to getPNGamma.
std::tuple< int, const ldmx::SimParticle * > getRecoil(const std::map< int, ldmx::SimParticle > &particleMap)
Find and return the sim particle associated with the recoil electron.
Class representing a simulated particle.