LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ThreeViewShowerHitsTool class. More...
#include "ThreeViewShowerHitsTool.h"
Public Types | |
typedef ThreeDHitCreationAlgorithm::ProtoHit | ProtoHit |
typedef ThreeDHitCreationAlgorithm::ProtoHitVector | ProtoHitVector |
typedef ThreeDHitCreationAlgorithm::TrajectorySample | TrajectorySample |
Public Member Functions | |
ThreeViewShowerHitsTool () | |
Default constructor. More... | |
virtual void | Run (ThreeDHitCreationAlgorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo, const pandora::CaloHitVector &inputTwoDHits, ProtoHitVector &protoHitVector) |
Run the algorithm tool. More... | |
Protected Member Functions | |
virtual void | GetShowerHits3D (const pandora::CaloHitVector &inputTwoDHits, const pandora::CaloHitVector &caloHitVector1, const pandora::CaloHitVector &caloHitVector2, ProtoHitVector &protoHitVector) const |
Create three dimensional hits, using a list of input two dimensional hits and the hits (contained in the same particle) from the other two views. More... | |
virtual void | GetBestPosition3D (const pandora::HitType hitType1, const pandora::HitType hitType2, const pandora::CartesianPointVector &fitPositionList1, const pandora::CartesianPointVector &fitPositionList2, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views. More... | |
virtual void | GetBestPosition3D (const pandora::HitType hitType1, const pandora::HitType hitType2, const pandora::CartesianVector &fitPosition1, const pandora::CartesianVector &fitPosition2, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views. More... | |
virtual void | GetBestPosition3D (const pandora::HitType hitType, const pandora::CartesianVector &fitPosition, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and a candidate fit position from another view. More... | |
Protected Attributes | |
double | m_sigmaX2 |
The sigmaX squared value, for calculation of chi2 deltaX term. More... | |
double | m_chiSquaredCut |
The chi squared cut (accept only values below the cut value) More... | |
Private Member Functions | |
void | GetShowerHit3D (const pandora::CaloHitVector &caloHitVector1, const pandora::CaloHitVector &caloHitVector2, ProtoHit &protoHit) const |
Get the three dimensional position for to a two dimensional calo hit, using the hit and a list of candidate matched hits in the other two views. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_zTolerance |
The z tolerance to use when looking for associated calo hits between views. More... | |
ThreeViewShowerHitsTool class.
Definition at line 19 of file ThreeViewShowerHitsTool.h.
Definition at line 24 of file HitCreationBaseTool.h.
|
inherited |
Definition at line 25 of file HitCreationBaseTool.h.
|
inherited |
Definition at line 26 of file HitCreationBaseTool.h.
lar_content::ThreeViewShowerHitsTool::ThreeViewShowerHitsTool | ( | ) |
Default constructor.
Definition at line 20 of file ThreeViewShowerHitsTool.cc.
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
hitType1 | the hit type identifying the first view |
hitType2 | the hit type identifying the second view |
fitPositionList1 | the candidate sliding fit position in the first view |
fitPositionList2 | the candidate sliding fit position in the second view |
protoHit | to receive the populated proto hit |
Referenced by GetShowerHit3D(), and lar_content::HitCreationBaseTool::~HitCreationBaseTool().
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
hitType1 | the hit type identifying the first view |
hitType2 | the hit type identifying the second view |
fitPosition1 | the candidate sliding fit position in the first view |
fitPosition2 | the candidate sliding fit position in the second view |
protoHit | to receive the populated proto hit |
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and a candidate fit position from another view.
hitType | the hit type identifying the other view |
fitPosition | the candidate sliding fit position in the other view |
protoHit | to receive the populated proto hit |
|
privatevirtual |
Get the three dimensional position for to a two dimensional calo hit, using the hit and a list of candidate matched hits in the other two views.
caloHitVector1 | the vector of candidate hits in view 1 |
caloHitVector2 | the vector of candidate hits in view 2 |
protoHit | to receive the populated proto hit |
Implements lar_content::ShowerHitsBaseTool.
Definition at line 27 of file ThreeViewShowerHitsTool.cc.
References lar_content::HitCreationBaseTool::GetBestPosition3D(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::GetChi2(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::GetParentCaloHit2D(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::IsPositionSet(), m_zTolerance, and lar_content::LArGeometryHelper::MergeTwoPositions().
|
protectedvirtualinherited |
Create three dimensional hits, using a list of input two dimensional hits and the hits (contained in the same particle) from the other two views.
inputTwoDHits | the list of input two dimensional hits |
caloHitVector1 | hits in the first alternate view |
caloHitVector2 | hits in the second alternate view |
protoHitVector | to receive the new three dimensional proto hits |
Definition at line 55 of file ShowerHitsBaseTool.cc.
References lar_content::ShowerHitsBaseTool::FilterCaloHits(), lar_content::ShowerHitsBaseTool::GetShowerHit3D(), lar_content::HitCreationBaseTool::m_chiSquaredCut, and lar_content::ShowerHitsBaseTool::m_xTolerance.
Referenced by lar_content::ShowerHitsBaseTool::Run().
|
privatevirtual |
Reimplemented from lar_content::ShowerHitsBaseTool.
Definition at line 62 of file ThreeViewShowerHitsTool.cc.
References m_zTolerance, and lar_content::ShowerHitsBaseTool::ReadSettings().
|
virtualinherited |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
pPfo | the address of the pfo |
inputTwoDHits | the vector of input two dimensional hits |
protoHitVector | to receive the new three dimensional proto hits |
Implements lar_content::HitCreationBaseTool.
Definition at line 28 of file ShowerHitsBaseTool.cc.
References lar_content::ThreeDHitCreationAlgorithm::FilterCaloHitsByType(), lar_content::ShowerHitsBaseTool::GetShowerHits3D(), and lar_content::LArPfoHelper::IsShower().
|
protectedinherited |
The chi squared cut (accept only values below the cut value)
Definition at line 86 of file HitCreationBaseTool.h.
Referenced by lar_content::ShowerHitsBaseTool::GetShowerHits3D(), lar_content::LongitudinalTrackHitsBaseTool::GetTrackHits3D(), and lar_content::HitCreationBaseTool::ReadSettings().
|
protectedinherited |
The sigmaX squared value, for calculation of chi2 deltaX term.
Definition at line 85 of file HitCreationBaseTool.h.
Referenced by lar_content::HitCreationBaseTool::ReadSettings(), and lar_content::HitCreationBaseTool::~HitCreationBaseTool().
|
private |
The z tolerance to use when looking for associated calo hits between views.
Definition at line 32 of file ThreeViewShowerHitsTool.h.
Referenced by GetShowerHit3D(), and ReadSettings().