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);
48 const std::map<int, ldmx::SimParticle>& particleMap);
59 const std::map<int, ldmx::SimParticle>& particleMap);
78 const std::map<int, ldmx::SimParticle>& particleMap,
std::tuple< int, const ldmx::SimParticle * > getBremPhoton(const std::map< int, ldmx::SimParticle > &particleMap)
Find and return the sim particle associated with the brem photon, if any.
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.
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.
bool doesParticleHavePNDaughters(const ldmx::SimParticle &gamma, const std::map< int, ldmx::SimParticle > &particleMap)
Helper function to getPNGamma.
Class representing a simulated particle.