LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
LArPandoraHelper class. More...
#include "LArPandoraHelper.h"
Public Types | |
enum | DaughterMode { kIgnoreDaughters = 0, kUseDaughters = 1, kAddDaughters = 2 } |
DaughterMode enumeration. More... | |
Static Public Member Functions | |
static void | CollectWires (const art::Event &evt, const std::string &label, WireVector &wireVector) |
Collect the reconstructed wires from the ART event record. More... | |
static void | CollectHits (const art::Event &evt, const std::string &label, HitVector &hitVector) |
Collect the reconstructed Hits from the ART event record. More... | |
static void | CollectPFParticles (const art::Event &evt, const std::string &label, PFParticleVector &particleVector) |
Collect the reconstructed PFParticles from the ART event record. More... | |
static void | CollectSpacePoints (const art::Event &evt, const std::string &label, SpacePointVector &spacePointVector, SpacePointsToHits &spacePointsToHits) |
Collect the reconstructed SpacePoints and associated hits from the ART event record. More... | |
static void | CollectSpacePoints (const art::Event &evt, const std::string &label, SpacePointVector &spacePointVector, SpacePointsToHits &spacePointsToHits, HitsToSpacePoints &hitsToSpacePoints) |
Collect the reconstructed SpacePoints and associated hits from the ART event record. More... | |
static void | CollectClusters (const art::Event &evt, const std::string &label, ClusterVector &clusterVector, ClustersToHits &clustersToHits) |
Collect the reconstructed Clusters and associated hits from the ART event record. More... | |
static void | CollectPFParticles (const art::Event &evt, const std::string &label, PFParticleVector &particleVector, PFParticlesToSpacePoints &particlesToSpacePoints) |
Collect the reconstructed PFParticles and associated SpacePoints from the ART event record. More... | |
static void | CollectPFParticles (const art::Event &evt, const std::string &label, PFParticleVector &particleVector, PFParticlesToClusters &particlesToClusters) |
Collect the reconstructed PFParticles and associated Clusters from the ART event record. More... | |
static void | CollectPFParticleMetadata (const art::Event &evt, const std::string &label, PFParticleVector &particleVector, PFParticlesToMetadata &particlesToMetadata) |
Collect the reconstructed PFParticle Metadata from the ART event record. More... | |
static void | CollectShowers (const art::Event &evt, const std::string &label, ShowerVector &showerVector, PFParticlesToShowers &particlesToShowers) |
Collect the reconstructed PFParticles and associated Showers from the ART event record. More... | |
static void | CollectShowers (const art::Event &evt, const std::string &label, ShowerVector &showerVector, ShowersToHits &showersToHits) |
Collect the reconstructed Showers and associated Hits from the ART event record. More... | |
static void | CollectTracks (const art::Event &evt, const std::string &label, TrackVector &trackVector, PFParticlesToTracks &particlesToTracks) |
Collect the reconstructed PFParticles and associated Tracks from the ART event record. More... | |
static void | CollectTracks (const art::Event &evt, const std::string &label, TrackVector &trackVector, TracksToHits &tracksToHits) |
Collect the reconstructed Tracks and associated Hits from the ART event record. More... | |
static void | CollectSeeds (const art::Event &evt, const std::string &label, SeedVector &seedVector, PFParticlesToSeeds &particlesToSeeds) |
Collect the reconstructed PFParticles and associated Seeds from the ART event record. More... | |
static void | CollectSeeds (const art::Event &evt, const std::string &label, SeedVector &seedVector, SeedsToHits &seedsToHits) |
Collect the reconstructed Seeds and associated Hits from the ART event record. More... | |
static void | CollectVertices (const art::Event &evt, const std::string &label, VertexVector &vertexVector, PFParticlesToVertices &particlesToVertices) |
Collect the reconstructed PFParticles and associated Vertices from the ART event record. More... | |
static void | BuildPFParticleHitMaps (const PFParticleVector &particleVector, const PFParticlesToSpacePoints &particlesToSpacePoints, const SpacePointsToHits &spacePointsToHits, PFParticlesToHits &particlesToHits, HitsToPFParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters) |
Build mapping between PFParticles and Hits using PFParticle/SpacePoint/Hit maps. More... | |
static void | BuildPFParticleHitMaps (const PFParticleVector &particleVector, const PFParticlesToClusters &particlesToClusters, const ClustersToHits &clustersToHits, PFParticlesToHits &particlesToHits, HitsToPFParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters) |
Build mapping between PFParticles and Hits using PFParticle/Cluster/Hit maps. More... | |
static void | BuildPFParticleHitMaps (const art::Event &evt, const std::string &label_pfpart, const std::string &label_mid, PFParticlesToHits &particlesToHits, HitsToPFParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters, const bool useClusters=true) |
Build mapping between PFParticles and Hits starting from ART event record. More... | |
static void | BuildPFParticleHitMaps (const art::Event &evt, const std::string &label, PFParticlesToHits &particlesToHits, HitsToPFParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters, const bool useClusters=true) |
Build mapping between PFParticles and Hits starting from ART event record. More... | |
static void | CollectCosmicTags (const art::Event &evt, const std::string &label, CosmicTagVector &cosmicTagVector, TracksToCosmicTags &tracksToCosmicTags) |
Collect a vector of cosmic tags from the ART event record. More... | |
static void | CollectT0s (const art::Event &evt, const std::string &label, T0Vector &t0Vector, PFParticlesToT0s &particlesToT0s) |
Collect a vector of T0s from the ART event record. More... | |
static void | CollectSimChannels (const art::Event &evt, const std::string &label, SimChannelVector &simChannelVector) |
Collect a vector of SimChannel objects from the ART event record. More... | |
static void | CollectMCParticles (const art::Event &evt, const std::string &label, MCParticleVector &particleVector) |
Collect a vector of MCParticle objects from the ART event record. More... | |
static void | CollectGeneratorMCParticles (const art::Event &evt, const std::string &label, RawMCParticleVector &particleVector) |
Collect a vector of MCParticle objects from the generator in the ART event record. ATTN: This function is needed as accessing generator (opposed to Geant4) level MCParticles requires use of MCTruth block. More... | |
static void | CollectMCParticles (const art::Event &evt, const std::string &label, MCTruthToMCParticles &truthToParticles, MCParticlesToMCTruth &particlesToTruth) |
Collect truth information from the ART event record. More... | |
static void | BuildMCParticleHitMaps (const HitVector &hitVector, const SimChannelVector &simChannelVector, HitsToTrackIDEs &hitsToTrackIDEs) |
Collect the links from reconstructed hits to their true energy deposits. More... | |
static void | BuildMCParticleHitMaps (const HitsToTrackIDEs &hitsToTrackIDEs, const MCTruthToMCParticles &truthToParticles, MCParticlesToHits &particlesToHits, HitsToMCParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters) |
Build mapping between Hits and MCParticles, starting from Hit/TrackIDE/MCParticle information. More... | |
static void | BuildMCParticleHitMaps (const art::Event &evt, const std::string &label, const HitVector &hitVector, MCParticlesToHits &particlesToHits, HitsToMCParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters) |
Build mapping between Hits and MCParticles, starting from ART event record. More... | |
static void | BuildMCParticleHitMaps (const art::Event &evt, const std::string &hitLabel, const std::string &backtrackLabel, HitsToTrackIDEs &hitsToTrackIDEs) |
Get mapping between hits and true energy deposits using back-tracker information. More... | |
static void | BuildMCParticleHitMaps (const art::Event &evt, const std::string &truthLabel, const std::string &hitLabel, const std::string &backtrackLabel, MCParticlesToHits &particlesToHits, HitsToMCParticles &hitsToParticles, const DaughterMode daughterMode=kUseDaughters) |
Build mapping between Hits and MCParticles, starting from Hit/TrackIDE/MCParticle information. More... | |
template<typename T > | |
static void | GetAssociatedHits (const art::Event &evt, const std::string &label, const std::vector< art::Ptr< T > > &inputVector, HitVector &associatedHits, const pandora::IntVector *const indexVector=nullptr) |
Get all hits associated with input clusters. More... | |
static void | SelectNeutrinoPFParticles (const PFParticleVector &inputParticles, PFParticleVector &outputParticles) |
Select reconstructed neutrino particles from a list of all reconstructed particles. More... | |
static void | SelectFinalStatePFParticles (const PFParticleVector &inputParticles, PFParticleVector &outputParticles) |
Select final-state reconstructed particles from a list of all reconstructed particles. More... | |
static void | BuildMCParticleMap (const MCParticleVector &particleVector, MCParticleMap &particleMap) |
Build particle maps for true particles. More... | |
static void | BuildPFParticleMap (const PFParticleVector &particleVector, PFParticleMap &particleMap) |
Build particle maps for reconstructed particles. More... | |
static art::Ptr< recob::PFParticle > | GetParentPFParticle (const PFParticleMap &particleMap, const art::Ptr< recob::PFParticle > daughterParticle) |
Return the top-level parent particle by navigating up the chain of parent/daughter associations. More... | |
static art::Ptr< recob::PFParticle > | GetFinalStatePFParticle (const PFParticleMap &particleMap, const art::Ptr< recob::PFParticle > daughterParticle) |
Return the final-state parent particle by navigating up the chain of parent/daughter associations. More... | |
static art::Ptr< simb::MCParticle > | GetParentMCParticle (const MCParticleMap &particleMap, const art::Ptr< simb::MCParticle > daughterParticle) |
Return the top-level parent particle by navigating up the chain of parent/daughter associations. More... | |
static art::Ptr< simb::MCParticle > | GetFinalStateMCParticle (const MCParticleMap &particleMap, const art::Ptr< simb::MCParticle > daughterParticle) |
Return the final-state parent particle by navigating up the chain of parent/daughter associations. More... | |
static art::Ptr< recob::Track > | GetPrimaryTrack (const PFParticlesToTracks &particlesToTracks, const art::Ptr< recob::PFParticle > particle) |
Return the primary track associated with a PFParticle. More... | |
static int | GetGeneration (const PFParticleMap &particleMap, const art::Ptr< recob::PFParticle > daughterParticle) |
Return the generation of this particle (first generation if primary) More... | |
static int | GetParentNeutrino (const PFParticleMap &particleMap, const art::Ptr< recob::PFParticle > daughterParticle) |
Return the parent neutrino PDG code (or zero for cosmics) for a given reconstructed particle. More... | |
static bool | IsFinalState (const PFParticleMap &particleMap, const art::Ptr< recob::PFParticle > daughterParticle) |
Determine whether a particle has been reconstructed as a final-state particle. More... | |
static bool | IsNeutrino (const art::Ptr< recob::PFParticle > particle) |
Determine whether a particle has been reconstructed as a neutrino. More... | |
static bool | IsTrack (const art::Ptr< recob::PFParticle > particle) |
Determine whether a particle has been reconstructed as track-like. More... | |
static bool | IsShower (const art::Ptr< recob::PFParticle > particle) |
Determine whether a particle has been reconstructed as shower-like. More... | |
static bool | IsVisible (const art::Ptr< simb::MCParticle > particle) |
Determine whether a particle is visible (i.e. long-lived charged particle) More... | |
LArPandoraHelper class.
Definition at line 91 of file LArPandoraHelper.h.
DaughterMode enumeration.
Enumerator | |
---|---|
kIgnoreDaughters | |
kUseDaughters | |
kAddDaughters |
Definition at line 97 of file LArPandoraHelper.h.
|
static |
Collect the links from reconstructed hits to their true energy deposits.
hitVector | the input vector of reconstructed hits |
simChannelVector | the input vector of SimChannels |
hitsToTrackIDEs | the out map from hits to true energy deposits |
Definition at line 856 of file LArPandoraHelper.cxx.
References recob::Hit::Channel(), sim::SimChannel::Channel(), recob::Hit::PeakTimeMinusRMS(), recob::Hit::PeakTimePlusRMS(), and sim::SimChannel::TrackIDEs().
Referenced by lar_pandora::PFParticleValidation::analyze(), lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), BuildMCParticleHitMaps(), and lar_pandora::LArPandora::CreatePandoraInput().
|
static |
Build mapping between Hits and MCParticles, starting from Hit/TrackIDE/MCParticle information.
hitsToTrackIDEs | the input map from hits to true energy deposits |
truthToParticles | the input map of truth information |
particlesToHits | the mapping between true particles and reconstructed hits |
hitsToParticles | the mapping between reconstructed hits and true particles |
daughterMode | treatment of daughter particles in construction of maps |
Definition at line 902 of file LArPandoraHelper.cxx.
References e, sim::TrackIDE::energyFrac, f, GetFinalStateMCParticle(), IsVisible(), kAddDaughters, kIgnoreDaughters, sim::TrackIDE::trackID, and simb::MCParticle::TrackId().
|
static |
Build mapping between Hits and MCParticles, starting from ART event record.
evt | the ART event record |
label | the label for the truth information in the event |
hitVector | the input vector of reconstructed hits |
particlesToHits | the output mapping between true particles and reconstructed hits |
hitsToParticles | the output mapping between reconstructed hits and true particles |
daughterMode | treatment of daughter particles in construction of maps |
Definition at line 970 of file LArPandoraHelper.cxx.
References BuildMCParticleHitMaps(), CollectMCParticles(), and CollectSimChannels().
|
static |
Get mapping between hits and true energy deposits using back-tracker information.
evt | the event record |
hitLabel | the label of the collection of hits |
backtrackLabel | the label of the collection of back-tracker information |
hitsToTrackIDEs | the output map between hits and true energy deposits |
Definition at line 986 of file LArPandoraHelper.cxx.
References sim::TrackIDE::energy, sim::TrackIDE::energyFrac, art::FindManyP< ProdB, Data >::get(), art::DataViewImpl::getByLabel(), art::Handle< T >::isValid(), art::Ptr< T >::key(), sim::TrackIDE::trackID, and simb::MCParticle::TrackId().
|
static |
Build mapping between Hits and MCParticles, starting from Hit/TrackIDE/MCParticle information.
evt | the event record |
truthLabel | the label describing the G4 truth information |
hitLabel | the label describing the hit collection |
backtrackLabel | the label describing the back-tracker information |
particlesToHits | the mapping between true particles and reconstructed hits |
hitsToParticles | the mapping between reconstructed hits and true particles |
daughterMode | treatment of daughter particles in construction of maps |
Definition at line 1044 of file LArPandoraHelper.cxx.
References BuildMCParticleHitMaps(), and CollectMCParticles().
|
static |
Build particle maps for true particles.
particleVector | the input vector of true particles |
particleMap | the output mapping between true particle and true track ID |
Definition at line 1088 of file LArPandoraHelper.cxx.
References simb::MCParticle::TrackId().
Referenced by lar_pandora::PFParticleMonitoring::analyze().
|
static |
Build mapping between PFParticles and Hits using PFParticle/SpacePoint/Hit maps.
particleVector | the input vector of PFParticle objects |
particlesToSpacePoints | the input map from PFParticle to SpacePoint objects |
spacePointsToHits | the input map from SpacePoint to Hit objects |
particlesToHits | the output map from PFParticle to Hit objects |
hitsToParticles | the output map from Hit to PFParticle objects |
daughterMode | treatment of daughter particles in construction of maps |
Definition at line 518 of file LArPandoraHelper.cxx.
References GetFinalStatePFParticle(), IsFinalState(), kAddDaughters, kIgnoreDaughters, and recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleValidation::analyze(), lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleHitDumper::analyze(), and BuildPFParticleHitMaps().
|
static |
Build mapping between PFParticles and Hits using PFParticle/Cluster/Hit maps.
particleVector | the input vector of PFParticle objects |
particlesToClusters | the input map from PFParticle to Cluster objects |
clustersToHits | the input map from Cluster to Hit objects |
particlesToHits | the output map from PFParticle to Hit objects |
hitsToParticles | the output map from Hit to PFParticle objects |
daughterMode | treatment of daughter particles in construction of maps |
Definition at line 562 of file LArPandoraHelper.cxx.
References GetFinalStatePFParticle(), IsFinalState(), kAddDaughters, kIgnoreDaughters, and recob::PFParticle::Self().
|
static |
Build mapping between PFParticles and Hits starting from ART event record.
evt | the ART event record |
label_pfpart | the label for the PFParticle list in the event |
label_space | the label for the Intermediate list in the event |
particlesToHits | output map from PFParticle to Hit objects |
hitsToParticles | output map from Hit to PFParticle objects |
daughterMode | treatment of daughter particles in construction of maps |
useClusters | choice of intermediate object (true for Clusters, false for SpacePoints) |
Definition at line 617 of file LArPandoraHelper.cxx.
References BuildPFParticleHitMaps(), CollectClusters(), CollectPFParticles(), and CollectSpacePoints().
|
static |
Build mapping between PFParticles and Hits starting from ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
particlesToHits | output map from PFParticle to Hit objects |
hitsToParticles | output map from Hit to PFParticle objects |
daughterMode | treatment of daughter particles in construction of maps |
useClusters | choice of intermediate object (true for Clusters, false for SpacePoints) |
Definition at line 609 of file LArPandoraHelper.cxx.
References BuildPFParticleHitMaps().
|
static |
Build particle maps for reconstructed particles.
particleVector | the input vector of reconstructed particles |
particleMap | the output mapping between reconstructed particles and particle ID |
Definition at line 1099 of file LArPandoraHelper.cxx.
References recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), and lar_pandora::PFParticleMonitoring::analyze().
|
static |
Collect the reconstructed Clusters and associated hits from the ART event record.
evt | the ART event record |
label | the label for the SpacePoint list in the event |
clusterVector | the output vector of Cluster objects |
clustersToHits | the output map from Cluster to Hit objects |
Definition at line 156 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), hits(), and art::Handle< T >::isValid().
Referenced by BuildPFParticleHitMaps().
|
static |
Collect a vector of cosmic tags from the ART event record.
evt | the ART event record |
label | the label for the cosmic tag information in the event |
cosmicTagVector | output vector of CosmicTag objects |
tracksToCosmicTags | output map from tracks to cosmic tags |
Definition at line 691 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Handle< T >::isValid(), and track.
Referenced by lar_pandora::PFParticleCosmicAna::analyze().
|
static |
Collect a vector of MCParticle objects from the generator in the ART event record. ATTN: This function is needed as accessing generator (opposed to Geant4) level MCParticles requires use of MCTruth block.
evt | the ART event record |
label | the label for the truth information in the generator |
particleVector | the output vector of MCParticle objects |
Definition at line 791 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), simb::MCTruth::GetParticle(), art::Event::isRealData(), art::Handle< T >::isValid(), and simb::MCTruth::NParticles().
Referenced by lar_pandora::LArPandora::CreatePandoraInput().
|
static |
Collect the reconstructed Hits from the ART event record.
evt | the ART event record |
label | the label for the Hit list in the event |
hitVector | the ouput vector of Hit objects |
Definition at line 70 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleValidation::analyze(), lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleHitDumper::analyze(), lar_pandora::PFParticleMonitoring::analyze(), and lar_pandora::LArPandora::CreatePandoraInput().
|
static |
Collect a vector of MCParticle objects from the ART event record.
evt | the ART event record |
label | the label for the truth information in the event |
particleVector | the output vector of MCParticle objects |
Definition at line 764 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Event::isRealData(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), BuildMCParticleHitMaps(), lar_pandora::LArPandora::CreatePandoraInput(), lar_pandora::PFParticleValidation::GetMCTruth(), and lar_pandora::PFParticleValidation::GetSimpleMCPrimaryList().
|
static |
Collect truth information from the ART event record.
evt | the ART event record |
label | the label for the truth information in the event |
truthToParticles | output map from MCTruth to MCParticle objects |
particlesToTruth | output map from MCParticle to MCTruth objects |
Definition at line 823 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Event::isRealData(), and art::Handle< T >::isValid().
|
static |
Collect the reconstructed PFParticle Metadata from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
particleVector | the output vector of PFParticle objects |
particlesToSpacePoints | the output map from PFParticle to PFParticleMetadata objects |
Definition at line 255 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
|
static |
Collect the reconstructed PFParticles from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
particleVector | the output vector of PFParticle objects |
Definition at line 94 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleHitDumper::analyze(), BuildPFParticleHitMaps(), lar_pandora::PFParticleValidation::GetRecoNeutrinos(), lar_pandora::LArPandoraTrackCreation::produce(), and lar_pandora::LArPandoraShowerCreation::produce().
|
static |
Collect the reconstructed PFParticles and associated SpacePoints from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
particleVector | the output vector of PFParticle objects |
particlesToSpacePoints | the output map from PFParticle to SpacePoint objects |
Definition at line 189 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
|
static |
Collect the reconstructed PFParticles and associated Clusters from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
particleVector | the output vector of PFParticle objects |
particlesToClusters | the output map from PFParticle to Cluster objects |
Definition at line 222 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
|
static |
Collect the reconstructed PFParticles and associated Seeds from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
seedVector | the output vector of Seed objects |
particlesToSeeds | the output map from PFParticle to Seed objects |
Definition at line 418 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Handle< T >::isValid(), label, and seed.
|
static |
Collect the reconstructed Seeds and associated Hits from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
seedVector | the output vector of Seed objects |
seedsToHits | the output map from Seed to Hit objects |
|
static |
Collect the reconstructed PFParticles and associated Showers from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
showerVector | the output vector of Shower objects |
particlesToShowers | the output map from PFParticle to Shower objects |
Definition at line 288 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), and lar_pandora::PFParticleHitDumper::analyze().
|
static |
Collect the reconstructed Showers and associated Hits from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
showerVector | the output vector of Shower objects |
showersToHits | the output map from Shower to Hit objects |
Definition at line 386 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), hits(), and art::Handle< T >::isValid().
|
static |
Collect a vector of SimChannel objects from the ART event record.
evt | the ART event record |
label | the label for the truth information in the event |
simChannelVector | output vector of SimChannel objects |
Definition at line 737 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Event::isRealData(), and art::Handle< T >::isValid().
Referenced by BuildMCParticleHitMaps(), and lar_pandora::LArPandora::CreatePandoraInput().
|
static |
Collect the reconstructed SpacePoints and associated hits from the ART event record.
evt | the ART event record |
label | the label for the SpacePoint list in the event |
spacePointVector | the output vector of SpacePoint objects |
spacePointsToHits | the output map from SpacePoint to Hit objects |
Definition at line 118 of file LArPandoraHelper.cxx.
Referenced by lar_pandora::PFParticleHitDumper::analyze(), lar_pandora::PFParticleMonitoring::analyze(), and BuildPFParticleHitMaps().
|
static |
Collect the reconstructed SpacePoints and associated hits from the ART event record.
evt | the ART event record |
label | the label for the SpacePoint list in the event |
spacePointVector | the output vector of SpacePoint objects |
spacePointsToHits | the output map from SpacePoint to Hit objects |
hitsToSpacePoints | the output map from Hit to SpacePoint objects |
Definition at line 127 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
|
static |
Collect a vector of T0s from the ART event record.
evt | the ART event record |
label | the label for the T0 information in the event |
t0Vector | output vector of T0 objects |
particlesToT0s | output map from PParticles to T0s |
Definition at line 712 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), and lar_pandora::PFParticleMonitoring::analyze().
|
static |
Collect the reconstructed PFParticles and associated Tracks from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
trackVector | the output vector of Track objects |
particlesToTracks | the output map from PFParticle to Track objects |
Definition at line 321 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Handle< T >::isValid(), and track.
Referenced by lar_pandora::PFParticleTrackAna::analyze(), lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleHitDumper::analyze(), and lar_pandora::PFParticleAnalysis::analyze().
|
static |
Collect the reconstructed Tracks and associated Hits from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
trackVector | the output vector of Track objects |
tracksToHits | the output map from Track to Hit objects |
Definition at line 354 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), hits(), art::Handle< T >::isValid(), and track.
|
static |
Collect the reconstructed PFParticles and associated Vertices from the ART event record.
evt | the ART event record |
label | the label for the PFParticle list in the event |
vertexVector | the output vector of Vertex objects |
particlesToVertices | the output map from PFParticle to Vertex objects |
Definition at line 485 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::LArPandoraTrackCreation::produce(), and lar_pandora::LArPandoraShowerCreation::produce().
|
static |
Collect the reconstructed wires from the ART event record.
evt | the ART event record |
label | the label for the Wire list in the event |
wireVector | the ouput vector of Wire objects |
Definition at line 46 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleHitDumper::analyze().
|
static |
Get all hits associated with input clusters.
evt | the event containing the hits |
label | the label of the collection producing PFParticles |
input | vector input of T (clusters, spacepoints) |
associatedHits | output hits associated with T |
indexVector | vector of spacepoint indices reflecting trajectory points sorting order |
Definition at line 1059 of file LArPandoraHelper.cxx.
References art::DataViewImpl::getByLabel(), hits(), and art::Ptr< T >::key().
Referenced by IsVisible(), lar_pandora::LArPandoraTrackCreation::produce(), and lar_pandora::LArPandoraShowerCreation::produce().
|
static |
Return the final-state parent particle by navigating up the chain of parent/daughter associations.
particleMap | the mapping between true particle and true track ID |
daughterParticle | the input MC particle |
Definition at line 1207 of file LArPandoraHelper.cxx.
References IsVisible(), simb::MCParticle::Mother(), and simb::MCParticle::TrackId().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), and BuildMCParticleHitMaps().
|
static |
Return the final-state parent particle by navigating up the chain of parent/daughter associations.
particleMap | the mapping between reconstructed particle and particle ID |
daughterParticle | the input PF particle |
Definition at line 1141 of file LArPandoraHelper.cxx.
References IsNeutrino(), recob::PFParticle::IsPrimary(), recob::PFParticle::Parent(), and recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), and BuildPFParticleHitMaps().
|
static |
Return the generation of this particle (first generation if primary)
particleMap | the mapping between reconstructed particle and particle ID |
daughterParticle | the input daughter particle |
Definition at line 1256 of file LArPandoraHelper.cxx.
References recob::PFParticle::IsPrimary(), recob::PFParticle::Parent(), and recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleAnalysis::analyze().
|
static |
Return the top-level parent particle by navigating up the chain of parent/daughter associations.
particleMap | the mapping between true particle and true track ID |
daughterParticle | the input MC particle |
Definition at line 1179 of file LArPandoraHelper.cxx.
References simb::MCParticle::Mother(), and simb::MCParticle::TrackId().
Referenced by lar_pandora::PFParticleMonitoring::analyze().
|
static |
Return the parent neutrino PDG code (or zero for cosmics) for a given reconstructed particle.
particleMap | the mapping between reconstructed particle and particle ID |
daughterParticle | the input daughter particle |
Definition at line 1282 of file LArPandoraHelper.cxx.
References GetParentPFParticle(), IsNeutrino(), recob::PFParticle::IsPrimary(), recob::PFParticle::Parent(), and recob::PFParticle::PdgCode().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), and lar_pandora::PFParticleMonitoring::analyze().
|
static |
Return the top-level parent particle by navigating up the chain of parent/daughter associations.
particleMap | the mapping between reconstructed particle and particle ID |
daughterParticle | the input PF particle |
Definition at line 1110 of file LArPandoraHelper.cxx.
References recob::PFParticle::IsPrimary(), recob::PFParticle::Parent(), and recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleMonitoring::BuildRecoNeutrinoHitMaps(), and GetParentNeutrino().
|
static |
Return the primary track associated with a PFParticle.
particlesToTracks | the mapping between particles and tracks |
particle | the input particle |
Definition at line 1240 of file LArPandoraHelper.cxx.
|
static |
Determine whether a particle has been reconstructed as a final-state particle.
particleMap | the mapping between reconstructed particle and particle ID |
daughterParticle | the input daughter particle |
Definition at line 1304 of file LArPandoraHelper.cxx.
References IsNeutrino(), recob::PFParticle::IsPrimary(), and recob::PFParticle::Parent().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), BuildPFParticleHitMaps(), and SelectFinalStatePFParticles().
|
static |
Determine whether a particle has been reconstructed as a neutrino.
particle | the input particle |
Definition at line 1328 of file LArPandoraHelper.cxx.
References recob::PFParticle::PdgCode().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleMonitoring::BuildRecoNeutrinoHitMaps(), lar_pandora::PFParticleHitDumper::FillReco3D(), GetFinalStatePFParticle(), lar_pandora::PFParticleValidation::GetMCPrimaryMatchingMap(), GetParentNeutrino(), IsFinalState(), and SelectNeutrinoPFParticles().
|
static |
Determine whether a particle has been reconstructed as shower-like.
particle | the input particle |
Definition at line 1349 of file LArPandoraHelper.cxx.
References recob::PFParticle::PdgCode().
Referenced by lar_pandora::LArPandoraShowerCreation::produce().
|
static |
Determine whether a particle has been reconstructed as track-like.
particle | the input particle |
Definition at line 1338 of file LArPandoraHelper.cxx.
References recob::PFParticle::PdgCode().
Referenced by lar_pandora::PFParticleCosmicAna::FillRecoTree(), and lar_pandora::LArPandoraTrackCreation::produce().
|
static |
Determine whether a particle is visible (i.e. long-lived charged particle)
particle | the input mc particle |
Definition at line 1359 of file LArPandoraHelper.cxx.
References GetAssociatedHits(), simb::MCParticle::PdgCode(), and lar::dump::vector().
Referenced by BuildMCParticleHitMaps(), and GetFinalStateMCParticle().
|
static |
Select final-state reconstructed particles from a list of all reconstructed particles.
inputParticles | the input vector of all particles (it has to be all of them!) |
outputParticles | the output vector of final-state particles |
Definition at line 668 of file LArPandoraHelper.cxx.
References IsFinalState(), and recob::PFParticle::Self().
|
static |
Select reconstructed neutrino particles from a list of all reconstructed particles.
inputParticles | the input vector of all particles (it has to be all of them!) |
outputParticles | the output vector of final-state particles |
Definition at line 655 of file LArPandoraHelper.cxx.
References IsNeutrino().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), and lar_pandora::PFParticleValidation::GetRecoNeutrinos().