LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ProtoShowerMatchingTool.h"
Public Member Functions | |
ProtoShowerMatchingTool () | |
Default constructor. More... | |
pandora::StatusCode | Run (const ProtoShowerVector &protoShowerVectorU, const ProtoShowerVector &protoShowerVectorV, const ProtoShowerVector &protoShowerVectorW, ProtoShowerMatchVector &protoShowerMatchVector) |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
bool | ArePathwaysConsistent (const ProtoShower &protoShowerU, const ProtoShower &protoShowerV, const ProtoShower &protoShowerW, Consistency &consistency) const |
Determine whether three 2D connection pathways form a consistent 3D connection pathway. More... | |
bool | AreShowerStartsConsistent (const ProtoShower &protoShowerU, const ProtoShower &protoShowerV, const ProtoShower &protoShowerW) const |
Determine whether three 2D shower start positions correspond to the same 3D shower start position. More... | |
bool | AreDirectionsConsistent (const ProtoShower &protoShowerU, const ProtoShower &protoShowerV, const ProtoShower &protoShowerW) const |
Determine whether three 2D initial spine directions correspond to the same 3D initial spine direction. More... | |
bool | AreDirectionsConsistent (pandora::CartesianVector directionU, pandora::CartesianVector directionV, pandora::CartesianVector directionW) const |
Determine whether three 2D initial spine directions correspond to the same 3D initial spine direction. More... | |
Private Attributes | |
unsigned int | m_spineSlidingFitWindow |
The shower spine sliding fit window. More... | |
float | m_maxXSeparation |
The max. drift-coordinate separation between matched 2D shower start positions. More... | |
float | m_maxSeparation |
The max. average separation between true and projected 2D shower start positions for a match. More... | |
float | m_maxAngularDeviation |
The max. opening angle between true and projected 2D initial directions for a match. More... | |
Definition at line 19 of file ProtoShowerMatchingTool.h.
lar_content::ProtoShowerMatchingTool::ProtoShowerMatchingTool | ( | ) |
Default constructor.
Definition at line 25 of file ProtoShowerMatchingTool.cc.
|
private |
Determine whether three 2D initial spine directions correspond to the same 3D initial spine direction.
protoShowerU | the U view ProtoShower |
protoShowerV | the V view ProtoShower |
protoShowerW | the W view ProtoShower |
Definition at line 141 of file ProtoShowerMatchingTool.cc.
References f, lar_content::ProtoShower::GetConnectionPathway(), lar_content::TwoDSlidingFitResult::GetGlobalMaxLayerDirection(), lar_content::TwoDSlidingFitResult::GetGlobalMinLayerDirection(), lar_content::ProtoShower::GetShowerCore(), lar_content::ProtoShower::GetSpineHitList(), lar_content::ConnectionPathway::GetStartDirection(), lar_content::ShowerCore::GetStartPosition(), lar_content::ConnectionPathway::GetStartPosition(), lar_content::LArGeometryHelper::GetWirePitch(), m_maxAngularDeviation, m_spineSlidingFitWindow, and lar_content::LArGeometryHelper::MergeTwoDirections().
Referenced by ArePathwaysConsistent().
|
private |
Determine whether three 2D initial spine directions correspond to the same 3D initial spine direction.
directionU | the U view initial spine direction |
directionU | the V view initial spine direction |
directionU | the W view initial spine direction |
|
private |
Determine whether three 2D connection pathways form a consistent 3D connection pathway.
protoShowerU | the U view ProtoShower |
protoShowerV | the V view ProtoShower |
protoShowerW | the W view ProtoShower |
consistency | the basis of the match |
Definition at line 89 of file ProtoShowerMatchingTool.cc.
References AreDirectionsConsistent(), AreShowerStartsConsistent(), lar_content::DIRECTION, and lar_content::POSITION.
Referenced by Run().
|
private |
Determine whether three 2D shower start positions correspond to the same 3D shower start position.
protoShowerU | the U view ProtoShower |
protoShowerV | the V view ProtoShower |
protoShowerW | the W view ProtoShower |
Definition at line 110 of file ProtoShowerMatchingTool.cc.
References f, lar_content::ProtoShower::GetShowerCore(), lar_content::ShowerCore::GetStartPosition(), m_maxSeparation, m_maxXSeparation, and lar_content::LArGeometryHelper::MergeTwoPositions().
Referenced by ArePathwaysConsistent().
|
private |
Definition at line 239 of file ProtoShowerMatchingTool.cc.
References m_maxAngularDeviation, m_maxSeparation, m_maxXSeparation, and m_spineSlidingFitWindow.
StatusCode lar_content::ProtoShowerMatchingTool::Run | ( | const ProtoShowerVector & | protoShowerVectorU, |
const ProtoShowerVector & | protoShowerVectorV, | ||
const ProtoShowerVector & | protoShowerVectorW, | ||
ProtoShowerMatchVector & | protoShowerMatchVector | ||
) |
Definition at line 35 of file ProtoShowerMatchingTool.cc.
References ArePathwaysConsistent(), and lar_content::POSITION.
Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineShower().
|
private |
The max. opening angle between true and projected 2D initial directions for a match.
Definition at line 82 of file ProtoShowerMatchingTool.h.
Referenced by AreDirectionsConsistent(), and ReadSettings().
|
private |
The max. average separation between true and projected 2D shower start positions for a match.
Definition at line 81 of file ProtoShowerMatchingTool.h.
Referenced by AreShowerStartsConsistent(), and ReadSettings().
|
private |
The max. drift-coordinate separation between matched 2D shower start positions.
Definition at line 80 of file ProtoShowerMatchingTool.h.
Referenced by AreShowerStartsConsistent(), and ReadSettings().
|
private |
The shower spine sliding fit window.
Definition at line 79 of file ProtoShowerMatchingTool.h.
Referenced by AreDirectionsConsistent(), and ReadSettings().