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,
27  geo::View_t view
28  )
29  : fChannel(channel)
30  , fView(view)
31  , fSignalROI(sigROIlist)
32  {}
33 
34  //----------------------------------------------------------------------
36  RegionsOfInterest_t&& sigROIlist,
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 
Reconstruction base classes.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
raw::ChannelID_t fChannel
ID of the associated channel.
Definition: Wire.h:127
STL namespace.
Raw data description.
uint8_t channel
Definition: CRTFragment.hh:201
geo::View_t fView
View corresponding to the plane of this wire.
Definition: Wire.h:128
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:32
def move(depos, offset)
Definition: depos.py:107
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
LArSoft geometry interface.
Definition: ChannelGeo.h:16
Wire()
Default constructor: a wire with no signal information.
Definition: Wire.cxx:17