Print a given PFParticle.
418 this->
PrintProperty(
"IsPrimary", particle->IsPrimary(), depth);
420 if (!particle->IsPrimary())
424 if (data.m_pPFParticleToMetadataAssociation)
426 const auto &metadata(data.m_pPFParticleToMetadataAssociation->at(particle.key()));
429 for (
const auto &metadatum : metadata)
431 const auto &propertiesMap(metadatum->GetPropertiesMap());
432 this->
PrintProperty(
"# Properties", propertiesMap.size(), depth + 2);
434 for (
const auto &propertiesMapEntry : propertiesMap)
435 this->
PrintProperty(propertiesMapEntry.first, propertiesMapEntry.second, depth + 4);
440 if (data.m_pPFParticleToSliceAssociation)
442 const auto &
slices(data.m_pPFParticleToSliceAssociation->at(particle.key()));
447 for (
const auto &slice :
slices)
454 if (data.m_pPFParticleToClusterAssociation)
456 const auto &clusters(data.m_pPFParticleToClusterAssociation->at(particle.key()));
461 for (
const auto &
cluster : clusters)
467 if (data.m_pPFParticleToSpacePointAssociation)
469 const auto &spacePoints(data.m_pPFParticleToSpacePointAssociation->at(particle.key()));
470 this->
PrintProperty(
"# SpacePoints", spacePoints.size(), depth);
474 for (
const auto &spacePoint : spacePoints)
480 if (data.m_pPFParticleToVertexAssociation)
482 const auto &vertices(data.m_pPFParticleToVertexAssociation->at(particle.key()));
487 for (
const auto &
vertex : vertices)
493 if (data.m_pPFParticleToTrackAssociation)
495 const auto &
tracks(data.m_pPFParticleToTrackAssociation->at(particle.key()));
506 if (data.m_pPFParticleToShowerAssociation)
508 const auto &showers(data.m_pPFParticleToShowerAssociation->at(particle.key()));
513 for (
const auto &
shower : showers)
519 this->
PrintProperty(
"# Daughters", particle->NumDaughters(), depth);
522 for (
auto &daughterId : particle->Daughters())
524 const auto daughterIter(pfParticleMap.find(daughterId));
526 if (daughterIter == pfParticleMap.end())
527 throw cet::exception(
"LArPandoraEventDump") <<
"Couldn't find daughter of PFParticle in the PFParticle map";
529 const auto &daughter(daughterIter->second);
530 this->
PrintParticle(daughter, pfParticleMap, data, depth + 4);
void PrintRule(const unsigned int depth) const
Print a horizontal line.
ClusterModuleLabel join with tracks
void PrintShower(const art::Ptr< recob::Shower > &shower, const PandoraData &data, const unsigned int depth) const
Print a given Shower.
void PrintVertex(const art::Ptr< recob::Vertex > &vertex, const unsigned int depth) const
Print a given Vertex.
void PrintParticle(const art::Ptr< recob::PFParticle > &particle, const PFParticleMap &pfParticleMap, const PandoraData &data, const unsigned int depth) const
Print a given PFParticle.
process_name use argoneut_mc_hitfinder track
void PrintTrack(const art::Ptr< recob::Track > &track, const PandoraData &data, const unsigned int depth) const
Print a given Track.
void PrintSpacePoint(const art::Ptr< recob::SpacePoint > &spacePoint, const PandoraData &data, const unsigned int depth) const
Print a given SpacePoint.
std::vector< TCSlice > slices
void PrintTitle(const std::string &name, const unsigned int depth) const
Print a title line.
void PrintSlice(const art::Ptr< recob::Slice > &slice, const PandoraData &data, const unsigned int depth) const
Print a given Slice.
std::string m_verbosityLevel
The level of verbosity to use.
void PrintCluster(const art::Ptr< recob::Cluster > &cluster, const PandoraData &data, const unsigned int depth) const
Print a given Cluster.
void PrintProperty(const std::string &name, const T &value, const unsigned int depth) const
Print a given property with the correct amount of whitespace.