DeltaRayRemovalTool class. More...
#include <DeltaRayRemovalTool.h>
Public Member Functions | |
DeltaRayRemovalTool () | |
Default constructor. More... | |
Public Member Functions inherited from lar_content::RemovalBaseTool | |
RemovalBaseTool () | |
Default constructor. More... | |
Private Member Functions | |
bool | Run (ThreeViewDeltaRayMatchingAlgorithm *const pAlgorithm, TensorType &overlapTensor) |
Run the algorithm tool. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
bool | RemoveDeltaRayHits (const TensorType::ElementList &elementList) const |
Remove hits from cosmic ray clusters that belong to a child delta ray. More... | |
virtual bool | PassElementChecks (const TensorType::Element &element, const pandora::HitType hitType) const |
Determine whether element satifies simple checks. More... | |
bool | IsContaminated (const TensorType::Element &element, const pandora::HitType hitType) const |
Determine whether the cosmic ray cluster under investigation has delta ray contamination. More... | |
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. More... | |
Private Attributes | |
unsigned int | m_slidingFitWindow |
The sliding fit window used in cosmic ray parameterisations. More... | |
float | m_minDeviationFromTransverse |
The minimum deviation from transverse required to avoid mistakes. More... | |
float | m_contaminationWindow |
The distance in which to search for delta ray contamination in the cosmic ray track. More... | |
unsigned int | m_significantHitThreshold |
The threshold number of hits which define significant contimination. More... | |
float | m_minDistanceFromMuon |
The minimum distance of a hit from the cosmic ray track required for removal. More... | |
float | m_maxDistanceToCollected |
The maximim distance of a hit from the projected delta ray hits required for removal. More... | |
Additional Inherited Members | |
Public Types inherited from lar_content::RemovalBaseTool | |
typedef std::vector< pandora::HitType > | HitTypeVector |
Public Types inherited from lar_content::DeltaRayTensorTool | |
typedef ThreeViewDeltaRayMatchingAlgorithm::MatchingType::TensorType | TensorType |
typedef std::vector< TensorType::ElementList::const_iterator > | IteratorList |
Public Attributes inherited from lar_content::DeltaRayTensorTool | |
ThreeViewDeltaRayMatchingAlgorithm * | m_pParentAlgorithm |
Address of the parent matching algorithm. More... | |
Protected Member Functions inherited from lar_content::RemovalBaseTool | |
bool | IsMuonEndpoint (const TensorType::Element &element, const bool ignoreHitType, const pandora::HitType hitTypeToIgnore=pandora::TPC_VIEW_U) const |
Determine whether the matched clusters suggest that the delta ray is at the endpoint of the cosmic ray (and is likely to be a michel) More... | |
bool | IsBestElement (const TensorType::Element &element, const pandora::HitType hitType, const TensorType::ElementList &elementList, const pandora::ClusterSet &modifiedClusters) const |
Determine whether the input element is the best to use to modify the contaminated cluster (best is defined by the total hit count) More... | |
bool | IsCloseToLine (const pandora::CartesianVector &hitPosition, const pandora::CartesianVector &lineStart, const pandora::CartesianVector &lineEnd, const float distanceToLine) const |
Whether a given position is close to a defined line. More... | |
bool | IsInLineSegment (const pandora::CartesianVector &lowerBoundary, const pandora::CartesianVector &upperBoundary, const pandora::CartesianVector &point) const |
Whether the projection of a given position lies on a defined line. More... | |
void | FindExtrapolatedHits (const pandora::Cluster *const pCluster, const pandora::CartesianVector &lowerBoundary, const pandora::CartesianVector &upperBoundary, pandora::CaloHitList &collectedHits) const |
Collect the hits that are closest to and can be projected onto a defined line. More... | |
pandora::StatusCode | ProjectDeltaRayPositions (const TensorType::Element &element, const pandora::HitType hitType, pandora::CartesianPointVector &projectedPositions) const |
Use two views of a delta ray pfo to calculate projected positions in a given third view. More... | |
Protected Attributes inherited from lar_content::RemovalBaseTool | |
float | m_minSeparation |
The minimum delta ray - parent muon cluster separation required to investigate a delta/cosmic ray cluster. More... | |
float | m_distanceToLine |
The maximum perpendicular distance of a position to a line for it to be considered close. More... | |
DeltaRayRemovalTool class.
Definition at line 19 of file DeltaRayRemovalTool.h.
lar_content::DeltaRayRemovalTool::DeltaRayRemovalTool | ( | ) |
Default constructor.
Definition at line 23 of file DeltaRayRemovalTool.cc.
|
private |
Determine whether the cosmic ray cluster under investigation has delta ray contamination.
element | the tensor element |
hitType | the hit type of the view under investigation |
Definition at line 126 of file DeltaRayRemovalTool.cc.
|
privatevirtual |
Determine whether element satifies simple checks.
element | the tensor element |
hitType | the hit type of the cluster under investigation |
Implements lar_content::RemovalBaseTool.
Definition at line 115 of file DeltaRayRemovalTool.cc.
|
privatevirtual |
Implements lar_content::RemovalBaseTool.
Definition at line 201 of file DeltaRayRemovalTool.cc.
|
private |
Remove hits from cosmic ray clusters that belong to a child delta ray.
elementList | the tensor element list |
Definition at line 69 of file DeltaRayRemovalTool.cc.
|
privatevirtual |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
overlapTensor | the overlap tensor |
Implements lar_content::RemovalBaseTool.
Definition at line 35 of file DeltaRayRemovalTool.cc.
|
private |
Remove collected delta ray hits from the cosmic ray pfo.
element | the tensor element |
hitType | the hit type of the cluster under investigation |
deltaRayHits | the list of delta ray hits to remove |
Definition at line 178 of file DeltaRayRemovalTool.cc.
|
private |
The distance in which to search for delta ray contamination in the cosmic ray track.
Definition at line 71 of file DeltaRayRemovalTool.h.
|
private |
The maximim distance of a hit from the projected delta ray hits required for removal.
Definition at line 74 of file DeltaRayRemovalTool.h.
|
private |
The minimum deviation from transverse required to avoid mistakes.
Definition at line 70 of file DeltaRayRemovalTool.h.
|
private |
The minimum distance of a hit from the cosmic ray track required for removal.
Definition at line 73 of file DeltaRayRemovalTool.h.
|
private |
The threshold number of hits which define significant contimination.
Definition at line 72 of file DeltaRayRemovalTool.h.
|
private |
The sliding fit window used in cosmic ray parameterisations.
Definition at line 69 of file DeltaRayRemovalTool.h.