All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChannelROICreator.cxx
Go to the documentation of this file.
1 /** ****************************************************************************
2  * @file ChannelROICreator.cxx
3  * @brief Helper functions to create a wire - implementation file
4  * @date December 11, 2014
5  * @author petrillo@fnal.gov
6  * @see Wire.h ChannelROICreator.h
7  *
8  * ****************************************************************************/
9 
10 // declaration header
12 
13 // LArSoft libraries
15 
16 /// Reconstruction base classes
17 namespace recob {
18 
19  //----------------------------------------------------------------------
21  (const RegionsOfInterest_t& sigROIlist, const raw::RawDigit& rawdigit):
22  channelROI(
23  sigROIlist,
24  rawdigit.Channel()
25  )
26  {
27  // resize fSignalROI again:
28  // just in case the user hasn't cared to set sigROIlist size right
29  channelROI.fSignalROI.resize(rawdigit.Samples());
30  } // Wire::Wire(RegionsOfInterest_t&)
31 
32  //----------------------------------------------------------------------
34  (RegionsOfInterest_t&& sigROIlist, const raw::RawDigit& rawdigit):
35  channelROI(
36  std::move(sigROIlist),
37  rawdigit.Channel()
38  )
39  {
40  // resize fSignalROI again:
41  // just in case the user hasn't cared to set sigROIlist size right
42  channelROI.fSignalROI.resize(rawdigit.Samples());
43  } // Wire::Wire(RegionsOfInterest_t&)
44 
45  //----------------------------------------------------------------------
47  RegionsOfInterest_t const& sigROIlist,
48  raw::ChannelID_t channel
49  ):
50  channelROI(sigROIlist, channel)
51  {}
52 
53  //----------------------------------------------------------------------
55  RegionsOfInterest_t&& sigROIlist,
56  raw::ChannelID_t channel
57  ):
58  channelROI(std::move(sigROIlist), channel)
59  {}
60 
61 } // namespace recob
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
Definition: RawDigit.h:213
Collection of charge vs time digitized from a single readout channel.
Definition: RawDigit.h:69
ChannelID_t Channel() const
DAQ channel this raw data was read from.
Definition: RawDigit.h:212
Definition of basic raw digits.
ChannelROICreator(const RegionsOfInterest_t &sigROIlist, const raw::RawDigit &rawdigit)
Constructor: uses specified signal in regions of interest.
Helper functions to create a wire.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28