LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 pandora::CartesianVector | GetCorrectedPosition (const pandora::LArTPC &larTPC, const float x0, const pandora::CartesianVector &inputPosition) |
Apply the X0 correction to an input position vector. More... | |
static bool | SortTPCs (const pandora::LArTPC *const pLhs, const pandora::LArTPC *const pRhs) |
Sort tpcs by central positions. 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 232 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(), and lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches().
|
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, MultiPandoraApi::GetPandoraInstanceMap(), and max.
|
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(), lar_content::LArPointingCluster::Vertex::GetPosition(), and min.
Referenced by lar_content::StitchingCosmicRayMergingTool::CalculateX0(), lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches(), and lar_content::StitchingCosmicRayMergingTool::OrderPfoMerges().
|
static |
Apply the X0 correction to an input position vector.
larTPC | the tpc |
x0 | the x0 value |
inputPosition | the input uncorrected position vector |
Definition at line 278 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::CreatePfoMatches().
|
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 |
Sort tpcs by central positions.
pLhs | address of first tpc |
pRhs | address of second tpc |
Definition at line 285 of file LArStitchingHelper.cc.
Referenced by lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches().