ParallelHitsSeedFinderAlg.h
Go to the documentation of this file.
1 /**
2  * @file ParallelHitsSeedFinderAlg.h
3  *
4  * @brief This is an algorithm for finding recob::Seed objects in 3D clusters
5  *
6  */
7 #ifndef ParallelHitsSeedFinderAlg_h
8 #define ParallelHitsSeedFinderAlg_h
9 
10 // Framework Includes
11 #include "fhiclcpp/fwd.h"
12 
13 // LArSoft includes
17 
18 //------------------------------------------------------------------------------------------------------------------------------------------
19 
20 namespace lar_cluster3d {
21 
22  /**
23  * @brief ParallelHitsSeedFinderAlg class
24  */
25  class ParallelHitsSeedFinderAlg final : public SeedFinderAlgBase {
26  public:
27  /**
28  * @brief Constructor
29  *
30  * @param pset
31  */
32  explicit ParallelHitsSeedFinderAlg(fhicl::ParameterSet const& pset);
33 
34  /**
35  * @brief Given the list of hits this will search for candidate Seed objects and return them
36  */
37  bool findTrackSeeds(reco::HitPairListPtr& hitPairListPtr,
38  reco::PrincipalComponents& inputPCA,
39  SeedHitPairListPairVec& seedHitMap) const override;
40 
41  private:
42  size_t m_maxNumEdgeHits; ///< Maximum number hits each end of PCA axis
43  double m_gapDistance; ///< Maximum allowed distance between hits
44  size_t m_numSeed2DHits; ///< Number 2D seed hits desired
45 
46  PrincipalComponentsAlg m_pcaAlg; // For running Principal Components Analysis
47  };
48 
49 } // namespace lar_cluster3d
50 #endif
double m_gapDistance
Maximum allowed distance between hits.
size_t m_maxNumEdgeHits
Maximum number hits each end of PCA axis.
ParallelHitsSeedFinderAlg(fhicl::ParameterSet const &pset)
Constructor.
std::list< const reco::ClusterHit3D * > HitPairListPtr
Definition: Cluster3D.h:335
size_t m_numSeed2DHits
Number 2D seed hits desired.
std::vector< SeedHitPairListPair > SeedHitPairListPairVec
virtual bool findTrackSeeds(reco::HitPairListPtr &hitPairListPtr, reco::PrincipalComponents &inputPCA, SeedHitPairListPairVec &seedHitMap) const
Given the list of hits this will search for candidate Seed objects and return them.