DUNEAnaPFParticleUtils class. More...
#include <DUNEAnaPFParticleUtils.h>
Static Public Member 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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
static bool | IsNeutrino (const art::Ptr< recob::PFParticle > &pParticle) |
Check if this particle is a neutrino. More... | |
Additional Inherited Members | |
Static Private Member Functions inherited from dune_ana::DUNEAnaUtilsBase | |
template<typename T > | |
static std::vector< art::Ptr< T > > | GetProductVector (const art::Event &evt, const std::string &label) |
template<typename T , typename U > | |
static std::vector< art::Ptr< T > > | GetAssocProductVector (const art::Ptr< U > &part, const art::Event &evt, const std::string &label, const std::string &assocLabel) |
template<typename T , typename U > | |
static art::Ptr< T > | GetAssocProduct (const art::Ptr< U > &part, const art::Event &evt, const std::string &label, const std::string &assocLabel) |
DUNEAnaPFParticleUtils class.
Definition at line 37 of file DUNEAnaPFParticleUtils.h.
|
static |
Get the child particles (one step down in the hierarchy) of this particle.
pParticle | particle for which we want the child particles |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 43 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the Cosmic Tag(s) associated with the particle.
pParticle | particle for which we want the cosmic tag |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 36 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the hits associated to this particle.
pParticle | particle for which we want the hits |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 70 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the metadata associated to this particle.
pParticle | particle for which we want the slice |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 158 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the shower associated to this particle. Should only be called if IsShower method succeeds.
pParticle | particle for which we want the shower |
evt | is the underlying art event |
particleLabel | is the label for the PFParticle producer |
trackLabel | is the label for the Shower producer |
Definition at line 122 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the slice associated to this particle.
pParticle | particle for which we want the slice |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 136 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the spacepoints associated to this particle.
pParticle | particle for which we want the spacepoints |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 108 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the T0(s) associated with the particle.
pParticle | particle for which we want the T0 |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 29 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the track associated to this particle. Should only be called if IsTrack method succeeds.
pParticle | particle for which we want the track |
evt | is the underlying art event |
particleLabel | is the label for the PFParticle producer |
trackLabel | is the label for the Track producer |
Definition at line 115 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the vertex associated to this particle.
pParticle | particle for which we want the vertex |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
Definition at line 129 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Get the hits associated to this particle in a given view.
pParticle | particle for which we want the hits |
evt | is the underlying art event |
label | is the label for the PFParticle producer |
view | is the view for which we want the hits |
Definition at line 86 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Check if this particle is a clear cosmic ray.
pParticle | particle for which we want the clear cosmic confirmation |
evt | is the underlying art event |
particleLabel | is the label for the PFParticle producer |
Definition at line 184 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Check if this particle is a neutrino.
pParticle | particle for which we want the neutrino confirmation |
Definition at line 195 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Check if this particle has an associated shower.
pParticle | particle for which we want the shower-like confirmation |
evt | is the underlying art event |
particleLabel | is the label for the PFParticle producer |
showerLabel | is the label for the shower producer |
Definition at line 175 of file DUNEAnaPFParticleUtils.cxx.
|
static |
Check if this particle has an associated track.
pParticle | particle for which we want the track-like confirmation |
evt | is the underlying art event |
particleLabel | is the label for the PFParticle producer |
trackLabel | is the label for the track producer |
Definition at line 165 of file DUNEAnaPFParticleUtils.cxx.