WireCreator.cxx
Go to the documentation of this file.
1 /** ****************************************************************************
2  * @file WireCreator.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 WireCreator.h
7  *
8  * ****************************************************************************/
9 
10 // declaration header
12 
13 // C/C++ standard library
14 #include <utility> // std::move()
15 
16 // art libraries
18 
19 // LArSoft libraries
23 
24 
25 /// Reconstruction base classes
26 namespace recob {
27 
28  //----------------------------------------------------------------------
30  (const RegionsOfInterest_t& sigROIlist, const raw::RawDigit& rawdigit):
31  wire(
32  sigROIlist,
33  rawdigit.Channel(),
35  )
36  {
37  // resize fSignalROI again:
38  // just in case the user hasn't cared to set sigROIlist size right
39  wire.fSignalROI.resize(rawdigit.Samples());
40  } // Wire::Wire(RegionsOfInterest_t&)
41 
42  //----------------------------------------------------------------------
44  (RegionsOfInterest_t&& sigROIlist, const raw::RawDigit& rawdigit):
45  wire(
46  std::move(sigROIlist),
47  rawdigit.Channel(),
49  )
50  {
51  // resize fSignalROI again:
52  // just in case the user hasn't cared to set sigROIlist size right
53  wire.fSignalROI.resize(rawdigit.Samples());
54  } // Wire::Wire(RegionsOfInterest_t&)
55 
56  //----------------------------------------------------------------------
58  RegionsOfInterest_t const& sigROIlist,
60  geo::View_t view
61  ):
62  wire(sigROIlist, channel, view)
63  {}
64 
65  //----------------------------------------------------------------------
67  RegionsOfInterest_t&& sigROIlist,
69  geo::View_t view
70  ):
71  wire(std::move(sigROIlist), channel, view)
72  {}
73 
74 } // namespace recob
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
Reconstruction base classes.
AdcChannelData::View View
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Helper functions to create a wire.
ChannelID_t Channel() const
DAQ channel this raw data was read from.
Definition: RawDigit.h:212
Wire wire
local instance of the wire being constructed
Definition: WireCreator.h:154
STL namespace.
uint8_t channel
Definition: CRTFragment.hh:201
Wire && move()
Prepares the constructed wire to be moved away.
Definition: WireCreator.h:133
art framework interface to geometry description
WireCreator(const RegionsOfInterest_t &sigROIlist, const raw::RawDigit &rawdigit)
Constructor: uses specified signal in regions of interest.
Definition: WireCreator.cxx:30
def move(depos, offset)
Definition: depos.py:107
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28