LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 
25 namespace recob {
26 
27  //----------------------------------------------------------------------
28  WireCreator::WireCreator(const RegionsOfInterest_t& sigROIlist, const raw::RawDigit& rawdigit)
29  : wire(sigROIlist,
30  rawdigit.Channel(),
31  art::ServiceHandle<geo::Geometry const>()->View(rawdigit.Channel()))
32  {
33  // resize fSignalROI again:
34  // just in case the user hasn't cared to set sigROIlist size right
35  wire.fSignalROI.resize(rawdigit.Samples());
36  } // Wire::Wire(RegionsOfInterest_t&)
37 
38  //----------------------------------------------------------------------
40  : wire(std::move(sigROIlist),
41  rawdigit.Channel(),
42  art::ServiceHandle<geo::Geometry const>()->View(rawdigit.Channel()))
43  {
44  // resize fSignalROI again:
45  // just in case the user hasn't cared to set sigROIlist size right
46  wire.fSignalROI.resize(rawdigit.Samples());
47  } // Wire::Wire(RegionsOfInterest_t&)
48 
49  //----------------------------------------------------------------------
51  raw::ChannelID_t channel,
52  geo::View_t view)
53  : wire(sigROIlist, channel, view)
54  {}
55 
56  //----------------------------------------------------------------------
58  raw::ChannelID_t channel,
59  geo::View_t view)
60  : wire(std::move(sigROIlist), channel, view)
61  {}
62 
63 } // namespace recob
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
Definition: RawDigit.h:217
Collection of charge vs time digitized from a single readout channel.
Definition: RawDigit.h:68
void resize(size_type new_size)
Resizes the vector to the specified size, adding void.
Reconstruction base classes.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Helper functions to create a wire.
Wire wire
local instance of the wire being constructed
Definition: WireCreator.h:141
STL namespace.
Definition of basic raw digits.
Wire && move()
Prepares the constructed wire to be moved away.
Definition: WireCreator.h:122
WireCreator(const RegionsOfInterest_t &sigROIlist, const raw::RawDigit &rawdigit)
Constructor: uses specified signal in regions of interest.
Definition: WireCreator.cxx:28
RegionsOfInterest_t fSignalROI
Signal on the channel as function of time tick.
Definition: Wire.h:127
Definition: MVAAlg.h:12
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description