LArStitchingHelper class.
More...
#include "LArStitchingHelper.h"
|
static const pandora::LArTPC & | FindClosestTPC (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.
|
|
◆ AreTPCsAdjacent() [1/2]
Whether a pair of drift volumes are adjacent to each other.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- boolean
Definition at line 83 of file LArStitchingHelper.cc.
◆ AreTPCsAdjacent() [2/2]
Whether a pair of drift volumes are adjacent to each other.
- Parameters
-
pandora | the pandora stitching instance |
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- boolean
Definition at line 100 of file LArStitchingHelper.cc.
◆ CalculateX0()
Calculate X0 for a pair of vertices.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
firstVertex | the relevant vertex from the first pointing cluster |
secondVertex | the relevant vertex from the second pointing cluster |
- Returns
- X0 value for this pair of vertices
Definition at line 231 of file LArStitchingHelper.cc.
◆ CanTPCsBeStitched()
Whether particles from a given pair of tpcs can be stitched together.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- boolean
Definition at line 69 of file LArStitchingHelper.cc.
◆ FindClosestTPC()
Find closest tpc to a specified input tpc.
- Parameters
-
pandora | the pandora stitching instance |
inputTPC | the specified drift volume |
checkPositive | look in higher (lower) x positions if this is set to true (false) |
- Returns
- the closest tpc
Definition at line 23 of file LArStitchingHelper.cc.
◆ GetClosestVertices()
Given a pair of pointing clusters, find the pair of vertices with smallest yz-separation.
- Parameters
-
larTPC1 | the first tpc |
larTPC2 | the second tpc |
pointingCluster1 | the pointing cluster in the first tpc |
pointingCluster2 | the pointing cluster in the second tpc |
closestVertex1 | to receive the relevant vertex from the first pointing cluster |
closestVertex2 | to receive the relevant vertex from the second pointing cluster |
Definition at line 178 of file LArStitchingHelper.cc.
◆ GetPfoX0()
◆ GetTPCBoundaryCenterX()
Determine centre in X at the boundary between a pair of tpcs.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- boundary X centre
Definition at line 133 of file LArStitchingHelper.cc.
◆ GetTPCBoundaryWidthX()
Determine width in X at the boundary between a pair of tpcs.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- boundary X width
Definition at line 150 of file LArStitchingHelper.cc.
◆ GetTPCDisplacement()
Calculate distance between central positions of a pair of tpcs.
- Parameters
-
firstTPC | the first tpc |
secondTPC | the second tpc |
- Returns
- the distance
Definition at line 167 of file LArStitchingHelper.cc.
◆ HasPfoBeenStitched()
Whether a pfo has been stitched.
- Parameters
-
pPfo | the address of the Pfo |
- Returns
- boolean
Definition at line 292 of file LArStitchingHelper.cc.
◆ SortTPCs()
Sort tpcs by central positions.
- Parameters
-
pLhs | address of first tpc |
pRhs | address of second tpc |
Definition at line 279 of file LArStitchingHelper.cc.
The documentation for this class was generated from the following files: