LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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, bool &areSimChannelsValid) |
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 art::Event &evt, 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... | |
static larpandoraobj::PFParticleMetadata | GetPFParticleMetadata (const pandora::ParticleFlowObject *const pPfo) |
Get metadata associated to a PFO. More... | |
LArPandoraHelper class.
Definition at line 121 of file LArPandoraHelper.h.
DaughterMode enumeration.
Enumerator | |
---|---|
kIgnoreDaughters | |
kUseDaughters | |
kAddDaughters |
Definition at line 126 of file LArPandoraHelper.h.
|
static |
Collect the links from reconstructed hits to their true energy deposits.
evt | the art event containers |
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 889 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::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleValidation::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 938 of file LArPandoraHelper.cxx.
References util::abs(), 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 1014 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 1037 of file LArPandoraHelper.cxx.
References sim::TrackIDE::energy, sim::TrackIDE::energyFrac, art::FindManyP< ProdB, Data >::get(), art::ProductRetriever::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 1096 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 1151 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 507 of file LArPandoraHelper.cxx.
References GetFinalStatePFParticle(), IsFinalState(), kAddDaughters, kIgnoreDaughters, and recob::PFParticle::Self().
Referenced by lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleValidation::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 564 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 637 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 624 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 1166 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 159 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 730 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 830 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), simb::MCTruth::GetParticle(), 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::ProductRetriever::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleValidation::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleHitDumper::analyze(), lar_pandora::LArPandoraHitCollectionToolDefault::CollectHits(), and lar_pandora::LArPandoraOutput::CopyAllHitsToSingleSlice().
|
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 806 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), 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 860 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), 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 254 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 93 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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(), CollectPFParticles(), 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 190 of file LArPandoraHelper.cxx.
References CollectPFParticles(), tca::evt, art::ProductRetriever::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 |
|
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 412 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), art::Handle< T >::isValid(), 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::ProductRetriever::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleHitDumper::analyze(), and CollectTracks().
|
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 |
|
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 |
areSimChannelsValid | boolean parameter indicating if the sim channel collection exists |
Definition at line 779 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), 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 117 of file LArPandoraHelper.cxx.
Referenced by lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleHitDumper::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 129 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 753 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 319 of file LArPandoraHelper.cxx.
References CollectShowers(), art::ProductRetriever::getByLabel(), hits(), art::Handle< T >::isValid(), and track.
Referenced by lar_pandora::PFParticleTrackAna::analyze(), lar_pandora::PFParticleCosmicAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::PFParticleAnalysis::analyze(), and lar_pandora::PFParticleHitDumper::analyze().
|
static |
|
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 476 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), and art::Handle< T >::isValid().
Referenced by lar_pandora::PFParticleAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), lar_pandora::LArPandoraShowerCreation::produce(), and lar_pandora::LArPandoraTrackCreation::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 47 of file LArPandoraHelper.cxx.
References art::ProductRetriever::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 1117 of file LArPandoraHelper.cxx.
References art::ProductRetriever::getByLabel(), hits(), and art::Ptr< T >::key().
Referenced by GetPFParticleMetadata(), lar_pandora::LArPandoraShowerCreation::produce(), and lar_pandora::LArPandoraTrackCreation::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 1279 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 1212 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 1333 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 1250 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 1359 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 1180 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(), lar_pandora::LArPandoraExternalEventBuilding::CollectClearCosmicRays(), lar_pandora::LArPandoraExternalEventBuilding::CollectSlices(), and GetParentNeutrino().
|
static |
Get metadata associated to a PFO.
pPfo | input ParticleFlowObject |
Definition at line 1456 of file LArPandoraHelper.cxx.
References GetAssociatedHits(), and lar::dump::vector().
Referenced by lar_pandora::LArPandoraOutput::BuildParticleMetadata().
|
static |
Return the primary track associated with a PFParticle.
particlesToTracks | the mapping between particles and tracks |
particle | the input particle |
Definition at line 1313 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 1382 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 1405 of file LArPandoraHelper.cxx.
References util::abs(), and 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 1427 of file LArPandoraHelper.cxx.
References util::abs(), and 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 1416 of file LArPandoraHelper.cxx.
References util::abs(), and 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 1437 of file LArPandoraHelper.cxx.
References util::abs(), and simb::MCParticle::PdgCode().
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 702 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 687 of file LArPandoraHelper.cxx.
References IsNeutrino().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), and lar_pandora::PFParticleValidation::GetRecoNeutrinos().