Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
DlHitTrackShowerIdAlgorithm.h
Go to the documentation of this file.
1
8#ifndef LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H
9#define LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H 1
10
11#include "Pandora/Algorithm.h"
12
14
15namespace lar_dl_content
16{
17
22{
23public:
28
30
31private:
32 typedef std::map<const pandora::CaloHit *, std::tuple<int, int, int, int>> CaloHitToPixelMap;
33 typedef std::map<int, int> PixelToTileMap;
34
36
41
47
57 void GetHitRegion(const pandora::CaloHitList &caloHitList, float &xMin, float &xMax, float &zMin, float &zMax);
58
68 void GetSparseTileMap(const pandora::CaloHitList &caloHitList, const float xMin, const float zMin, const int nTilesX, PixelToTileMap &sparseMap);
69
71 std::string m_modelFileNameU;
72 std::string m_modelFileNameV;
73 std::string m_modelFileNameW;
79 float m_tileSize;
83};
84
85} // namespace lar_dl_content
86
87#endif // LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H
Header file for the algorithm class.
Header file for the lar deep learning helper helper class.
std::map< const pandora::CaloHit *, std::tuple< int, int, int, int > > CaloHitToPixelMap
pandora::StatusCode Run()
Run the algorithm.
std::string m_modelFileNameV
Model file name for V view.
LArDLHelper::TorchModel m_modelU
Model for the U view.
std::string m_modelFileNameW
Model file name for W view.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
pandora::StatusCode Train()
Produce files that act as inputs to network training.
std::string m_trainingOutputFile
Output file name for training examples.
void GetHitRegion(const pandora::CaloHitList &caloHitList, float &xMin, float &xMax, float &zMin, float &zMax)
Identify the XZ range containing the hits for an event.
pandora::StringVector m_caloHitListNames
Name of input calo hit list.
LArDLHelper::TorchModel m_modelW
Model for the W view.
void GetSparseTileMap(const pandora::CaloHitList &caloHitList, const float xMin, const float zMin, const int nTilesX, PixelToTileMap &sparseMap)
Populate a map between pixels and tiles.
bool m_visualize
Whether to visualize the track shower ID scores.
pandora::StatusCode Infer()
Run network inference.
std::string m_modelFileNameU
Model file name for U view.
LArDLHelper::TorchModel m_modelV
Model for the V view.
torch::jit::script::Module TorchModel
Definition LArDLHelper.h:25
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition Algorithm.h:21
std::vector< std::string > StringVector
MANAGED_CONTAINER< const CaloHit * > CaloHitList
StatusCode
The StatusCode enum.