LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DeltaRayRemovalTool.h
Go to the documentation of this file.
1 
8 #ifndef DELTA_RAY_REMOVAL_TOOL_H
9 #define DELTA_RAY_REMOVAL_TOOL_H 1
10 
13 
14 namespace lar_content
15 {
20 {
21 public:
26 
27 private:
28  bool Run(ThreeViewDeltaRayMatchingAlgorithm *const pAlgorithm, TensorType &overlapTensor);
29  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
30 
38  bool RemoveDeltaRayHits(const TensorType::ElementList &elementList) const;
39 
48  virtual bool PassElementChecks(const TensorType::Element &element, const pandora::HitType hitType) const;
49 
58  bool IsContaminated(const TensorType::Element &element, const pandora::HitType hitType) const;
59 
67  void SplitMuonCluster(const TensorType::Element &element, const pandora::HitType hitType, const pandora::CaloHitList &deltaRayHits) const;
68 
69  unsigned int m_slidingFitWindow;
75 };
76 
77 } // namespace lar_content
78 
79 #endif // #ifndef DELTA_RAY_REMOVAL_TOOL_H
unsigned int m_slidingFitWindow
The sliding fit window used in cosmic ray parameterisations.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
float m_contaminationWindow
The distance in which to search for delta ray contamination in the cosmic ray track.
Header file for the removal base tool class.
bool IsContaminated(const TensorType::Element &element, const pandora::HitType hitType) const
Determine whether the cosmic ray cluster under investigation has delta ray contamination.
float m_minDistanceFromMuon
The minimum distance of a hit from the cosmic ray track required for removal.
bool Run(ThreeViewDeltaRayMatchingAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
DeltaRayRemovalTool class.
DeltaRayRemovalTool()
Default constructor.
float m_minDeviationFromTransverse
The minimum deviation from transverse required to avoid mistakes.
float m_maxDistanceToCollected
The maximim distance of a hit from the projected delta ray hits required for removal.
void SplitMuonCluster(const TensorType::Element &element, const pandora::HitType hitType, const pandora::CaloHitList &deltaRayHits) const
Remove collected delta ray hits from the cosmic ray pfo.
virtual bool PassElementChecks(const TensorType::Element &element, const pandora::HitType hitType) const
Determine whether element satifies simple checks.
HitType
Definition: HitType.h:12
unsigned int m_significantHitThreshold
The threshold number of hits which define significant contimination.
RemovalBaseTool class.
bool RemoveDeltaRayHits(const TensorType::ElementList &elementList) const
Remove hits from cosmic ray clusters that belong to a child delta ray.