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

LArStitchingHelper class. More...

#include "LArStitchingHelper.h"

Static Public Member Functions

static const pandora::LArTPCFindClosestTPC (const pandora::Pandora &pandora, const pandora::LArTPC &inputTPC, const bool checkPositive)
 Find closest tpc to a specified input tpc.
 
static bool CanTPCsBeStitched (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Whether particles from a given pair of tpcs can be stitched together.
 
static bool AreTPCsAdjacent (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Whether a pair of drift volumes are adjacent to each other.
 
static bool AreTPCsAdjacent (const pandora::Pandora &pandora, const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Whether a pair of drift volumes are adjacent to each other.
 
static float GetTPCBoundaryCenterX (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Determine centre in X at the boundary between a pair of tpcs.
 
static float GetTPCBoundaryWidthX (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Determine width in X at the boundary between a pair of tpcs.
 
static float GetTPCDisplacement (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC)
 Calculate distance between central positions of a pair of tpcs.
 
static void GetClosestVertices (const pandora::LArTPC &larTPC1, const pandora::LArTPC &larTPC2, const LArPointingCluster &pointingCluster1, const LArPointingCluster &pointingCluster2, LArPointingCluster::Vertex &closestVertex1, LArPointingCluster::Vertex &closestVertex2)
 Given a pair of pointing clusters, find the pair of vertices with smallest yz-separation.
 
static float CalculateX0 (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC, const LArPointingCluster::Vertex &firstVertex, const LArPointingCluster::Vertex &secondVertex)
 Calculate X0 for a pair of vertices.
 
static bool SortTPCs (const pandora::LArTPC *const pLhs, const pandora::LArTPC *const pRhs)
 Sort tpcs by central positions.
 
static bool HasPfoBeenStitched (const pandora::ParticleFlowObject *const pPfo)
 Whether a pfo has been stitched.
 
static float GetPfoX0 (const pandora::ParticleFlowObject *const pPfo)
 Return the x0 for a pfo.
 

Detailed Description

LArStitchingHelper class.

Definition at line 23 of file LArStitchingHelper.h.

Member Function Documentation

◆ AreTPCsAdjacent() [1/2]

bool lar_content::LArStitchingHelper::AreTPCsAdjacent ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Whether a pair of drift volumes are adjacent to each other.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
Returns
boolean

Definition at line 83 of file LArStitchingHelper.cc.

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

◆ AreTPCsAdjacent() [2/2]

bool lar_content::LArStitchingHelper::AreTPCsAdjacent ( const pandora::Pandora pandora,
const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Whether a pair of drift volumes are adjacent to each other.

Parameters
pandorathe pandora stitching instance
firstTPCthe first tpc
secondTPCthe second tpc
Returns
boolean

Definition at line 100 of file LArStitchingHelper.cc.

Here is the call graph for this function:

◆ CalculateX0()

float lar_content::LArStitchingHelper::CalculateX0 ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC,
const LArPointingCluster::Vertex firstVertex,
const LArPointingCluster::Vertex secondVertex 
)
static

Calculate X0 for a pair of vertices.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
firstVertexthe relevant vertex from the first pointing cluster
secondVertexthe relevant vertex from the second pointing cluster
Returns
X0 value for this pair of vertices

Definition at line 231 of file LArStitchingHelper.cc.

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

◆ CanTPCsBeStitched()

bool lar_content::LArStitchingHelper::CanTPCsBeStitched ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Whether particles from a given pair of tpcs can be stitched together.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
Returns
boolean

Definition at line 69 of file LArStitchingHelper.cc.

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

◆ FindClosestTPC()

const LArTPC & lar_content::LArStitchingHelper::FindClosestTPC ( const pandora::Pandora pandora,
const pandora::LArTPC inputTPC,
const bool  checkPositive 
)
static

Find closest tpc to a specified input tpc.

Parameters
pandorathe pandora stitching instance
inputTPCthe specified drift volume
checkPositivelook in higher (lower) x positions if this is set to true (false)
Returns
the closest tpc

Definition at line 23 of file LArStitchingHelper.cc.

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

◆ GetClosestVertices()

void lar_content::LArStitchingHelper::GetClosestVertices ( const pandora::LArTPC larTPC1,
const pandora::LArTPC larTPC2,
const LArPointingCluster pointingCluster1,
const LArPointingCluster pointingCluster2,
LArPointingCluster::Vertex closestVertex1,
LArPointingCluster::Vertex closestVertex2 
)
static

Given a pair of pointing clusters, find the pair of vertices with smallest yz-separation.

Parameters
larTPC1the first tpc
larTPC2the second tpc
pointingCluster1the pointing cluster in the first tpc
pointingCluster2the pointing cluster in the second tpc
closestVertex1to receive the relevant vertex from the first pointing cluster
closestVertex2to receive the relevant vertex from the second pointing cluster

Definition at line 178 of file LArStitchingHelper.cc.

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

◆ GetPfoX0()

float lar_content::LArStitchingHelper::GetPfoX0 ( const pandora::ParticleFlowObject *const  pPfo)
static

Return the x0 for a pfo.

Parameters
pPfothe address of the Pfo

Definition at line 305 of file LArStitchingHelper.cc.

Here is the call graph for this function:

◆ GetTPCBoundaryCenterX()

float lar_content::LArStitchingHelper::GetTPCBoundaryCenterX ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Determine centre in X at the boundary between a pair of tpcs.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
Returns
boundary X centre

Definition at line 133 of file LArStitchingHelper.cc.

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

◆ GetTPCBoundaryWidthX()

float lar_content::LArStitchingHelper::GetTPCBoundaryWidthX ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Determine width in X at the boundary between a pair of tpcs.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
Returns
boundary X width

Definition at line 150 of file LArStitchingHelper.cc.

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

◆ GetTPCDisplacement()

float lar_content::LArStitchingHelper::GetTPCDisplacement ( const pandora::LArTPC firstTPC,
const pandora::LArTPC secondTPC 
)
static

Calculate distance between central positions of a pair of tpcs.

Parameters
firstTPCthe first tpc
secondTPCthe second tpc
Returns
the distance

Definition at line 167 of file LArStitchingHelper.cc.

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

◆ HasPfoBeenStitched()

bool lar_content::LArStitchingHelper::HasPfoBeenStitched ( const pandora::ParticleFlowObject *const  pPfo)
static

Whether a pfo has been stitched.

Parameters
pPfothe address of the Pfo
Returns
boolean

Definition at line 292 of file LArStitchingHelper.cc.

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

◆ SortTPCs()

bool lar_content::LArStitchingHelper::SortTPCs ( const pandora::LArTPC *const  pLhs,
const pandora::LArTPC *const  pRhs 
)
static

Sort tpcs by central positions.

Parameters
pLhsaddress of first tpc
pRhsaddress of second tpc

Definition at line 279 of file LArStitchingHelper.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: