LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 
15 namespace lar_content
16 {
17 
22 {
23 public:
24  void RunSlicing(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames,
25  const SlicingAlgorithm::HitTypeToNameMap &clusterListNames, SlicingAlgorithm::SliceList &sliceList);
26 
27 private:
28  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
29 
30  typedef std::unordered_map<const pandora::MCParticle*, SlicingAlgorithm::Slice> MCParticleToSliceMap;
31 
39  void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames,
40  MCParticleToSliceMap &mcParticleToSliceMap) const;
41 
50  void FillSlices(const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames,
51  MCParticleToSliceMap &mcParticleToSliceMap) const;
52 };
53 
54 } // namespace lar_content
55 
56 #endif // #ifndef LAR_CHEATING_EVENT_SLICING_TOOL_H
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.
CheatingEventSlicingTool class.
EventSlicingBaseTool class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const
Initialize the map from parent mc particles to slice objects.
void RunSlicing(const pandora::Algorithm *const pAlgorithm, const SlicingAlgorithm::HitTypeToNameMap &caloHitListNames, const SlicingAlgorithm::HitTypeToNameMap &clusterListNames, SlicingAlgorithm::SliceList &sliceList)
Run the slicing tool.
std::vector< Slice > SliceList
std::unordered_map< const pandora::MCParticle *, SlicingAlgorithm::Slice > MCParticleToSliceMap
Header file for the master algorithm class.
std::map< pandora::HitType, std::string > HitTypeToNameMap