LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
WireCreator.cxx
Go to the documentation of this file.
1 
10 // declaration header
12 
13 // C/C++ standard library
14 #include <utility> // std::move()
15 
16 // art libraries
18 
19 // LArSoft libraries
23 
24 
26 namespace recob {
27 
28  //----------------------------------------------------------------------
30  (const RegionsOfInterest_t& sigROIlist, const raw::RawDigit& rawdigit):
31  wire(
32  sigROIlist,
33  rawdigit.Channel(),
34  art::ServiceHandle<geo::Geometry>()->View(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(),
48  art::ServiceHandle<geo::Geometry>()->View(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,
59  raw::ChannelID_t channel,
60  geo::View_t view
61  ):
62  wire(sigROIlist, channel, view)
63  {}
64 
65  //----------------------------------------------------------------------
67  RegionsOfInterest_t&& sigROIlist,
68  raw::ChannelID_t channel,
69  geo::View_t view
70  ):
71  wire(std::move(sigROIlist), channel, view)
72  {}
73 
74 } // namespace recob
Collection of charge vs time digitized from a single readout channel.
Definition: RawDigit.h:68
Reconstruction base classes.
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:211
Wire wire
local instance of the wire being constructed
Definition: WireCreator.h:154
STL namespace.
Definition of basic raw digits.
Wire && move()
Prepares the constructed wire to be moved away.
Definition: WireCreator.h:133
unsigned short Samples() const
Number of samples in the uncompressed ADC data.
Definition: RawDigit.h:212
WireCreator(const RegionsOfInterest_t &sigROIlist, const raw::RawDigit &rawdigit)
Constructor: uses specified signal in regions of interest.
Definition: WireCreator.cxx:30
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:27
art framework interface to geometry description