8 #ifndef DUNE_ANA_PFPARTICLE_UTILS_H 9 #define DUNE_ANA_PFPARTICLE_UTILS_H 211 #endif // DUNE_ANA_PFPARTICLE_UTILS_H DUNEAnaUtilsBase class containing some template functions.
static std::vector< art::Ptr< anab::T0 > > GetT0(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the T0(s) associated with the particle.
static art::Ptr< recob::Track > GetTrack(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &trackLabel)
Get the track associated to this particle. Should only be called if IsTrack method succeeds...
static art::Ptr< recob::Slice > GetSlice(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel)
Get the slice associated to this particle.
static bool IsClearCosmic(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel)
Check if this particle is a clear cosmic ray.
static bool IsShower(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &showerLabel)
Check if this particle has an associated shower.
static std::vector< art::Ptr< recob::Hit > > GetViewHits(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label, const unsigned short &view)
Get the hits associated to this particle in a given view.
static art::Ptr< recob::Shower > GetShower(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &showerLabel)
Get the shower associated to this particle. Should only be called if IsShower method succeeds...
static std::vector< art::Ptr< recob::PFParticle > > GetChildParticles(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the child particles (one step down in the hierarchy) of this particle.
DUNEAnaPFParticleUtils class.
static std::vector< art::Ptr< recob::SpacePoint > > GetSpacePoints(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the spacepoints associated to this particle.
static bool IsNeutrino(const art::Ptr< recob::PFParticle > &pParticle)
Check if this particle is a neutrino.
Base class containing functionality to extract products from the event.
static art::Ptr< larpandoraobj::PFParticleMetadata > GetMetadata(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the metadata associated to this particle.
Declaration of signal hit object.
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the hits associated to this particle.
Provides recob::Track data product.
static art::Ptr< recob::Vertex > GetVertex(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel)
Get the vertex associated to this particle.
static bool IsTrack(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &pParticleLabel, const std::string &trackLabel)
Check if this particle has an associated track.
static std::vector< art::Ptr< anab::CosmicTag > > GetCosmicTag(const art::Ptr< recob::PFParticle > &pParticle, const art::Event &evt, const std::string &label)
Get the Cosmic Tag(s) associated with the particle.