Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
ShowerHitsBaseTool.h
Go to the documentation of this file.
1
8#ifndef SHOWER_HITS_BASE_TOOL_H
9#define SHOWER_HITS_BASE_TOOL_H 1
10
12
13namespace lar_content
14{
15
20{
21public:
26
27 virtual void Run(ThreeDHitCreationAlgorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo,
28 const pandora::CaloHitVector &inputTwoDHits, ProtoHitVector &protoHitVector);
29
30protected:
39 virtual void GetShowerHit3D(const pandora::CaloHitVector &caloHitVector1, const pandora::CaloHitVector &caloHitVector2, ProtoHit &protoHit) const = 0;
40
50 virtual void GetShowerHits3D(const pandora::CaloHitVector &inputTwoDHits, const pandora::CaloHitVector &caloHitVector1,
51 const pandora::CaloHitVector &caloHitVector2, ProtoHitVector &protoHitVector) const;
52
54
55private:
64 void FilterCaloHits(const float x, const float xTolerance, const pandora::CaloHitVector &inputCaloHitVector,
65 pandora::CaloHitVector &outputCaloHitVector) const;
66
68};
69
70} // namespace lar_content
71
72#endif // #ifndef SHOWER_HITS_BASE_TOOL_H
Header file for the hit creation base tool.
ThreeDHitCreationAlgorithm::ProtoHitVector ProtoHitVector
ShowerHitsBaseTool class.
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...
float m_xTolerance
The x tolerance to use when looking for associated calo hits between views.
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 ...
ShowerHitsBaseTool()
Default constructor.
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.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
virtual void Run(ThreeDHitCreationAlgorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo, const pandora::CaloHitVector &inputTwoDHits, ProtoHitVector &protoHitVector)
Run the algorithm tool.
Proto hits are temporary constructs to be used during iterative 3D hit procedure.
ThreeDHitCreationAlgorithm::Algorithm class.
ParticleFlowObject class.
std::vector< const CaloHit * > CaloHitVector
StatusCode
The StatusCode enum.