All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Wire.cxx
Go to the documentation of this file.
1 /** ****************************************************************************
2  * @file Wire.cxx
3  * @brief Definition of basic channel signal object.
4  * @author brebel@fnal.gov
5  * @see Wire.h
6  *
7  * ****************************************************************************/
8 
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 }
53 ////////////////////////////////////////////////////////////////////////
54 
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:32
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 as function of time tick.
Definition: Wire.h:129
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
Wire()
Default constructor: a wire with no signal information.
Definition: Wire.cxx:17