LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ClusterMergeHelper.h
Go to the documentation of this file.
1 // \file ClusterMergeHelper.h
3 //
4 // \brief ClusterMergeHelper header file
5 //
6 // \author kazuhiro@nevis.columbia.edu
7 //
9 
10 #ifndef CLUSTERMERGEHELPER_H
11 #define CLUSTERMERGEHELPER_H
12 
13 // ART includes
14 
15 namespace art {
16  class Event;
17 }
18 
21 
22 namespace fhicl {
23  class ParameterSet;
24 }
25 
26 // LArSoft
32 
33 // STL
34 #include <vector>
35 
36 namespace cluster {
37 
39  public:
40  ::cmtool::CMergeManager& GetManager() { return fMgr; }
41 
43  void SetClusters(util::GeometryUtilities const& gser,
44  const std::vector<std::vector<art::Ptr<recob::Hit>>>& clusters);
45 
47  void SetClusters(util::GeometryUtilities const& gser,
48  const art::Event& evt,
49  const std::string& cluster_module_label);
50 
52  void Process(util::GeometryUtilities const& gser);
53 
55  const std::vector<std::vector<art::Ptr<recob::Hit>>>& GetMergedClusterHits() const;
56 
58  const std::vector<cluster::ClusterParamsAlg>& GetMergedCPAN() const;
59 
61  void AppendResult(util::GeometryUtilities const& gser,
62  art::Event& ev,
63  std::vector<recob::Cluster>& out_clusters,
65 
66  protected:
69  const std::vector<std::vector<util::PxHit>>& clusters)
70  {
71  fMgr.Reset();
72  fMgr.SetClusters(gser, clusters);
73  }
74 
75  protected:
78 
81 
83  std::vector<std::vector<art::Ptr<recob::Hit>>> fInputClusters;
84 
86  std::vector<std::vector<art::Ptr<recob::Hit>>> fOutputClusters;
87 
88  }; // class ClusterMergeHelper
89 
90 } //namespace cluster
91 #endif
void SetClusters(util::GeometryUtilities const &gser, const std::vector< std::vector< util::PxHit >> &clusters)
Internal method to transfer input cluster information in the right format to CMergeManager.
std::vector< std::vector< art::Ptr< recob::Hit > > > fInputClusters
Input clusters in terms of a vector of art::Ptr<recob::Hit> collection.
Declaration of signal hit object.
Cluster finding and building.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
parameter set interface
std::vector< std::vector< art::Ptr< recob::Hit > > > fOutputClusters
Output clusters in terms of a vector of art::Ptr<recob::Hit> collection.
::util::GeometryUtilities fGeoU
GeometryUtilities.
Declaration of cluster object.
::cmtool::CMergeManager & GetManager()
Definition: MVAAlg.h:12
TCEvent evt
Definition: DataStructs.cxx:8
::cmtool::CMergeManager fMgr
CMergeManager instance.
Class def header for a class CMergeManager.