8#ifndef LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H
9#define LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H 1
32 typedef std::map<const pandora::CaloHit *, std::tuple<int, int, int, int>>
CaloHitToPixelMap;
Header file for the algorithm class.
Header file for the lar deep learning helper helper class.
DlHitTrackShowerIdAlgorithm class.
std::map< const pandora::CaloHit *, std::tuple< int, int, int, int > > CaloHitToPixelMap
DlHitTrackShowerIdAlgorithm()
Default constructor.
virtual ~DlHitTrackShowerIdAlgorithm()
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.
bool m_useTrainingMode
Training mode.
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.
float m_tileSize
Size of tile in cm.
std::string m_modelFileNameU
Model file name for U view.
LArDLHelper::TorchModel m_modelV
Model for the V view.
int m_imageWidth
Width of images in pixels.
std::map< int, int > PixelToTileMap
int m_imageHeight
Height of images in pixels.
torch::jit::script::Module TorchModel
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
std::vector< std::string > StringVector
MANAGED_CONTAINER< const CaloHit * > CaloHitList
StatusCode
The StatusCode enum.