31 #define BOOST_TEST_MODULE ( wire_test ) 
   32 #include "boost/test/unit_test.hpp" 
   56   BOOST_TEST(wire.
Channel() == channel);
 
   59   BOOST_TEST(wire.
View() == view);
 
   65   BOOST_TEST(wireROI.n_ranges() == sigROIlist.
n_ranges());
 
   67   unsigned int index = 0;
 
   68   for (
auto sample: wireROI) {
 
   69     BOOST_TEST(sample == sigROIlist[index++]);
 
   73   auto const& wire_signal = wire.
Signal();
 
   98   CheckWire(wire, sigROIlist, channel, view);
 
  118   BOOST_TEST(sigROIlist.
size() == 20U);
 
  119   BOOST_TEST(sigROIlist.
n_ranges() == 2U);
 
  121   for (
auto sample: sigROIlist) {
 
  122     BOOST_TEST(((sample == (
float) index) || (sample == 0.)));
 
  135   CheckWire(wire1, sigROIlist, channel, view);
 
  143   recob::Wire wire2(std::move(sigROIlistCopy), channel, view);
 
  146   CheckWire(wire2, sigROIlist, channel, view);
 
  149   BOOST_TEST(sigROIlistCopy.
empty());
 
std::vector< value_type > vector_t
type of STL vector holding this data 
size_type n_ranges() const 
Returns the internal list of non-void ranges. 
size_type size() const 
Returns the size of the vector. 
enum geo::_plane_proj View_t
Enumerate the possible plane projections. 
const datarange_t & add_range(size_type offset, ITER first, ITER last)
Adds a sequence of elements as a range with specified offset. 
void CheckWire(recob::Wire const &wire, recob::Wire::RegionsOfInterest_t const &sigROIlist, raw::ChannelID_t channel, geo::View_t view)
geo::View_t View() const 
Returns the view the channel belongs to. 
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel. 
void WireTestCustomConstructors()
void WireTestDefaultConstructor()
raw::ChannelID_t Channel() const 
Returns the ID of the channel (or InvalidChannelID) 
const RegionsOfInterest_t & SignalROI() const 
Returns the list of regions of interest. 
Definition of data types for geometry description. 
std::vector< float > Signal() const 
Return a zero-padded full length vector filled with RoI signal. 
bool equal(double a, double b)
Comparison tolerance, in centimeters. 
bool empty() const 
Returns whether the vector is empty. 
Class holding the regions of interest of signal from a channel. 
Declaration of basic channel signal object. 
const_iterator cbegin() const 
unsigned int ChannelID_t
Type representing the ID of a readout channel. 
Class defining a sparse vector (holes are zeroes) 
std::size_t NSignal() const 
Returns the number of time ticks, or samples, in the channel.