Macros | Functions
Cluster_test.cc File Reference

Simple test on a recob::Cluster object. More...

#include <utility>
#include "boost/test/unit_test.hpp"
#include "larcoreobj/SimpleTypesAndConstants/geo_types.h"
#include "lardataobj/RecoBase/Cluster.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   ( cluster_test )
 

Functions

void CheckCluster (recob::Cluster const &cluster, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float start_charge, float start_angle, float start_opening, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, float end_charge, float end_angle, float end_opening, float integral, float integral_stddev, float summedADC, float summedADC_stddev, unsigned int n_hits, float multiple_hit_density, float width, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane)
 
void ClusterTestDefaultConstructor ()
 
void ClusterTestCustomConstructor ()
 
void ClusterTestCopyMoveOperations ()
 
 BOOST_AUTO_TEST_CASE (ClusterDefaultConstructor)
 
 BOOST_AUTO_TEST_CASE (ClusterCustomConstructors)
 
 BOOST_AUTO_TEST_CASE (ClusterCopyMoveOperations)
 

Detailed Description

Simple test on a recob::Cluster object.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
20150114
Version
1.0

This test simply creates recob::Cluster objects and verifies that the values it can access are the right ones.

See http://www.boost.org/libs/test for the Boost test library home page.

Timing: version 1.0: ~1.5" (debug mode)

Definition in file Cluster_test.cc.

Macro Definition Documentation

#define BOOST_TEST_MODULE   ( cluster_test )

Definition at line 31 of file Cluster_test.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( ClusterDefaultConstructor  )

Definition at line 765 of file Cluster_test.cc.

765  {
767 }
void ClusterTestDefaultConstructor()
BOOST_AUTO_TEST_CASE ( ClusterCustomConstructors  )

Definition at line 769 of file Cluster_test.cc.

769  {
771 }
void ClusterTestCustomConstructor()
BOOST_AUTO_TEST_CASE ( ClusterCopyMoveOperations  )

Definition at line 773 of file Cluster_test.cc.

773  {
775 }
void ClusterTestCopyMoveOperations()
void CheckCluster ( recob::Cluster const &  cluster,
float  start_wire,
float  sigma_start_wire,
float  start_tick,
float  sigma_start_tick,
float  start_charge,
float  start_angle,
float  start_opening,
float  end_wire,
float  sigma_end_wire,
float  end_tick,
float  sigma_end_tick,
float  end_charge,
float  end_angle,
float  end_opening,
float  integral,
float  integral_stddev,
float  summedADC,
float  summedADC_stddev,
unsigned int  n_hits,
float  multiple_hit_density,
float  width,
recob::Cluster::ID_t  ID,
geo::View_t  view,
geo::PlaneID const &  plane 
)

Definition at line 45 of file Cluster_test.cc.

71  {
72 
73  // verify that the values are as expected
74  // - NHits
75  BOOST_TEST(cluster.NHits() == n_hits);
76 
77  // - start wire
78  BOOST_TEST(cluster.StartWire() == start_wire);
79 
80  // - start wire uncertainty
81  BOOST_TEST(cluster.SigmaStartWire() == sigma_start_wire);
82 
83  // - start tick
84  BOOST_TEST(cluster.StartTick() == start_tick);
85 
86  // - start tick uncertainty
87  BOOST_TEST(cluster.SigmaStartTick() == sigma_start_tick);
88 
89  // - end wire
90  BOOST_TEST(cluster.EndWire() == end_wire);
91 
92  // - end wire uncertainty
93  BOOST_TEST(cluster.SigmaEndWire() == sigma_end_wire);
94 
95  // - end tick
96  BOOST_TEST(cluster.EndTick() == end_tick);
97 
98  // - end tick uncertainty
99  BOOST_TEST(cluster.SigmaEndTick() == sigma_end_tick);
100 
101  // - wire coordinates
102  BOOST_TEST
103  (cluster.WireCoord(recob::Cluster::clStart) == start_wire);
104  BOOST_TEST
105  (cluster.WireCoord((unsigned int) recob::Cluster::clStart) == start_wire);
106  BOOST_TEST
107  (cluster.WireCoord(recob::Cluster::clEnd) == end_wire);
108  BOOST_TEST
109  (cluster.WireCoord((unsigned int) recob::Cluster::clEnd) == end_wire);
110 
111  // - tick coordinates
112  BOOST_TEST
113  (cluster.TickCoord(recob::Cluster::clStart) == start_tick);
114  BOOST_TEST
115  (cluster.TickCoord((unsigned int) recob::Cluster::clStart) == start_tick);
116  BOOST_TEST
117  (cluster.TickCoord(recob::Cluster::clEnd) == end_tick);
118  BOOST_TEST
119  (cluster.TickCoord((unsigned int) recob::Cluster::clEnd) == end_tick);
120 
121  // - start charge
122  BOOST_TEST(cluster.StartCharge() == start_charge);
123 
124  // - start angle
125  BOOST_TEST(cluster.StartAngle() == start_angle);
126 
127  // - start opening angle
128  BOOST_TEST(cluster.StartOpeningAngle() == start_opening);
129 
130  // - end charge
131  BOOST_TEST(cluster.EndCharge() == end_charge);
132 
133  // - end angle
134  BOOST_TEST(cluster.EndAngle() == end_angle);
135 
136  // - end opening angle
137  BOOST_TEST(cluster.EndOpeningAngle() == end_opening);
138 
139  // - edge charge
140  BOOST_TEST
141  (cluster.EdgeCharge(recob::Cluster::clStart) == start_charge);
142  BOOST_TEST
143  (cluster.EdgeCharge((unsigned int) recob::Cluster::clStart) == start_charge);
144  BOOST_TEST
145  (cluster.EdgeCharge(recob::Cluster::clEnd) == end_charge);
146  BOOST_TEST
147  (cluster.EdgeCharge((unsigned int) recob::Cluster::clEnd) == end_charge);
148 
149  // - angle
150  BOOST_TEST
151  (cluster.Angle(recob::Cluster::clStart) == start_angle);
152  BOOST_TEST
153  (cluster.Angle((unsigned int) recob::Cluster::clStart) == start_angle);
154  BOOST_TEST
155  (cluster.Angle(recob::Cluster::clEnd) == end_angle);
156  BOOST_TEST
157  (cluster.Angle((unsigned int) recob::Cluster::clEnd) == end_angle);
158 
159  // - edge opening angle
160  BOOST_TEST
161  (cluster.OpeningAngle(recob::Cluster::clStart) == start_opening);
162  BOOST_TEST
163  (cluster.OpeningAngle((unsigned int) recob::Cluster::clStart) == start_opening);
164  BOOST_TEST
165  (cluster.OpeningAngle(recob::Cluster::clEnd) == end_opening);
166  BOOST_TEST
167  (cluster.OpeningAngle((unsigned int) recob::Cluster::clEnd) == end_opening);
168 
169  // - integral
170  BOOST_TEST(cluster.Integral() == integral);
171 
172  // - integral standard deviation
173  BOOST_TEST(cluster.IntegralStdDev() == integral_stddev);
174 
175  // - integral average
176  const float integral_average = (n_hits != 0)? integral / n_hits: 0.;
177  BOOST_TEST(cluster.IntegralAverage() == integral_average);
178 
179  // - summed ADC
180  BOOST_TEST(cluster.SummedADC() == summedADC);
181 
182  // - summed ADC standard deviation
183  BOOST_TEST(cluster.SummedADCstdDev() == summedADC_stddev);
184 
185  // - summed ADC average
186  const float summedADC_average = (n_hits != 0)? summedADC / n_hits: 0.;
187  BOOST_TEST(cluster.SummedADCaverage() == summedADC_average);
188 
189  // - charge
190  BOOST_TEST(cluster.Charge(recob::Cluster::cmFit) == integral);
191  BOOST_TEST
192  (cluster.Charge((unsigned int) recob::Cluster::cmFit) == integral);
193  BOOST_TEST
194  (cluster.Charge(recob::Cluster::cmADC) == summedADC);
195  BOOST_TEST
196  (cluster.Charge((unsigned int) recob::Cluster::cmADC) == summedADC);
197 
198  // - charge standard deviation
199  BOOST_TEST
200  (cluster.ChargeStdDev(recob::Cluster::cmFit) == integral_stddev);
201  BOOST_TEST
202  (cluster.ChargeStdDev((unsigned int) recob::Cluster::cmFit) == integral_stddev);
203  BOOST_TEST
204  (cluster.ChargeStdDev(recob::Cluster::cmADC) == summedADC_stddev);
205  BOOST_TEST
206  (cluster.ChargeStdDev((unsigned int) recob::Cluster::cmADC) == summedADC_stddev);
207 
208  // - charge standard deviation
209  BOOST_TEST
210  (cluster.ChargeAverage(recob::Cluster::cmFit) == integral_average);
211  BOOST_TEST
212  (cluster.ChargeAverage((unsigned int) recob::Cluster::cmFit) == integral_average);
213  BOOST_TEST
214  (cluster.ChargeAverage(recob::Cluster::cmADC) == summedADC_average);
215  BOOST_TEST
216  (cluster.ChargeAverage((unsigned int) recob::Cluster::cmADC) == summedADC_average);
217 
218  // - wires over hits
219  BOOST_TEST(cluster.MultipleHitDensity() == multiple_hit_density);
220 
221  // - width
222  BOOST_TEST(cluster.Width() == width);
223 
224  // - ID
225  BOOST_TEST(cluster.ID() == ID);
226 
227  // - view
228  BOOST_TEST(cluster.View() == view);
229 
230  // - plane
231  BOOST_TEST(cluster.Plane() == plane);
232  BOOST_TEST(cluster.hasPlane() == plane.isValid);
233 
234 } // CheckCluster()
Sums from the fitted hit values.
Definition: Cluster.h:85
unsigned int ID
Cluster finding and building.
Sums directly from ADC counts.
Definition: Cluster.h:86
Represents the most likely start of the cluster.
Definition: Cluster.h:78
Represents the end, or the alternative start, of the cluster.
Definition: Cluster.h:79
void ClusterTestCopyMoveOperations ( )

Definition at line 402 of file Cluster_test.cc.

402  {
403 
404  //
405  // Part I: initialization of wire inputs
406  //
407  const float start_wire = 12.5;
408  const float sigma_start_wire = 1.0;
409  const float start_tick = 141.3;
410  const float sigma_start_tick = 0.2;
411  const float start_charge = 45.2;
412  const float start_angle = 1.5;
413  const float start_opening = 0.7;
414  const float end_wire = 223.4;
415  const float sigma_end_wire = 1.0;
416  const float end_tick = 563.2;
417  const float sigma_end_tick = 0.3;
418  const float end_charge = 152.1;
419  const float end_angle = 0.6;
420  const float end_opening = 0.1;
421  const float integral = 4856.7;
422  const float integral_stddev = 4.3;
423  const float summedADC = 4702.4;
424  const float summedADC_stddev = 6.2;
425  const unsigned int n_hits = 210;
426  const float multiple_hit_density = 1.0;
427  const float width = 75.2;
428  const recob::Cluster::ID_t ID = 1234;
429  const geo::View_t view = geo::kV;
430  const geo::PlaneID plane(0, 1, 2);
431 
432  //
433  // Part II: full constructor (tested elsewhere)
434  //
435  const recob::Cluster cluster(
436  start_wire,
437  sigma_start_wire,
438  start_tick,
439  sigma_start_tick,
440  start_charge,
441  start_angle,
442  start_opening,
443  end_wire,
444  sigma_end_wire,
445  end_tick,
446  sigma_end_tick,
447  end_charge,
448  end_angle,
449  end_opening,
450  integral,
451  integral_stddev,
452  summedADC,
453  summedADC_stddev,
454  n_hits,
455  multiple_hit_density,
456  width,
457  ID,
458  view,
459  plane,
461  );
462 
463 
464  //
465  // Part III: copy constructor
466  //
467  // step III.1: copy the cluster
468  recob::Cluster cluster_copy(cluster);
469 
470  // step III.2: verify that the original cluster has not changed
472  start_wire,
473  sigma_start_wire,
474  start_tick,
475  sigma_start_tick,
476  start_charge,
477  start_angle,
478  start_opening,
479  end_wire,
480  sigma_end_wire,
481  end_tick,
482  sigma_end_tick,
483  end_charge,
484  end_angle,
485  end_opening,
486  integral,
487  integral_stddev,
488  summedADC,
489  summedADC_stddev,
490  n_hits,
491  multiple_hit_density,
492  width,
493  ID,
494  view,
495  plane
496  );
497 
498  // step III.3: verify that the copy cluster is as the original one
499  CheckCluster(cluster_copy,
500  start_wire,
501  sigma_start_wire,
502  start_tick,
503  sigma_start_tick,
504  start_charge,
505  start_angle,
506  start_opening,
507  end_wire,
508  sigma_end_wire,
509  end_tick,
510  sigma_end_tick,
511  end_charge,
512  end_angle,
513  end_opening,
514  integral,
515  integral_stddev,
516  summedADC,
517  summedADC_stddev,
518  n_hits,
519  multiple_hit_density,
520  width,
521  ID,
522  view,
523  plane
524  );
525 
526 
527  //
528  // Part IV: move constructor
529  //
530  // step IV.1: move the cluster
531  recob::Cluster cluster_move(std::move(cluster_copy));
532 
533  // step IV.2: verify that the original cluster differ only by the invalid ID
534  CheckCluster(cluster_copy,
535  start_wire,
536  sigma_start_wire,
537  start_tick,
538  sigma_start_tick,
539  start_charge,
540  start_angle,
541  start_opening,
542  end_wire,
543  sigma_end_wire,
544  end_tick,
545  sigma_end_tick,
546  end_charge,
547  end_angle,
548  end_opening,
549  integral,
550  integral_stddev,
551  summedADC,
552  summedADC_stddev,
553  n_hits,
554  multiple_hit_density,
555  width,
557  view,
558  plane
559  );
560 
561  // step IV.3: verify that the new cluster is as the original was
562  CheckCluster(cluster_move,
563  start_wire,
564  sigma_start_wire,
565  start_tick,
566  sigma_start_tick,
567  start_charge,
568  start_angle,
569  start_opening,
570  end_wire,
571  sigma_end_wire,
572  end_tick,
573  sigma_end_tick,
574  end_charge,
575  end_angle,
576  end_opening,
577  integral,
578  integral_stddev,
579  summedADC,
580  summedADC_stddev,
581  n_hits,
582  multiple_hit_density,
583  width,
584  ID,
585  view,
586  plane
587  );
588 
589 
590  //
591  // Part V: copy assignment
592  //
593  // step V.1: copy over the cluster
594  cluster_copy = cluster;
595 
596  // step V.2: verify that the original cluster is unchanged
598  start_wire,
599  sigma_start_wire,
600  start_tick,
601  sigma_start_tick,
602  start_charge,
603  start_angle,
604  start_opening,
605  end_wire,
606  sigma_end_wire,
607  end_tick,
608  sigma_end_tick,
609  end_charge,
610  end_angle,
611  end_opening,
612  integral,
613  integral_stddev,
614  summedADC,
615  summedADC_stddev,
616  n_hits,
617  multiple_hit_density,
618  width,
619  ID,
620  view,
621  plane
622  );
623 
624  // step V.3: verify that the new cluster is as the original
625  CheckCluster(cluster_copy,
626  start_wire,
627  sigma_start_wire,
628  start_tick,
629  sigma_start_tick,
630  start_charge,
631  start_angle,
632  start_opening,
633  end_wire,
634  sigma_end_wire,
635  end_tick,
636  sigma_end_tick,
637  end_charge,
638  end_angle,
639  end_opening,
640  integral,
641  integral_stddev,
642  summedADC,
643  summedADC_stddev,
644  n_hits,
645  multiple_hit_density,
646  width,
647  ID,
648  view,
649  plane
650  );
651 
652 
653  //
654  // Part VI: move assignment (regular)
655  //
656  // step VI.1: move the cluster
657  cluster_move = std::move(cluster_copy);
658 
659  // step IV.2: verify that the original cluster differ only by the invalid ID
660  CheckCluster(cluster_copy,
661  start_wire,
662  sigma_start_wire,
663  start_tick,
664  sigma_start_tick,
665  start_charge,
666  start_angle,
667  start_opening,
668  end_wire,
669  sigma_end_wire,
670  end_tick,
671  sigma_end_tick,
672  end_charge,
673  end_angle,
674  end_opening,
675  integral,
676  integral_stddev,
677  summedADC,
678  summedADC_stddev,
679  n_hits,
680  multiple_hit_density,
681  width,
683  view,
684  plane
685  );
686 
687  // step VI.3: verify that the new cluster is as the original was
688  CheckCluster(cluster_move,
689  start_wire,
690  sigma_start_wire,
691  start_tick,
692  sigma_start_tick,
693  start_charge,
694  start_angle,
695  start_opening,
696  end_wire,
697  sigma_end_wire,
698  end_tick,
699  sigma_end_tick,
700  end_charge,
701  end_angle,
702  end_opening,
703  integral,
704  integral_stddev,
705  summedADC,
706  summedADC_stddev,
707  n_hits,
708  multiple_hit_density,
709  width,
710  ID,
711  view,
712  plane
713  );
714 
715  //
716  // Part VII: move assignment (self)
717  //
718  // step VII.1: move the cluster into itself
719  // for c2: redundant and illegal => not testing it any more
720  /*
721  cluster_move = std::move(cluster_move);
722 
723  // step VII.3: verify that the cluster is unchanged
724  CheckCluster(cluster_move,
725  start_wire,
726  sigma_start_wire,
727  start_tick,
728  sigma_start_tick,
729  start_charge,
730  start_angle,
731  start_opening,
732  end_wire,
733  sigma_end_wire,
734  end_tick,
735  sigma_end_tick,
736  end_charge,
737  end_angle,
738  end_opening,
739  integral,
740  integral_stddev,
741  summedADC,
742  summedADC_stddev,
743  n_hits,
744  multiple_hit_density,
745  width,
746  ID,
747  view,
748  plane
749  );
750  */
751 
752 } // ClusterTestCopyMoveOperations()
static constexpr ID_t InvalidID
Value for an invalid cluster ID.
Definition: Cluster.h:179
void cluster(In first, In last, Out result, Pred *pred)
Definition: NNClusters.h:41
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
unsigned int ID
Planes which measure V.
Definition: geo_types.h:130
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
Set of hits with a 2D structure.
Definition: Cluster.h:71
Cluster finding and building.
static const SentryArgument_t Sentry
An instance of the sentry object.
Definition: Cluster.h:182
def move(depos, offset)
Definition: depos.py:107
void CheckCluster(recob::Cluster const &cluster, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float start_charge, float start_angle, float start_opening, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, float end_charge, float end_angle, float end_opening, float integral, float integral_stddev, float summedADC, float summedADC_stddev, unsigned int n_hits, float multiple_hit_density, float width, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane)
Definition: Cluster_test.cc:45
int ID_t
Type of cluster ID.
Definition: Cluster.h:74
void ClusterTestCustomConstructor ( )

Definition at line 306 of file Cluster_test.cc.

306  {
307 
308  //
309  // Part I: initialization of cluster inputs
310  //
311  const float start_wire = 12.5;
312  const float sigma_start_wire = 1.0;
313  const float start_tick = 141.3;
314  const float sigma_start_tick = 0.2;
315  const float start_charge = 45.2;
316  const float start_angle = 1.5;
317  const float start_opening = 0.7;
318  const float end_wire = 223.4;
319  const float sigma_end_wire = 1.0;
320  const float end_tick = 563.2;
321  const float sigma_end_tick = 0.3;
322  const float end_charge = 152.1;
323  const float end_angle = 0.6;
324  const float end_opening = 0.1;
325  const float integral = 4856.7;
326  const float integral_stddev = 4.3;
327  const float summedADC = 4702.4;
328  const float summedADC_stddev = 6.2;
329  const unsigned int n_hits = 210;
330  const float multiple_hit_density = 1.0;
331  const float width = 75.2;
332  const recob::Cluster::ID_t ID = 1234;
333  const geo::View_t view = geo::kV;
334  const geo::PlaneID plane(0, 1, 2);
335 
336  //
337  // Part II: constructor
338  //
339  // step II.1: create a cluster
341  start_wire,
342  sigma_start_wire,
343  start_tick,
344  sigma_start_tick,
345  start_charge,
346  start_angle,
347  start_opening,
348  end_wire,
349  sigma_end_wire,
350  end_tick,
351  sigma_end_tick,
352  end_charge,
353  end_angle,
354  end_opening,
355  integral,
356  integral_stddev,
357  summedADC,
358  summedADC_stddev,
359  n_hits,
360  multiple_hit_density,
361  width,
362  ID,
363  view,
364  plane,
366  );
367 
368 
369  // step II.2: verify that the values are as expected
371  start_wire,
372  sigma_start_wire,
373  start_tick,
374  sigma_start_tick,
375  start_charge,
376  start_angle,
377  start_opening,
378  end_wire,
379  sigma_end_wire,
380  end_tick,
381  sigma_end_tick,
382  end_charge,
383  end_angle,
384  end_opening,
385  integral,
386  integral_stddev,
387  summedADC,
388  summedADC_stddev,
389  n_hits,
390  multiple_hit_density,
391  width,
392  ID,
393  view,
394  plane
395  );
396 
397 
398 } // ClusterTestCustomConstructor()
void cluster(In first, In last, Out result, Pred *pred)
Definition: NNClusters.h:41
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
unsigned int ID
Planes which measure V.
Definition: geo_types.h:130
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
Set of hits with a 2D structure.
Definition: Cluster.h:71
Cluster finding and building.
static const SentryArgument_t Sentry
An instance of the sentry object.
Definition: Cluster.h:182
void CheckCluster(recob::Cluster const &cluster, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float start_charge, float start_angle, float start_opening, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, float end_charge, float end_angle, float end_opening, float integral, float integral_stddev, float summedADC, float summedADC_stddev, unsigned int n_hits, float multiple_hit_density, float width, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane)
Definition: Cluster_test.cc:45
int ID_t
Type of cluster ID.
Definition: Cluster.h:74
void ClusterTestDefaultConstructor ( )

Definition at line 237 of file Cluster_test.cc.

237  {
238 
239  //
240  // Part I: initialization of cluster inputs
241  //
242  // these are the values expected for a default-constructed cluster
243  const float start_wire = 0.0;
244  const float sigma_start_wire = 0.0;
245  const float start_tick = 0.0;
246  const float sigma_start_tick = 0.0;
247  const float start_charge = 0.0;
248  const float start_angle = 0.0;
249  const float start_opening = 0.0;
250  const float end_wire = 0.0;
251  const float sigma_end_wire = 0.0;
252  const float end_tick = 0.0;
253  const float sigma_end_tick = 0.0;
254  const float end_charge = 0.0;
255  const float end_angle = 0.0;
256  const float end_opening = 0.0;
257  const float integral = 0.0;
258  const float integral_stddev = 0.0;
259  const float summedADC = 0.0;
260  const float summedADC_stddev = 0.0;
261  const unsigned int n_hits = 0;
262  const float multiple_hit_density = 0.0;
263  const float width = 0.0;
265  const geo::View_t view = geo::kUnknown;
266  const geo::PlaneID plane;
267 
268  //
269  // Part II: default constructor
270  //
271  // step II.1: create a cluster with default constructor
273 
274 
275  // step II.2: verify that the values are as expected
276  CheckCluster(cluster,
277  start_wire,
278  sigma_start_wire,
279  start_tick,
280  sigma_start_tick,
281  start_charge,
282  start_angle,
283  start_opening,
284  end_wire,
285  sigma_end_wire,
286  end_tick,
287  sigma_end_tick,
288  end_charge,
289  end_angle,
290  end_opening,
291  integral,
292  integral_stddev,
293  summedADC,
294  summedADC_stddev,
295  n_hits,
296  multiple_hit_density,
297  width,
298  ID,
299  view,
300  plane
301  );
302 
303 } // WireTestDefaultConstructor()
static constexpr ID_t InvalidID
Value for an invalid cluster ID.
Definition: Cluster.h:179
void cluster(In first, In last, Out result, Pred *pred)
Definition: NNClusters.h:41
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
unsigned int ID
Unknown view.
Definition: geo_types.h:136
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
Set of hits with a 2D structure.
Definition: Cluster.h:71
void CheckCluster(recob::Cluster const &cluster, float start_wire, float sigma_start_wire, float start_tick, float sigma_start_tick, float start_charge, float start_angle, float start_opening, float end_wire, float sigma_end_wire, float end_tick, float sigma_end_tick, float end_charge, float end_angle, float end_opening, float integral, float integral_stddev, float summedADC, float summedADC_stddev, unsigned int n_hits, float multiple_hit_density, float width, recob::Cluster::ID_t ID, geo::View_t view, geo::PlaneID const &plane)
Definition: Cluster_test.cc:45
int ID_t
Type of cluster ID.
Definition: Cluster.h:74