LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
VisualMonitoringAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_VISUAL_MONITORING_ALGORITHM_H
9 #define LAR_VISUAL_MONITORING_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
13 namespace lar_content
14 {
15 
19 class VisualMonitoringAlgorithm : public pandora::Algorithm
20 {
21 public:
26 
27 private:
28  pandora::StatusCode Run();
29  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
30 
36  void VisualizeMCParticleList(const std::string &listName) const;
37 
43  void VisualizeCaloHitList(const std::string &listName) const;
44 
50  void VisualizeTrackList(const std::string &listName) const;
51 
57  void VisualizeClusterList(const std::string &listName) const;
58 
64  void VisualizeParticleFlowList(const std::string &listName) const;
65 
71  void VisualizeVertexList(const std::string &listName) const;
72 
73  typedef std::map<int, float> PdgCodeToEnergyMap;
74 
76  pandora::StringVector m_mcParticleListNames;
77 
79  pandora::StringVector m_caloHitListNames;
80 
82  pandora::StringVector m_trackListNames;
83 
85  pandora::StringVector m_clusterListNames;
86 
88  pandora::StringVector m_pfoListNames;
89 
91  pandora::StringVector m_vertexListNames;
92 
94  std::string m_saveEventPath;
96  std::string m_detectorView;
97 
100  std::string m_hitColors;
105 
108 
109  pandora::StringVector m_suppressMCParticles;
110  PdgCodeToEnergyMap m_particleSuppressionMap;
111 };
112 
113 } // namespace lar_content
114 
115 #endif // #ifndef LAR_VISUAL_MONITORING_ALGORITHM_H
pandora::StringVector m_pfoListNames
Names of pfo lists to show.
std::string m_saveEventPath
The path to save event displays to. m_displayEvent must also be set.
pandora::StringVector m_caloHitListNames
Names of calo hit lists to show.
void VisualizeCaloHitList(const std::string &listName) const
Visualize a specified calo hit list.
float m_transparencyThresholdE
Cell energy for which transparency is saturated (0%, fully opaque)
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
bool m_showCurrentVertices
Whether to show current vertex list.
void VisualizeParticleFlowList(const std::string &listName) const
Visualize a specified pfo list.
pandora::StringVector m_vertexListNames
Names of vertex lists to show.
bool m_showCurrentCaloHits
Whether to show current calohitlist.
bool m_showCurrentPfos
Whether to show current particle flow object list.
void VisualizeTrackList(const std::string &listName) const
Visualize a specified track list.
bool m_showDetector
Whether to display the detector geometry.
bool m_showCurrentMCParticles
Whether to show current mc particles.
float m_scalingFactor
TEve works with [cm], Pandora usually works with [mm] (but LArContent went with cm too) ...
bool m_showPfoHierarchy
Whether to display daughter pfos only under parent pfo elements.
float m_thresholdEnergy
Cell energy threshold for display (em scale)
bool m_showAssociatedTracks
Whether to display tracks associated to clusters when viewing cluster lists.
bool m_showOnlyAvailable
Whether to show only available (i.e. non-clustered) calohits and tracks.
pandora::StringVector m_suppressMCParticles
List of PDG numbers and energies for MC particles to be suppressed (e.g. " 22:0.1 2112:1...
bool m_showCurrentClusters
Whether to show current clusters.
pandora::StringVector m_mcParticleListNames
Names of mc particles lists to show.
bool m_showPfoVertices
Whether to display pfo vertices.
void VisualizeMCParticleList(const std::string &listName) const
Visualize mc particle list.
void VisualizeVertexList(const std::string &listName) const
Visualize a specified vertex list.
void VisualizeClusterList(const std::string &listName) const
Visualize a specified calo hit list.
float m_energyScaleThresholdE
Cell energy for which color is at top end of continous color palette.
bool m_showCurrentTracks
Whether to show current tracks.
std::string m_detectorView
The detector view, default, xy or xz.
pandora::StringVector m_clusterListNames
Names of cluster lists to show.
bool m_displayEvent
Whether to display the event.
pandora::StringVector m_trackListNames
Names of track lists to show.
PdgCodeToEnergyMap m_particleSuppressionMap
Map from pdg-codes to energy for suppression of particles types below specific energies.
std::string m_hitColors
Define the hit coloring scheme (default: pfo, choices: pfo, particleid)