Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::LArConnectionPathwayHelper Class Reference

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 

Detailed Description

LArConnectionPathwayHelper class.

Definition at line 21 of file LArConnectionPathwayHelper.h.

Member Function Documentation

◆ FindClosestSpinePosition()

bool lar_content::LArConnectionPathwayHelper::FindClosestSpinePosition ( const ProtoShower protoShower,
const pandora::CartesianVector showerStart3D,
const float  maxXSeparation,
pandora::CartesianVector foundShowerStart 
)
static

Find the 2D spine hit that is closest to the neutrino vertex and shares a drift coordinate with an input 3D position.

Parameters
protoShowerthe input ProtoShower in which to search
showerStart3Dthe input 3D shower start position
maxXSeparationthe max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit
foundShowerStartthe output matched 2D hit position
Returns
whether a 2D spine hit could be found

Definition at line 270 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerStartFromDirection() [1/2]

bool lar_content::LArConnectionPathwayHelper::FindShowerStartFromDirection ( const pandora::Algorithm *const  pAlgorithm,
const ProtoShower protoShower,
const ProtoShower protoShowerA,
const ProtoShower protoShowerB,
pandora::CartesianVector showerStart3D 
)
static

Create a 3D shower start position from an input 2D position, assuming consistency of initial direction.

Parameters
pAlgorithmthe calling algorithm
protoShowerthe input 2D position ProtoShower owner
protoShowerAthe ProtoShower of another view
protoShowerBthe ProtoShower in the remaining view
showerStart3Dthe output 3D shower start
Returns
whether a 3D shower start position could be created

Definition at line 181 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:

◆ FindShowerStartFromDirection() [2/2]

bool lar_content::LArConnectionPathwayHelper::FindShowerStartFromDirection ( const pandora::Algorithm *const  pAlgorithm,
const ProtoShower protoShowerU,
const ProtoShower protoShowerV,
const ProtoShower protoShowerW,
pandora::CartesianVector uShowerStart3D,
pandora::CartesianVector vShowerStart3D,
pandora::CartesianVector wShowerStart3D 
)
static

Create a 3D shower start position from each input 2D position, assuming consistency of initial direction.

Parameters
pAlgorithmthe calling algorithm
protoShowerUthe U view ProtoShower
protoShowerVthe V view ProtoShower
protoShowerWthe W view ProtoShower
uShowerStart3Dthe output 3D shower start created from the U view shower start position
vShowerStart3Dthe output 3D shower start created from the V view shower start position
wShowerStart3Dthe output 3D shower start created from the W view shower start position
Returns
whether the 3D shower start positions could be created

Definition at line 162 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerStartFromPosition()

void lar_content::LArConnectionPathwayHelper::FindShowerStartFromPosition ( const pandora::Algorithm *const  pAlgorithm,
const ProtoShower protoShowerU,
const ProtoShower protoShowerV,
const ProtoShower protoShowerW,
pandora::CartesianVector showerStart3D 
)
static

Create 3D shower start position from three input 2D positions, assuming consistency of position.

Parameters
pAlgorithmthe calling algorithm
protoShowerUthe U view ProtoShower
protoShowerVthe V view ProtoShower
protoShowerWthe W view ProtoShower
showerStart3Dthe output 3D shower start position

Definition at line 148 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerStartFromXProjection()

bool lar_content::LArConnectionPathwayHelper::FindShowerStartFromXProjection ( const pandora::Algorithm *const  pAlgorithm,
const ProtoShower protoShower,
const ProtoShower protoShower1,
const ProtoShower protoShower2,
const float  maxSeparation,
const float  maxXSeparation,
pandora::CartesianVector showerStart3D 
)
static

Create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate.

Parameters
pAlgorithmthe calling algorithm
protoShowerthe ProtoShower from which the input 2D shower start is obtained
protoShower1a matched ProtoShower from another view
protoShower2the matched ProtoShower from the final view
maxSeparationthe max. separation between the projected 3D shower start and the shower start of that view
maxXSeparationthe max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit
showerStart3Dthe output 3D shower start
Returns
whether the 3D shower start positions could be created

Definition at line 228 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerStartFromXProjectionRelaxed()

bool lar_content::LArConnectionPathwayHelper::FindShowerStartFromXProjectionRelaxed ( const pandora::Algorithm *const  pAlgorithm,
const ProtoShower protoShower,
const ProtoShower protoShower1,
const ProtoShower protoShower2,
const float  maxSeparation,
const float  maxXSeparation,
pandora::CartesianVector showerStart3D 
)
static

A relaxed approach to create a 3D shower start position from an input 2D position, assuming consistency of the drift coordinate.

Parameters
pAlgorithmthe calling algorithm
protoShowerthe ProtoShower from which the input 2D shower start is obtained
protoShower1a matched ProtoShower from another view
protoShower2the matched ProtoShower from the final view
maxSeparationthe max. separation between the projected 3D shower start and the shower start of that view
maxXSeparationthe max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit
ShowerStart3Dthe output 3D shower start
Returns
whether the 3D shower start position could be created

Definition at line 297 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindShowerStarts3D()

bool lar_content::LArConnectionPathwayHelper::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 
)
static

Create 3D shower start position(s) from three input 2D positions.

Parameters
pAlgorithmthe calling algorithm
pShowerPfothe shower pfo
protoShowerMatchthe ProtoShowerMatch object
nuVertexPositionthe 3D neutrino vertex
maxSeparationFromHitthe max. separation between a projected 3D shower start and the closest 2D shower hit
maxProjectionSeparationthe max. separation between the projected 3D shower start and the shower start of that view
maxXSeparationthe max. drift-coordinate separation between a 3D shower start and a matched 2D shower hit
showerStarts3Dthe output vector of 3D shower starts (ordered closest -> furthest from the neutrino vertex)
Returns
whether a consistent 3D shower start position could be created

Definition at line 45 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMinMiddleMax()

void lar_content::LArConnectionPathwayHelper::GetMinMiddleMax ( const float  value1,
const float  value2,
const float  value3,
float &  minValue,
float &  middleValue,
float &  maxValue 
)
static

Determine the lowest, median and highest value from an input of three numbers.

Parameters
value1the first value
value2the second value
value3the third value
minValuethe minimum value
middleValuethe median value
maxValuethe maximum value

Definition at line 330 of file LArConnectionPathwayHelper.cc.

Here is the caller graph for this function:

◆ ProjectShowerStartByDirection()

bool lar_content::LArConnectionPathwayHelper::ProjectShowerStartByDirection ( const ProtoShower protoShower,
const float  x,
pandora::CartesianVector showerStart2D 
)
static

Find a 2D shower start, from a drift coordinate by assuming consistency of initial direction.

Parameters
protoShowerthe ProtoShower for which to find the shower start
xthe drift-coordinate
showerStart2Dthe output 2D shower start
Returns
whether a 2D shower start position could be found

Definition at line 207 of file LArConnectionPathwayHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: