LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
HitCreationBaseTool class. More...
#include "HitCreationBaseTool.h"
Public Types | |
typedef ThreeDHitCreationAlgorithm::ProtoHit | ProtoHit |
typedef ThreeDHitCreationAlgorithm::ProtoHitVector | ProtoHitVector |
typedef ThreeDHitCreationAlgorithm::TrajectorySample | TrajectorySample |
Public Member Functions | |
HitCreationBaseTool () | |
Default constructor. More... | |
virtual | ~HitCreationBaseTool () |
Destructor. More... | |
virtual void | Run (ThreeDHitCreationAlgorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo, const pandora::CaloHitVector &inputTwoDHits, ProtoHitVector &protoHitVector)=0 |
Run the algorithm tool. More... | |
Protected Member Functions | |
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... | |
virtual pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
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... | |
HitCreationBaseTool class.
Definition at line 21 of file HitCreationBaseTool.h.
Definition at line 24 of file HitCreationBaseTool.h.
Definition at line 25 of file HitCreationBaseTool.h.
typedef ThreeDHitCreationAlgorithm::TrajectorySample lar_content::HitCreationBaseTool::TrajectorySample |
Definition at line 26 of file HitCreationBaseTool.h.
lar_content::HitCreationBaseTool::HitCreationBaseTool | ( | ) |
Default constructor.
Definition at line 20 of file HitCreationBaseTool.cc.
|
virtual |
Destructor.
Definition at line 28 of file HitCreationBaseTool.cc.
References lar_content::ThreeDHitCreationAlgorithm::ProtoHit::AddTrajectorySample(), f, GetBestPosition3D(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::GetChi2(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::GetParentCaloHit2D(), lar_content::LArGeometryHelper::GetSigmaUVW(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::IsPositionSet(), m_sigmaX2, lar_content::LArGeometryHelper::MergeTwoPositions3D(), lar_content::ThreeDHitCreationAlgorithm::ProtoHit::SetPosition3D(), and w.
|
protectedvirtual |
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 lar_content::ThreeViewShowerHitsTool::GetShowerHit3D(), and ~HitCreationBaseTool().
|
protectedvirtual |
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 |
|
protectedvirtual |
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 |
|
protectedvirtual |
Reimplemented in lar_content::TrackHitsBaseTool, lar_content::ShowerHitsBaseTool, lar_content::LongitudinalTrackHitsBaseTool, and lar_content::ThreeViewShowerHitsTool.
Definition at line 141 of file HitCreationBaseTool.cc.
References m_chiSquaredCut, and m_sigmaX2.
Referenced by lar_content::ShowerHitsBaseTool::ReadSettings(), and lar_content::TrackHitsBaseTool::ReadSettings().
|
pure virtual |
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 |
Implemented in lar_content::TrackHitsBaseTool, lar_content::ShowerHitsBaseTool, and lar_content::DeltaRayShowerHitsTool.
|
protected |
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 ReadSettings().
|
protected |
The sigmaX squared value, for calculation of chi2 deltaX term.
Definition at line 85 of file HitCreationBaseTool.h.
Referenced by ReadSettings(), and ~HitCreationBaseTool().