All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChannelROI.cxx
Go to the documentation of this file.
1 /** ****************************************************************************
2  * @file ChannelROI.cxx
3  * @brief Definition of basic channel signal object.
4  * @author brebel@fnal.gov
5  * @see ChannelROI.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  , fSignalROI()
20  {}
21 
22  //----------------------------------------------------------------------
24  RegionsOfInterest_t const& sigROIlist,
25  raw::ChannelID_t channel
26  )
27  : fChannel(channel)
28  , fSignalROI(sigROIlist)
29  {}
30 
31  //----------------------------------------------------------------------
33  RegionsOfInterest_t&& sigROIlist,
34  raw::ChannelID_t channel
35  )
36  : fChannel(channel)
37  , fSignalROI(std::move(sigROIlist))
38  {}
39 
40 
41  //----------------------------------------------------------------------
42  std::vector<short int> ChannelROI::Signal() const {
43  return { fSignalROI.begin(), fSignalROI.end() };
44  } // ChannelROI::Signal()
45 
46 
47 }
48 ////////////////////////////////////////////////////////////////////////
49 
RegionsOfInterest_t fSignalROI
Signal on the channel as function of time tick.
Definition: ChannelROI.h:117
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
std::vector< short int > Signal() const
Return a zero-padded full length vector filled with RoI signal.
Definition: ChannelROI.cxx:42
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:32
Declaration of basic channel signal object for ICARUS.
iterator begin()
Standard iterators interface.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
ChannelROI()
Default constructor: a ChannelROI with no signal information.
Definition: ChannelROI.cxx:17