LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ClusterCreator.h
Go to the documentation of this file.
1 
10 #ifndef CLUSTERCREATOR_H
11 #define CLUSTERCREATOR_H
12 
13 // C/C++ standard library
14 #include <string>
15 #include <vector>
16 #include <utility> // std::move()
17 
18 // LArSoft libraries
21 
22 
24 namespace cluster {
25 
45  public:
46 
47  // destructor, copy and move constructor and assignment as default
48 
86  float start_wire,
87  float sigma_start_wire,
88  float start_tick,
89  float sigma_start_tick,
90  float end_wire,
91  float sigma_end_wire,
92  float end_tick,
93  float sigma_end_tick,
95  geo::View_t view,
96  geo::PlaneID const& plane,
98  );
99 
100 
115  recob::Cluster&& move() { return std::move(cluster); }
116 
117 
132  recob::Cluster const& copy() const { return cluster; }
133 
134  protected:
135 
138 
175  ClusterParamsAlgBase& algo,
176  float start_wire,
177  float sigma_start_wire,
178  float start_tick,
179  float sigma_start_tick,
180  float end_wire,
181  float sigma_end_wire,
182  float end_tick,
183  float sigma_end_tick,
185  geo::View_t view,
186  geo::PlaneID const& plane,
188  );
189 
190  }; // class ClusterCreator
191 
192 
193 } // namespace cluster
194 
195 #endif // CLUSTERCREATOR_H
Class managing the creation of a new recob::Cluster object.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
recob::Cluster const & copy() const
Returns the constructed wire.
The data type to uniquely identify a Plane.
Definition: geo_types.h:250
recob::Cluster cluster
Local instance of the cluster being constructed.
Set of hits with a 2D structure.
Definition: Cluster.h:71
Cluster finding and building.
recob::Cluster CreateCluster(ClusterParamsAlgBase &algo, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane, recob::Cluster::SentryArgument_t sentry=recob::Cluster::Sentry)
Creates a cluster from direct information and a hit list.
Type of sentry argument.
Definition: Cluster.h:176
static const SentryArgument_t Sentry
An instance of the sentry object.
Definition: Cluster.h:182
Algorithm collection class computing cluster parameters.
Declaration of cluster object.
Interface for a algorithm class computing cluster parameters.
recob::Cluster && move()
Prepares the constructed hit to be moved away.
ClusterCreator(ClusterParamsAlgBase &algo, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane, recob::Cluster::SentryArgument_t sentry=recob::Cluster::Sentry)
Constructor: computes some information from hit list.
int ID_t
Type of cluster ID.
Definition: Cluster.h:74