LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Wire.cxx
Go to the documentation of this file.
1 
10 
11 // C/C++ standard libraries
12 #include <utility> // std::move()
13 
14 namespace recob {
15 
16  //----------------------------------------------------------------------
17  Wire::Wire() : fChannel(raw::InvalidChannelID), fView(geo::kUnknown), fSignalROI() {}
18 
19  //----------------------------------------------------------------------
20  Wire::Wire(RegionsOfInterest_t const& sigROIlist, raw::ChannelID_t channel, geo::View_t view)
21  : fChannel(channel), fView(view), fSignalROI(sigROIlist)
22  {}
23 
24  //----------------------------------------------------------------------
26  : fChannel(channel), fView(view), fSignalROI(std::move(sigROIlist))
27  {}
28 
29  //----------------------------------------------------------------------
30  std::vector<float> Wire::Signal() const
31  {
32  return {fSignalROI.begin(), fSignalROI.end()};
33  } // Wire::Signal()
34 
35 }
Reconstruction base classes.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Unknown view.
Definition: geo_types.h:142
raw::ChannelID_t fChannel
ID of the associated channel.
Definition: Wire.h:125
STL namespace.
Raw data description.
Definition: RawTypes.h:6
geo::View_t fView
View corresponding to the plane of this wire.
Definition: Wire.h:126
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:31
iterator end()
Standard iterators interface.
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
Definition: Wire.cxx:30
RegionsOfInterest_t fSignalROI
Signal on the channel as function of time tick.
Definition: Wire.h:127
iterator begin()
Standard iterators interface.
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
Namespace collecting geometry-related classes utilities.
Wire()
Default constructor: a wire with no signal information.
Definition: Wire.cxx:17