All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrueParticleHelpers.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "sbnanaobj/StandardRecord/Proxy/FwdDeclare.h"
4 
5 namespace ana{
6 
7  /// Whether this is a primary particle or generated by a secondary interaction
8  bool IsPrimary(const caf::SRTrueParticleProxy& p);
9 
10  /// Whether this particle should have a bragg peak in the detector
11  bool HasBraggPeak(const caf::SRTrueParticleProxy& p);
12 
13  /// Whether this particle was generated by genie (as opposed to geant or corsika)
14  bool IsGenie(const caf::SRTrueParticleProxy& p);
15 
16  /// Whether this is a stable particle as generated by genie
17  bool IsStable(const caf::SRTrueParticleProxy& p);
18 
19 }
pdgs p
Definition: selectors.fcl:22
bool IsGenie(const caf::SRTrueParticleProxy &p)
Whether this particle was generated by genie (as opposed to geant or corsika)
process_name opflashCryoW ana
bool IsPrimary(const caf::SRTrueParticleProxy &p)
Whether this is a primary particle or generated by a secondary interaction.
bool IsStable(const caf::SRTrueParticleProxy &p)
Whether this is a stable particle as generated by genie.
bool HasBraggPeak(const caf::SRTrueParticleProxy &p)
Whether this particle should have a bragg peak in the detector.