LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 HitTypeToNameMap &caloHitListNames,
25  const HitTypeToNameMap &clusterListNames, SliceList &sliceList);
26 
27 private:
28  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
29 
30  typedef std::unordered_map<const pandora::MCParticle *, Slice> MCParticleToSliceMap;
31 
39  void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm, const HitTypeToNameMap &caloHitListNames,
40  MCParticleToSliceMap &mcParticleToSliceMap) const;
41 
50  void FillSlices(const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const HitTypeToNameMap &caloHitListNames,
51  MCParticleToSliceMap &mcParticleToSliceMap) const;
52 };
53 
54 } // namespace lar_content
55 
56 #endif // #ifndef LAR_CHEATING_EVENT_SLICING_TOOL_H
std::unordered_map< const pandora::MCParticle *, Slice > MCParticleToSliceMap
void InitializeMCParticleToSliceMap(const pandora::Algorithm *const pAlgorithm, const HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const
Initialize the map from parent mc particles to slice objects.
CheatingEventSlicingTool class.
std::vector< Slice > SliceList
Definition: LArSlice.h:29
void RunSlicing(const pandora::Algorithm *const pAlgorithm, const HitTypeToNameMap &caloHitListNames, const HitTypeToNameMap &clusterListNames, SliceList &sliceList)
Run the slicing tool.
EventSlicingBaseTool class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::map< pandora::HitType, std::string > HitTypeToNameMap
Header file for the event slicing tool base class.
HitType
Definition: HitType.h:12
void FillSlices(const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const HitTypeToNameMap &caloHitListNames, MCParticleToSliceMap &mcParticleToSliceMap) const
Fill slices using hits from a specified view.