8 #ifndef LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H 9 #define LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H 1 11 #include "Pandora/Algorithm.h" 32 typedef std::map<const pandora::CaloHit *, std::tuple<int, int, int, int>>
CaloHitToPixelMap;
35 pandora::StatusCode
Run();
40 pandora::StatusCode
Train();
45 pandora::StatusCode
Infer();
46 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
57 void GetHitRegion(
const pandora::CaloHitList &caloHitList,
float &xMin,
float &xMax,
float &zMin,
float &zMax);
68 void GetSparseTileMap(
const pandora::CaloHitList &caloHitList,
const float xMin,
const float zMin,
const int nTilesX, PixelToTileMap &sparseMap);
87 #endif // LAR_DL_HIT_TRACK_SHOWER_ID_ALGORITHM_H LArDLHelper::TorchModel m_modelW
Model for the W view.
bool m_visualize
Whether to visualize the track shower ID scores.
LArDLHelper::TorchModel m_modelU
Model for the U view.
torch::jit::script::Module TorchModel
std::string m_modelFileNameW
Model file name for W view.
std::string m_modelFileNameU
Model file name for U view.
pandora::StringVector m_caloHitListNames
Name of input calo hit list.
pandora::StatusCode Infer()
Run network inference.
std::string m_trainingOutputFile
Output file name for training examples.
Header file for the lar deep learning helper helper class.
LArDLHelper::TorchModel m_modelV
Model for the V view.
void GetHitRegion(const pandora::CaloHitList &caloHitList, float &xMin, float &xMax, float &zMin, float &zMax)
Identify the XZ range containing the hits for an event.
std::string m_modelFileNameV
Model file name for V view.
pandora::StatusCode Run()
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
int m_imageWidth
Width of images in pixels.
virtual ~DlHitTrackShowerIdAlgorithm()
int m_imageHeight
Height of images in pixels.
float m_tileSize
Size of tile in cm.
DlHitTrackShowerIdAlgorithm class.
std::vector< string > StringVector
std::map< int, int > PixelToTileMap
pandora::StatusCode Train()
Produce files that act as inputs to network training.
DlHitTrackShowerIdAlgorithm()
Default constructor.
bool m_useTrainingMode
Training mode.
void GetSparseTileMap(const pandora::CaloHitList &caloHitList, const float xMin, const float zMin, const int nTilesX, PixelToTileMap &sparseMap)
Populate a map between pixels and tiles.
std::map< const pandora::CaloHit *, std::tuple< int, int, int, int > > CaloHitToPixelMap