LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SkeletonAlg.h
Go to the documentation of this file.
1 
7 #ifndef SkeletonAlg_h
8 #define SkeletonAlg_h
9 
10 // Framework Includes
11 #include "fhiclcpp/ParameterSet.h"
12 
13 // LArSoft includes
15 
16 // Algorithm includes
18 
19 // std includes
20 #include <string>
21 #include <functional>
22 #include <iostream>
23 #include <memory>
24 
25 //------------------------------------------------------------------------------------------------------------------------------------------
26 
27 namespace lar_cluster3d
28 {
29 
34 {
35 public:
41  SkeletonAlg(fhicl::ParameterSet const &pset);
42 
46  virtual ~SkeletonAlg();
47 
51  void reconfigure(fhicl::ParameterSet const &pset);
52 
58  int FindMedialSkeleton(reco::HitPairListPtr& hitPairList) const;
59 
67  void GetSkeletonHits(const reco::HitPairListPtr& inputHitList, reco::HitPairListPtr& skeletonHitList) const;
68 
75  void AverageSkeletonPositions(reco::HitPairListPtr& skeletonHitList) const;
76 
77 private:
78 
83  double FindFirstAndLastWires(std::vector<const reco::ClusterHit3D*>& hitVec,
84  int planeToCheck,
85  int referenceWire,
86  double referenceTicks,
87  int& firstWire,
88  int& lastWire) const;
89 
92 
94 };
95 
96 } // namespace lar_cluster3d
97 #endif
Cluster3D class.
Definition: SkeletonAlg.h:33
void GetSkeletonHits(const reco::HitPairListPtr &inputHitList, reco::HitPairListPtr &skeletonHitList) const
Return the skeleton hits from the input list.
SkeletonAlg(fhicl::ParameterSet const &pset)
Constructor.
Definition: SkeletonAlg.cxx:30
void reconfigure(fhicl::ParameterSet const &pset)
a handler for the case where the algorithm control parameters are to be reset
Definition: SkeletonAlg.cxx:43
int FindMedialSkeleton(reco::HitPairListPtr &hitPairList) const
This is intended to find the medial skeleton given a list of input hit pairs.
fhicl::ParameterSet m_pset
Definition: SkeletonAlg.h:93
void AverageSkeletonPositions(reco::HitPairListPtr &skeletonHitList) const
Modifies the position of input skeleton hits by averaging along the "best" wire direction.
std::list< const reco::ClusterHit3D * > HitPairListPtr
Definition: Cluster3D.h:315
double FindFirstAndLastWires(std::vector< const reco::ClusterHit3D * > &hitVec, int planeToCheck, int referenceWire, double referenceTicks, int &firstWire, int &lastWire) const
A function to find the bounding wires in a given view.
Definition: SkeletonAlg.cxx:49
virtual ~SkeletonAlg()
Destructor.
Definition: SkeletonAlg.cxx:37
art framework interface to geometry description