![]() |
LArSoft
v10_04_05
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 (const pandora::CartesianVector &nuVertexU, const pandora::CartesianVector &nuVertexV, const pandora::CartesianVector &nuVertexW, const pandora::CartesianVector &directionU, const pandora::CartesianVector &directionV, const 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_xExtrapolation |
Extrapolation distance in the x-direction. 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 142 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, m_xExtrapolation, and lar_content::LArGeometryHelper::MergeTwoPositions().
Referenced by ArePathwaysConsistent().
|
private |
Determine whether three 2D initial spine directions correspond to the same 3D initial spine direction.
nuVertexU | the U view projection of the neutrino vertex |
nuVertexV | the V view projection of the neutrino vertex |
nuVertexW | the W view projection of the neutrino vertex |
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 90 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 111 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 258 of file ProtoShowerMatchingTool.cc.
References m_maxAngularDeviation, m_maxSeparation, m_maxXSeparation, m_spineSlidingFitWindow, and m_xExtrapolation.
StatusCode lar_content::ProtoShowerMatchingTool::Run | ( | const ProtoShowerVector & | protoShowerVectorU, |
const ProtoShowerVector & | protoShowerVectorV, | ||
const ProtoShowerVector & | protoShowerVectorW, | ||
ProtoShowerMatchVector & | protoShowerMatchVector | ||
) |
Definition at line 36 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 88 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 86 of file ProtoShowerMatchingTool.h.
Referenced by AreShowerStartsConsistent(), and ReadSettings().
|
private |
The max. drift-coordinate separation between matched 2D shower start positions.
Definition at line 85 of file ProtoShowerMatchingTool.h.
Referenced by AreShowerStartsConsistent(), and ReadSettings().
|
private |
The shower spine sliding fit window.
Definition at line 84 of file ProtoShowerMatchingTool.h.
Referenced by AreDirectionsConsistent(), and ReadSettings().
|
private |
Extrapolation distance in the x-direction.
Definition at line 87 of file ProtoShowerMatchingTool.h.
Referenced by AreDirectionsConsistent(), and ReadSettings().