LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Wire.h
Go to the documentation of this file.
1 
17 #ifndef WIRE_H
18 #define WIRE_H
19 
20 #include <vector>
21 
22 #include "larcoreobj/SimpleTypesAndConstants/RawTypes.h" // raw::ChannelID_t
25 
26 
27 // prototype declaration
28 namespace raw { class RawDigit; }
29 
30 
32 namespace recob {
33 
80  class Wire {
81  public:
84 
86  Wire();
87 
88  private:
91  RegionsOfInterest_t fSignalROI;
92 
93 
94  friend class WireCreator; // helper to create wires in art
95 
96  public:
109  Wire(
110  RegionsOfInterest_t const& sigROIlist,
111  raw::ChannelID_t channel,
112  geo::View_t view
113  );
114 
126  Wire(
127  RegionsOfInterest_t&& sigROIlist,
128  raw::ChannelID_t channel,
129  geo::View_t view
130  );
131 
134 
136  std::vector<float> Signal() const;
137 
139  const RegionsOfInterest_t& SignalROI() const;
140 
142  size_t NSignal() const;
143 
145  geo::View_t View() const;
146 
148  raw::ChannelID_t Channel() const;
150 
152  bool operator< (const Wire& than) const;
153 
154 
155  }; // class Wire
156 
157 } // namespace recob
158 
159 
161  recob::Wire::SignalROI() const { return fSignalROI; }
162 inline size_t recob::Wire::NSignal() const { return fSignalROI.size(); }
163 inline geo::View_t recob::Wire::View() const { return fView; }
164 inline raw::ChannelID_t recob::Wire::Channel() const { return fChannel; }
165 inline bool recob::Wire::operator< (const Wire& than) const
166  { return Channel() < than.Channel(); }
167 
168 
169 #endif // WIRE_H
170 
size_t NSignal() const
Returns the number of time ticks, or samples, in the channel.
Definition: Wire.h:162
Reconstruction base classes.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
bool operator<(const OpDetWaveform &lhs, const OpDetWaveform &rhs)
Definition: OpDetWaveform.h:84
raw::ChannelID_t fChannel
ID of the associated channel.
Definition: Wire.h:89
bool operator<(const Wire &than) const
Returns whether this channel ID is smaller than the other.
Definition: Wire.h:165
lar::sparse_vector< float > RegionsOfInterest_t
a region of interest is a pair (TDC offset, readings)
Definition: Wire.h:83
Raw data description.
Definition: RawTypes.h:6
Class managing the creation of a new recob::Wire object.
Definition: WireCreator.h:53
geo::View_t fView
View corresponding to the plane of this wire.
Definition: Wire.h:90
geo::View_t View() const
Returns the view the channel belongs to.
Definition: Wire.h:163
raw::ChannelID_t Channel() const
Returns the ID of the channel (or InvalidChannelID)
Definition: Wire.h:164
const RegionsOfInterest_t & SignalROI() const
Returns the list of regions of interest.
Definition: Wire.h:161
Definition of data types for geometry description.
RegionsOfInterest_t fSignalROI
Signal on the channel.
Definition: Wire.h:91
Class holding the deconvoluted signals from a channel.
Definition: Wire.h:80
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:27
Class defining a sparse vector (holes are zeroes)