#include <CVNProtoDUNEUtils.h>
Public Member Functions | |
CVNProtoDUNEUtils () | |
~CVNProtoDUNEUtils () | |
const std::vector< const recob::Hit * > | GetRecoSliceHits (const recob::Slice &slice, art::Event const &evt, const std::string sliceModule) const |
const std::vector< const recob::Hit * > | GetRecoSliceHits (unsigned int sliceID, art::Event const &evt, const std::string sliceModule) const |
const std::map< unsigned int, std::vector< const recob::Hit * > > | GetRecoSliceHitMap (art::Event const &evt, const std::string sliceModule) const |
unsigned short | GetBeamSlice (art::Event const &evt, const std::string particleLabel) const |
Try to get the slice tagged as beam. Returns 9999 if no beam slice was found. More... | |
const std::map< unsigned int, std::vector< const recob::PFParticle * > > | GetPFParticleSliceMap (art::Event const &evt, const std::string particleLabel) const |
Get a map of slice index to the primary PFParticles within it. More... | |
const std::map< unsigned int, std::vector< const recob::PFParticle * > > | GetAllPFParticleSliceMap (art::Event const &evt, const std::string particleLabel) const |
Get a map of slice index to all of the PFParticles within it. More... | |
unsigned short | GetPFParticleSliceIndex (const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel) const |
Get the reconstructed slice number associated with a particle. More... | |
const recob::Slice * | GetPFParticleSlice (const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel) const |
Get the reconstructed slice associated with a particle. More... | |
const std::vector< const recob::SpacePoint * > | GetPFParticleSpacePoints (const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel) const |
Get the SpacePoints associated to the PFParticle. More... | |
bool | IsBeamParticle (const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel) const |
Use the pandora metadata to tell us if this is a beam particle or not. More... | |
Private Member Functions | |
const std::map< unsigned int, std::vector< const recob::PFParticle * > > | SliceMapHelper (art::Event const &evt, const std::string particleLabel, bool primaryOnly) const |
Helper to get the slice map and avoid code repetition. More... | |
const std::map< std::string, float > | GetPFParticleMetaData (const recob::PFParticle &particle, art::Event const &evt, const std::string particleLabel) const |
Get the metadata associated to a PFParticle from pandora. More... | |
Definition at line 26 of file CVNProtoDUNEUtils.h.
cvn::CVNProtoDUNEUtils::CVNProtoDUNEUtils | ( | ) |
Definition at line 8 of file CVNProtoDUNEUtils.cxx.
cvn::CVNProtoDUNEUtils::~CVNProtoDUNEUtils | ( | ) |
Definition at line 12 of file CVNProtoDUNEUtils.cxx.
const std::map< unsigned int, std::vector< const recob::PFParticle * > > cvn::CVNProtoDUNEUtils::GetAllPFParticleSliceMap | ( | art::Event const & | evt, |
const std::string | particleLabel | ||
) | const |
Get a map of slice index to all of the PFParticles within it.
Definition at line 86 of file CVNProtoDUNEUtils.cxx.
unsigned short cvn::CVNProtoDUNEUtils::GetBeamSlice | ( | art::Event const & | evt, |
const std::string | particleLabel | ||
) | const |
Try to get the slice tagged as beam. Returns 9999 if no beam slice was found.
Definition at line 62 of file CVNProtoDUNEUtils.cxx.
|
private |
Get the metadata associated to a PFParticle from pandora.
Definition at line 169 of file CVNProtoDUNEUtils.cxx.
const recob::Slice * cvn::CVNProtoDUNEUtils::GetPFParticleSlice | ( | const recob::PFParticle & | particle, |
art::Event const & | evt, | ||
const std::string | particleLabel | ||
) | const |
Get the reconstructed slice associated with a particle.
Definition at line 135 of file CVNProtoDUNEUtils.cxx.
unsigned short cvn::CVNProtoDUNEUtils::GetPFParticleSliceIndex | ( | const recob::PFParticle & | particle, |
art::Event const & | evt, | ||
const std::string | particleLabel | ||
) | const |
Get the reconstructed slice number associated with a particle.
Definition at line 147 of file CVNProtoDUNEUtils.cxx.
const std::map< unsigned int, std::vector< const recob::PFParticle * > > cvn::CVNProtoDUNEUtils::GetPFParticleSliceMap | ( | art::Event const & | evt, |
const std::string | particleLabel | ||
) | const |
Get a map of slice index to the primary PFParticles within it.
Definition at line 79 of file CVNProtoDUNEUtils.cxx.
const std::vector< const recob::SpacePoint * > cvn::CVNProtoDUNEUtils::GetPFParticleSpacePoints | ( | const recob::PFParticle & | particle, |
art::Event const & | evt, | ||
const std::string | particleLabel | ||
) | const |
Get the SpacePoints associated to the PFParticle.
Definition at line 118 of file CVNProtoDUNEUtils.cxx.
const std::map< unsigned int, std::vector< const recob::Hit * > > cvn::CVNProtoDUNEUtils::GetRecoSliceHitMap | ( | art::Event const & | evt, |
const std::string | sliceModule | ||
) | const |
Definition at line 43 of file CVNProtoDUNEUtils.cxx.
const std::vector< const recob::Hit * > cvn::CVNProtoDUNEUtils::GetRecoSliceHits | ( | const recob::Slice & | slice, |
art::Event const & | evt, | ||
const std::string | sliceModule | ||
) | const |
Definition at line 17 of file CVNProtoDUNEUtils.cxx.
const std::vector< const recob::Hit * > cvn::CVNProtoDUNEUtils::GetRecoSliceHits | ( | unsigned int | sliceID, |
art::Event const & | evt, | ||
const std::string | sliceModule | ||
) | const |
Definition at line 24 of file CVNProtoDUNEUtils.cxx.
bool cvn::CVNProtoDUNEUtils::IsBeamParticle | ( | const recob::PFParticle & | particle, |
art::Event const & | evt, | ||
const std::string | particleLabel | ||
) | const |
Use the pandora metadata to tell us if this is a beam particle or not.
Definition at line 181 of file CVNProtoDUNEUtils.cxx.
|
private |
Helper to get the slice map and avoid code repetition.
Definition at line 93 of file CVNProtoDUNEUtils.cxx.