LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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  //----------------------------------------------------------------------
18  : fChannel(raw::InvalidChannelID)
19  , fView(geo::kUnknown)
20  , fSignalROI()
21  {}
22 
23  //----------------------------------------------------------------------
25  RegionsOfInterest_t const& sigROIlist,
26  raw::ChannelID_t channel,
27  geo::View_t view
28  )
29  : fChannel(channel)
30  , fView(view)
31  , fSignalROI(sigROIlist)
32  {}
33 
34  //----------------------------------------------------------------------
36  RegionsOfInterest_t&& sigROIlist,
37  raw::ChannelID_t channel,
38  geo::View_t view
39  )
40  : fChannel(channel)
41  , fView(view)
42  , fSignalROI(std::move(sigROIlist))
43  {}
44 
45 
46  //----------------------------------------------------------------------
47  std::vector<float> Wire::Signal() const {
48  return { fSignalROI.begin(), fSignalROI.end() };
49  } // Wire::Signal()
50 
51 
52 }
54 
Reconstruction base classes.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Unknown view.
Definition: geo_types.h:83
raw::ChannelID_t fChannel
ID of the associated channel.
Definition: Wire.h:89
STL namespace.
Raw data description.
Definition: RawTypes.h:6
geo::View_t fView
View corresponding to the plane of this wire.
Definition: Wire.h:90
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:47
RegionsOfInterest_t fSignalROI
Signal on the channel.
Definition: Wire.h:91
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:27
Namespace collecting geometry-related classes utilities.
Wire()
Default constructor: a wire with no signal information.
Definition: Wire.cxx:17