Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
CheatingEventSlicingTool.h
Go to the documentation of this file.
1
8#ifndef LAR_CHEATING_EVENT_SLICING_TOOL_H
9#define LAR_CHEATING_EVENT_SLICING_TOOL_H 1
10
12
13#include <unordered_map>
14
15namespace lar_content
16{
17
22{
23public:
24 void RunSlicing(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames,
25 const SlicingAlgorithm::HitTypeToNameMap &clusterListNames, SlicingAlgorithm::SliceList &sliceList);
26
27private:
29
30 typedef std::unordered_map<const pandora::MCParticle *, SlicingAlgorithm::Slice> MCParticleToSliceMap;
31
39 void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm,
40 const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const;
41
50 void FillSlices(const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType,
51 const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const;
52};
53
54} // namespace lar_content
55
56#endif // #ifndef LAR_CHEATING_EVENT_SLICING_TOOL_H
Header file for the master algorithm class.
void FillSlices(const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const
Fill slices using hits from a specified view.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
void RunSlicing(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, const SlicingAlgorithm::HitTypeToNameMap &clusterListNames, SlicingAlgorithm::SliceList &sliceList)
Run the slicing tool.
std::unordered_map< const pandora::MCParticle *, SlicingAlgorithm::Slice > MCParticleToSliceMap
void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const
Initialize the map from parent mc particles to slice objects.
EventSlicingBaseTool class.
std::map< pandora::HitType, std::string > HitTypeToNameMap
std::vector< Slice > SliceList
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition Algorithm.h:21
HitType
Calorimeter hit type enum.
StatusCode
The StatusCode enum.