LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
LArStitchingHelper class. More...
#include "LArStitchingHelper.h"
Static Public Member Functions | |
static const pandora::LArTPC & | FindClosestTPC (const pandora::Pandora &pandora, const pandora::LArTPC &inputTPC, const bool checkPositive) |
Find closest tpc to a specified input tpc. More... | |
static bool | CanTPCsBeStitched (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC) |
Whether particles from a given pair of tpcs can be stitched together. More... | |
static bool | AreTPCsAdjacent (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC) |
Whether a pair of drift volumes are adjacent to each other. More... | |
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. More... | |
static float | GetTPCBoundaryCenterX (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC) |
Determine centre in X at the boundary between a pair of tpcs. More... | |
static float | GetTPCBoundaryWidthX (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC) |
Determine width in X at the boundary between a pair of tpcs. More... | |
static float | GetTPCDisplacement (const pandora::LArTPC &firstTPC, const pandora::LArTPC &secondTPC) |
Calculate distance between central positions of a pair of tpcs. More... | |
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. More... | |
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. More... | |
static bool | SortTPCs (const pandora::LArTPC *const pLhs, const pandora::LArTPC *const pRhs) |
Sort tpcs by central positions. More... | |
static bool | HasPfoBeenStitched (const pandora::ParticleFlowObject *const pPfo) |
Whether a pfo has been stitched. More... | |
static float | GetPfoX0 (const pandora::ParticleFlowObject *const pPfo) |
Return the x0 for a pfo. More... | |
LArStitchingHelper class.
Definition at line 23 of file LArStitchingHelper.h.
|
static |
Whether a pair of drift volumes are adjacent to each other.
firstTPC | the first tpc |
secondTPC | the second tpc |
|
static |
Whether a pair of drift volumes are adjacent to each other.
pandora | the pandora stitching instance |
firstTPC | the first tpc |
secondTPC | the second tpc |
|
static |
Calculate X0 for a pair of vertices.
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 |
Definition at line 231 of file LArStitchingHelper.cc.
References f, lar_content::LArPointingCluster::Vertex::GetDirection(), lar_content::LArPointingCluster::Vertex::GetPosition(), X1, and X2.
Referenced by lar_content::StitchingCosmicRayMergingTool::CalculateX0().
|
static |
Whether particles from a given pair of tpcs can be stitched together.
firstTPC | the first tpc |
secondTPC | the second tpc |
Definition at line 69 of file LArStitchingHelper.cc.
References f.
Referenced by lar_content::StitchingCosmicRayMergingTool::CalculateX0(), lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches(), and lar_content::StitchingCosmicRayMergingTool::StitchPfos().
|
static |
Find closest tpc to a specified input tpc.
pandora | the pandora stitching instance |
inputTPC | the specified drift volume |
checkPositive | look in higher (lower) x positions if this is set to true (false) |
Definition at line 23 of file LArStitchingHelper.cc.
References f, and MultiPandoraApi::GetPandoraInstanceMap().
|
static |
Given a pair of pointing clusters, find the pair of vertices with smallest yz-separation.
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.
References f, lar_content::LArPointingCluster::GetInnerVertex(), lar_content::LArPointingCluster::GetOuterVertex(), and lar_content::LArPointingCluster::Vertex::GetPosition().
Referenced by lar_content::StitchingCosmicRayMergingTool::CalculateX0(), lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches(), and lar_content::StitchingCosmicRayMergingTool::OrderPfoMerges().
|
static |
Return the x0 for a pfo.
pPfo | the address of the Pfo |
Definition at line 305 of file LArStitchingHelper.cc.
|
static |
Determine centre in X at the boundary between a pair of tpcs.
firstTPC | the first tpc |
secondTPC | the second tpc |
Definition at line 133 of file LArStitchingHelper.cc.
Referenced by lar_content::StitchingCosmicRayMergingTool::CalculateX0(), lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches(), and lar_content::StitchingCosmicRayMergingTool::ShiftPfo().
|
static |
Determine width in X at the boundary between a pair of tpcs.
firstTPC | the first tpc |
secondTPC | the second tpc |
Definition at line 150 of file LArStitchingHelper.cc.
Referenced by lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches().
|
static |
Calculate distance between central positions of a pair of tpcs.
firstTPC | the first tpc |
secondTPC | the second tpc |
Definition at line 167 of file LArStitchingHelper.cc.
Referenced by lar_content::StitchingCosmicRayMergingTool::OrderPfoMerges().
|
static |
Whether a pfo has been stitched.
pPfo | the address of the Pfo |
Definition at line 292 of file LArStitchingHelper.cc.
Referenced by lar_content::MasterAlgorithm::RunCosmicRayHitRemoval().
|
static |
Sort tpcs by central positions.
pLhs | address of first tpc |
pRhs | address of second tpc |
Definition at line 279 of file LArStitchingHelper.cc.
Referenced by lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches().