LArSoft  v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
DLBaseHierarchyTool.h
Go to the documentation of this file.
1 
8 #ifndef LAR_DL_BASE_HIERARCHY_TOOL_H
9 #define LAR_DL_BASE_HIERARCHY_TOOL_H 1
10 
11 #include "Pandora/PandoraInternal.h"
12 
14 
17 
18 #include <torch/script.h>
19 #include <torch/torch.h>
20 
21 namespace lar_dl_content
22 {
23 
27 class DLBaseHierarchyTool : public pandora::AlgorithmTool
28 {
29 public:
34 
35 protected:
36  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
37 
41  void SetDetectorBoundaries();
42 
53  std::pair<float, float> GetParticleInfoAboutPfoPosition(const pandora::Algorithm *const pAlgorithm,
54  const pandora::ParticleFlowObject *const pPfo, const pandora::CartesianVector &pointOfInterest) const;
55 
63  void NormaliseNetworkParam(const float minLimit, const float maxLimit, float &networkParam) const;
64 
66  pandora::StringVector m_pfoListNames;
69 };
70 
71 } // namespace lar_dl_content
72 
73 #endif // #ifndef LAR_DL_BASE_HIERARCHY_TOOL_H
Header file for the HierarchyPfo class.
DLBaseHierarchyTool to calculate variables related to the initial shower region.
DLBaseHierarchyTool()
Default constructor.
float m_vertexRegionRadiusSq
the radius (squared) in which to search for particle hits
Header file for the geometry helper class.
std::pair< float, float > GetParticleInfoAboutPfoPosition(const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo, const pandora::CartesianVector &pointOfInterest) const
Return the number of 3D hits and the number of corresponding pfos of a given pfo about a point...
void NormaliseNetworkParam(const float minLimit, const float maxLimit, float &networkParam) const
Shift and normalise a network parameter with respect to an input range.
Header file for the lar deep learning helper helper class.
Struct to hold detector boundaries.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
pandora::StringVector m_pfoListNames
the input pfo list name vector
bool m_areBoundariesSet
whether the detector boundaries have been set
LArGeometryHelper::DetectorBoundaries m_detectorBoundaries
the detector boundaries
void SetDetectorBoundaries()
Set the detector boundaries.