LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ClusterCreator.cxx
Go to the documentation of this file.
1 
10 // declaration header
13 
14 // LArSoft libraries
16 
17 namespace cluster {
18 
20  util::GeometryUtilities const& gser,
22  float start_wire,
23  float sigma_start_wire,
24  float start_tick,
25  float sigma_start_tick,
26  float end_wire,
27  float sigma_end_wire,
28  float end_tick,
29  float sigma_end_tick,
31  geo::View_t view,
32  geo::PlaneID const& plane,
33  recob::Cluster::SentryArgument_t sentry /* = recob::Cluster::Sentry */
34  )
35  : cluster(CreateCluster(gser,
36  algo,
37  start_wire,
38  sigma_start_wire,
39  start_tick,
40  sigma_start_tick,
41  end_wire,
42  sigma_end_wire,
43  end_tick,
44  sigma_end_tick,
45  ID,
46  view,
47  plane,
48  sentry))
49  {} // ClusterCreator::ClusterCreator()
50 
51  //----------------------------------------------------------------------
53  util::GeometryUtilities const& gser,
55  float start_wire,
56  float sigma_start_wire,
57  float start_tick,
58  float sigma_start_tick,
59  float end_wire,
60  float sigma_end_wire,
61  float end_tick,
62  float sigma_end_tick,
64  geo::View_t view,
65  geo::PlaneID const& plane,
66  recob::Cluster::SentryArgument_t sentry /* = recob::Cluster::Sentry */
67  )
68  {
69  return recob::Cluster(start_wire,
70  sigma_start_wire,
71  start_tick,
72  sigma_start_tick,
73  algo.StartCharge(gser).value(),
74  algo.StartAngle().value(),
75  algo.StartOpeningAngle().value(),
76  end_wire,
77  sigma_end_wire,
78  end_tick,
79  sigma_end_tick,
80  algo.EndCharge(gser).value(),
81  algo.EndAngle().value(),
82  algo.EndOpeningAngle().value(),
83  algo.Integral().value(),
84  algo.IntegralStdDev().value(),
85  algo.SummedADC().value(),
86  algo.SummedADCStdDev().value(),
87  algo.NHits(),
88  algo.MultipleHitDensity(),
89  algo.Width(gser),
90  ID,
91  view,
92  plane,
93  sentry);
94  } // ClusterCreator::CreateCluster()
95 
96 } // namespace cluster
virtual Measure_t IntegralStdDev()
Computes the standard deviation on the charge of the cluster hits.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
virtual Measure_t StartCharge(util::GeometryUtilities const &)
Computes the charge on the first and last wire of the track.
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
Set of hits with a 2D structure.
Definition: Cluster.h:69
virtual Measure_t EndCharge(util::GeometryUtilities const &)
Computes the charge on the first and last wire of the track.
Cluster finding and building.
Type of sentry argument.
Definition: Cluster.h:167
virtual Measure_t EndAngle()
Computes the angle at the start or end of the cluster.
Algorithm collection class computing cluster parameters.
recob::Cluster CreateCluster(util::GeometryUtilities const &gser, 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.
virtual Measure_t SummedADCStdDev()
Computes the standard deviation on the charge of the cluster hits.
virtual Measure_t StartOpeningAngle()
Computes the opening angle at the start or end of the cluster.
Helper functions to create a cluster.
virtual Measure_t StartAngle()
Computes the angle at the start or end of the cluster.
Declaration of cluster object.
virtual float MultipleHitDensity()
Fraction of wires in the cluster with more than one hit.
virtual Measure_t Integral()
Computes the total charge of the cluster from Hit::Integral()
Interface for a algorithm class computing cluster parameters.
virtual float Width(util::GeometryUtilities const &)
Computes the width of the cluster.
virtual Measure_t SummedADC()
Computes the total charge of the cluster from Hit::SummedADC()
virtual Measure_t EndOpeningAngle()
Computes the opening angle at the start or end of the cluster.
virtual size_t NHits()
Returns the number of hits in the cluster.
int ID_t
Type of cluster ID.
Definition: Cluster.h:72
ClusterCreator(util::GeometryUtilities const &gser, 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.