All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
17 #include "art/Framework/Services/Registry/ServiceHandle.h"
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(),
34  art::ServiceHandle<geo::Geometry const>()->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 const>()->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
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
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
Definition of basic raw digits.
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:28
art framework interface to geometry description