TwoViewShowerHitsTool class.
More...
#include "TwoViewShowerHitsTool.h"
|
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...
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
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...
|
|
|
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...
|
|
void | GetShowerHit3D (const pandora::CaloHitVector &caloHitVector, 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 one of the other two views. More...
|
|
virtual void lar_content::HitCreationBaseTool::GetBestPosition3D |
( |
const pandora::HitType |
hitType1, |
|
|
const pandora::HitType |
hitType2, |
|
|
const pandora::CartesianPointVector & |
fitPositionList1, |
|
|
const pandora::CartesianPointVector & |
fitPositionList2, |
|
|
ProtoHit & |
protoHit |
|
) |
| const |
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
- Parameters
-
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 lar_content::HitCreationBaseTool::~HitCreationBaseTool().
virtual void lar_content::HitCreationBaseTool::GetBestPosition3D |
( |
const pandora::HitType |
hitType1, |
|
|
const pandora::HitType |
hitType2, |
|
|
const pandora::CartesianVector & |
fitPosition1, |
|
|
const pandora::CartesianVector & |
fitPosition2, |
|
|
ProtoHit & |
protoHit |
|
) |
| const |
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
- Parameters
-
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 |
virtual void lar_content::HitCreationBaseTool::GetBestPosition3D |
( |
const pandora::HitType |
hitType, |
|
|
const pandora::CartesianVector & |
fitPosition, |
|
|
ProtoHit & |
protoHit |
|
) |
| const |
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and a candidate fit position from another view.
- Parameters
-
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 |
void lar_content::TwoViewShowerHitsTool::GetShowerHit3D |
( |
const pandora::CaloHitVector & |
caloHitVector1, |
|
|
const pandora::CaloHitVector & |
caloHitVector2, |
|
|
ProtoHit & |
protoHit |
|
) |
| const |
|
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.
- Parameters
-
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.
void lar_content::TwoViewShowerHitsTool::GetShowerHit3D |
( |
const pandora::CaloHitVector & |
caloHitVector, |
|
|
ProtoHit & |
protoHit |
|
) |
| const |
|
private |
Get the three dimensional position for to a two dimensional calo hit, using the hit and a list of candidate matched hits in one of the other two views.
- Parameters
-
caloHitVector | the vector of candidate hits in another view |
protoHit | to receive the populated proto hit |
void lar_content::ShowerHitsBaseTool::GetShowerHits3D |
( |
const pandora::CaloHitVector & |
inputTwoDHits, |
|
|
const pandora::CaloHitVector & |
caloHitVector1, |
|
|
const pandora::CaloHitVector & |
caloHitVector2, |
|
|
ProtoHitVector & |
protoHitVector |
|
) |
| const |
|
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.
- Parameters
-
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().
58 for (
const CaloHit *
const pCaloHit2D : inputTwoDHits)
62 CaloHitVector filteredHits1, filteredHits2;
70 protoHitVector.push_back(protoHit);
72 catch (StatusCodeException &)
ThreeDHitCreationAlgorithm::ProtoHit ProtoHit
float m_xTolerance
The x tolerance to use when looking for associated calo hits between views.
double m_chiSquaredCut
The chi squared cut (accept only values below the cut value)
void FilterCaloHits(const float x, const float xTolerance, const pandora::CaloHitVector &inputCaloHitVector, pandora::CaloHitVector &outputCaloHitVector) const
Filter a list of calo hits to find those within a specified tolerance of a give x position...
virtual void GetShowerHit3D(const pandora::CaloHitVector &caloHitVector1, const pandora::CaloHitVector &caloHitVector2, ProtoHit &protoHit) const =0
Get the three dimensional position for to a two dimensional calo hit, using the hit and a list of can...
StatusCode lar_content::ShowerHitsBaseTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
protectedvirtualinherited |
void lar_content::ShowerHitsBaseTool::Run |
( |
ThreeDHitCreationAlgorithm *const |
pAlgorithm, |
|
|
const pandora::ParticleFlowObject *const |
pPfo, |
|
|
const pandora::CaloHitVector & |
inputTwoDHits, |
|
|
ProtoHitVector & |
protoHitVector |
|
) |
| |
|
virtualinherited |
Run the algorithm tool.
- Parameters
-
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().
31 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
32 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() << std::endl;
39 CaloHitVector caloHitVectorU, caloHitVectorV, caloHitVectorW;
40 pAlgorithm->FilterCaloHitsByType(inputTwoDHits, TPC_VIEW_U, caloHitVectorU);
41 pAlgorithm->FilterCaloHitsByType(inputTwoDHits, TPC_VIEW_V, caloHitVectorV);
42 pAlgorithm->FilterCaloHitsByType(inputTwoDHits, TPC_VIEW_W, caloHitVectorW);
44 this->
GetShowerHits3D(caloHitVectorU, caloHitVectorV, caloHitVectorW, protoHitVector);
45 this->
GetShowerHits3D(caloHitVectorV, caloHitVectorU, caloHitVectorW, protoHitVector);
46 this->
GetShowerHits3D(caloHitVectorW, caloHitVectorU, caloHitVectorV, protoHitVector);
48 catch (StatusCodeException &)
static bool IsShower(const pandora::ParticleFlowObject *const pPfo)
Return shower flag based on Pfo Particle ID.
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 ...
double lar_content::HitCreationBaseTool::m_chiSquaredCut |
|
protectedinherited |
double lar_content::HitCreationBaseTool::m_sigmaX2 |
|
protectedinherited |
The documentation for this class was generated from the following file: