LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
LArConnectionPathwayHelper class. More...
#include "LArConnectionPathwayHelper.h"
Classes | |
class | SortByDistanceToPoint |
SortByDistanceToPoint class. More... | |
Static Public Member Functions | |
static bool | FindShowerStarts3D (const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianVector &nuVertexPosition, const float maxSeparationFromHit, const float maxProjectionSeparation, const float maxXSeparation, pandora::CartesianPointVector &showerStarts3D) |
Create 3D shower start position(s) from three input 2D positions. More... | |
static void | FindShowerStartFromPosition (const pandora::Algorithm *const pAlgorithm, const ProtoShower &protoShowerU, const ProtoShower &protoShowerV, const ProtoShower &protoShowerW, pandora::CartesianVector &showerStart3D) |
Create 3D shower start position from three input 2D positions, assuming consistency of position. More... | |
static bool | FindShowerStartFromDirection (const pandora::Algorithm *const pAlgorithm, const ProtoShower &protoShowerU, const ProtoShower &protoShowerV, const ProtoShower &protoShowerW, pandora::CartesianVector &uShowerStart3D, pandora::CartesianVector &vShowerStart3D, pandora::CartesianVector &wShowerStart3D) |
Create a 3D shower start position from each input 2D position, assuming consistency of initial direction. More... | |
static bool | FindShowerStartFromDirection (const pandora::Algorithm *const pAlgorithm, const ProtoShower &protoShower, const ProtoShower &protoShowerA, const ProtoShower &protoShowerB, pandora::CartesianVector &showerStart3D) |
Create a 3D shower start position from an input 2D position, assuming consistency of initial direction. More... | |
static bool | ProjectShowerStartByDirection (const ProtoShower &protoShower, const float x, pandora::CartesianVector &showerStart2D) |
Find a 2D shower start, from a drift coordinate by assuming consistency of initial direction. More... | |
static bool | FindShowerStartFromXProjection (const pandora::Algorithm *const pAlgorithm, const ProtoShower &protoShower, const ProtoShower &protoShower1, const ProtoShower &protoShower2, const float maxSeparation, const float maxXSeparation, pandora::CartesianVector &showerStart3D) |
Create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate. More... | |
static bool | FindClosestSpinePosition (const ProtoShower &protoShower, const pandora::CartesianVector &showerStart3D, const float maxXSeparation, pandora::CartesianVector &foundShowerStart) |
Find the 2D spine hit that is closest to the neutrino vertex and shares a drift coordinate with an input 3D position. More... | |
static bool | FindShowerStartFromXProjectionRelaxed (const pandora::Algorithm *const pAlgorithm, const ProtoShower &protoShower, const ProtoShower &protoShower1, const ProtoShower &protoShower2, const float maxSeparation, const float maxXSeparation, pandora::CartesianVector &showerStart3D) |
A relaxed approach to create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate. More... | |
static void | GetMinMiddleMax (const float value1, const float value2, const float value3, float &minValue, float &middleValue, float &maxValue) |
Determine the lowest, median and highest value from an input of three numbers. More... | |
LArConnectionPathwayHelper class.
Definition at line 21 of file LArConnectionPathwayHelper.h.
|
static |
Find the 2D spine hit that is closest to the neutrino vertex and shares a drift coordinate with an input 3D position.
protoShower | the input ProtoShower in which to search |
showerStart3D | the input 3D shower start position |
maxXSeparation | the max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit |
foundShowerStart | the output matched 2D hit position |
Definition at line 270 of file LArConnectionPathwayHelper.cc.
References f, lar_content::ProtoShower::GetConnectionPathway(), lar_content::ProtoShower::GetSpineHitList(), lar_content::ConnectionPathway::GetStartDirection(), and lar_content::ConnectionPathway::GetStartPosition().
|
static |
Create a 3D shower start position from each input 2D position, assuming consistency of initial direction.
pAlgorithm | the calling algorithm |
protoShowerU | the U view ProtoShower |
protoShowerV | the V view ProtoShower |
protoShowerW | the W view ProtoShower |
uShowerStart3D | the output 3D shower start created from the U view shower start position |
vShowerStart3D | the output 3D shower start created from the V view shower start position |
wShowerStart3D | the output 3D shower start created from the W view shower start position |
|
static |
Create a 3D shower start position from an input 2D position, assuming consistency of initial direction.
pAlgorithm | the calling algorithm |
protoShower | the input 2D position ProtoShower owner |
protoShowerA | the ProtoShower of another view |
protoShowerB | the ProtoShower in the remaining view |
showerStart3D | the output 3D shower start |
|
static |
Create 3D shower start position from three input 2D positions, assuming consistency of position.
pAlgorithm | the calling algorithm |
protoShowerU | the U view ProtoShower |
protoShowerV | the V view ProtoShower |
protoShowerW | the W view ProtoShower |
showerStart3D | the output 3D shower start position |
Definition at line 148 of file LArConnectionPathwayHelper.cc.
References f, lar_content::ProtoShower::GetShowerCore(), lar_content::ProtoShower::GetSpineHitList(), lar_content::ShowerCore::GetStartPosition(), and x.
|
static |
Create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate.
pAlgorithm | the calling algorithm |
protoShower | the ProtoShower from which the input 2D shower start is obtained |
protoShower1 | a matched ProtoShower from another view |
protoShower2 | the matched ProtoShower from the final view |
maxSeparation | the max. separation between the projected 3D shower start and the shower start of that view |
maxXSeparation | the max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit |
showerStart3D | the output 3D shower start |
Definition at line 228 of file LArConnectionPathwayHelper.cc.
References f, lar_content::ProtoShower::GetShowerCore(), lar_content::ProtoShower::GetSpineHitList(), and lar_content::ShowerCore::GetStartPosition().
|
static |
A relaxed approach to create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate.
pAlgorithm | the calling algorithm |
protoShower | the ProtoShower from which the input 2D shower start is obtained |
protoShower1 | a matched ProtoShower from another view |
protoShower2 | the matched ProtoShower from the final view |
maxSeparation | the max. separation between the projected 3D shower start and the shower start of that view |
maxXSeparation | the max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit |
ShowerStart3D | the output 3D shower start |
Definition at line 297 of file LArConnectionPathwayHelper.cc.
References f, lar_content::ProtoShower::GetShowerCore(), lar_content::ProtoShower::GetSpineHitList(), and lar_content::ShowerCore::GetStartPosition().
|
static |
Create 3D shower start position(s) from three input 2D positions.
pAlgorithm | the calling algorithm |
pShowerPfo | the shower pfo |
protoShowerMatch | the ProtoShowerMatch object |
nuVertexPosition | the 3D neutrino vertex |
maxSeparationFromHit | the max. separation between a projected 3D shower start and the closest 2D shower hit |
maxProjectionSeparation | the max. separation between the projected 3D shower start and the shower start of that view |
maxXSeparation | the max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit |
showerStarts3D | the output vector of 3D shower starts (ordered closest -> furthest from the neutrino vertex) |
Definition at line 45 of file LArConnectionPathwayHelper.cc.
References lar_content::DIRECTION, f, lar_content::ProtoShowerMatch::GetConsistencyType(), lar_content::ProtoShowerMatch::GetProtoShowerU(), lar_content::ProtoShowerMatch::GetProtoShowerV(), lar_content::ProtoShowerMatch::GetProtoShowerW(), lar_content::POSITION, and lar_content::X_PROJECTION.
Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineShower().
|
static |
Determine the lowest, median and highest value from an input of three numbers.
value1 | the first value |
value2 | the second value |
value3 | the third value |
minValue | the minimum value |
middleValue | the median value |
maxValue | the maximum value |
Definition at line 330 of file LArConnectionPathwayHelper.cc.
References util::values().
Referenced by lar_content::ConnectionRegionFeatureTool::Get2DKink(), lar_content::InitialRegionFeatureTool::InitialRegionFeatureTool(), and lar_content::ShowerRegionFeatureTool::ShowerRegionFeatureTool().
|
static |
Find a 2D shower start, from a drift coordinate by assuming consistency of initial direction.
protoShower | the ProtoShower for which to find the shower start |
x | the drift-coordinate |
showerStart2D | the output 2D shower start |
Definition at line 207 of file LArConnectionPathwayHelper.cc.
References f, lar_content::ProtoShower::GetConnectionPathway(), lar_content::ProtoShower::GetShowerCore(), lar_content::ConnectionPathway::GetStartDirection(), lar_content::ShowerCore::GetStartPosition(), and lar_content::ConnectionPathway::GetStartPosition().