Class managing the creation of a new recob::Wire object. More...
#include <ChannelROICreator.h>
Public Types | |
using | RegionsOfInterest_t = ChannelROI::RegionsOfInterest_t |
Alias for the type of regions of interest. More... | |
Public Member Functions | |
ChannelROICreator (const RegionsOfInterest_t &sigROIlist, const raw::RawDigit &rawdigit) | |
Constructor: uses specified signal in regions of interest. More... | |
ChannelROICreator (RegionsOfInterest_t &&sigROIlist, const raw::RawDigit &rawdigit) | |
Constructor: uses specified signal in regions of interest. More... | |
ChannelROICreator (RegionsOfInterest_t const &sigROIlist, raw::ChannelID_t channel) | |
Constructor: uses specified signal in regions of interest. More... | |
ChannelROICreator (RegionsOfInterest_t &&sigROIlist, raw::ChannelID_t channel) | |
Constructor: uses specified signal in regions of interest. More... | |
ChannelROI && | move () |
Prepares the constructed wire to be moved away. More... | |
const ChannelROI & | copy () const |
Returns the constructed wire. More... | |
Protected Attributes | |
ChannelROI | channelROI |
local instance of the wire being constructed More... | |
Class managing the creation of a new recob::Wire object.
As Gianluca Petrillo points out, the same considerations described in recob::WireCreator
apply here as well
Definition at line 31 of file ChannelROICreator.h.
Alias for the type of regions of interest.
Definition at line 34 of file ChannelROICreator.h.
recob::ChannelROICreator::ChannelROICreator | ( | const RegionsOfInterest_t & | sigROIlist, |
const raw::RawDigit & | rawdigit | ||
) |
Constructor: uses specified signal in regions of interest.
sigROIlist | signal organized in regions of interest |
rawdigit | the raw digit this channel is associated to |
The information used from the raw digit are the channel ID and the length in samples (TDC ticks) of the original readout window.
Definition at line 21 of file ChannelROICreator.cxx.
recob::ChannelROICreator::ChannelROICreator | ( | RegionsOfInterest_t && | sigROIlist, |
const raw::RawDigit & | rawdigit | ||
) |
Constructor: uses specified signal in regions of interest.
sigROIlist | signal organized in regions of interest |
rawdigit | the raw digit this channel is associated to |
The information used from the raw digit are the channel ID and the length in samples (TDC ticks) of the original readout window.
Signal information is moved from sigROIlist, that becomes empty.
Definition at line 34 of file ChannelROICreator.cxx.
recob::ChannelROICreator::ChannelROICreator | ( | RegionsOfInterest_t const & | sigROIlist, |
raw::ChannelID_t | channel | ||
) |
Constructor: uses specified signal in regions of interest.
sigROIlist | signal organized in regions of interest |
channel | the ID of the channel |
The information used from the raw digit are the channel ID and the length in samples (TDC ticks) of the original readout window.
Definition at line 46 of file ChannelROICreator.cxx.
recob::ChannelROICreator::ChannelROICreator | ( | RegionsOfInterest_t && | sigROIlist, |
raw::ChannelID_t | channel | ||
) |
Constructor: uses specified signal in regions of interest.
sigROIlist | signal organized in regions of interest |
channel | the ID of the channel |
view | the view the channel belongs to |
The information used from the raw digit are the channel ID and the length in samples (TDC ticks) of the original readout window.
Signal information is moved from sigROIlist, that becomes empty.
Definition at line 54 of file ChannelROICreator.cxx.
|
inline |
Returns the constructed wire.
Despite the name, no copy happens in this function. Copy takes place in the caller code as proper; for example:
// be wire a ChannelROICreator instance: std::vector<recob::Wire> Wires; wire.copy(); // nothing happens Wires.push_back(wire.copy()); // here a copy happens recob::Wire single_wire(wire.copy()); // wire is copied again
Definition at line 125 of file ChannelROICreator.h.
|
inline |
Prepares the constructed wire to be moved away.
Despite the name, no move happens in this function. Move takes place in the caller code as proper; for example:
// be wire a ChannelROICreator instance: std::vector<recob::Wire> Wires; wire.move(); // nothing happens Wires.push_back(wire.move()); // here the copy happens recob::Wire single_wire(wire.move()); // wrong! wire is empty now
Definition at line 108 of file ChannelROICreator.h.
|
protected |
local instance of the wire being constructed
Definition at line 129 of file ChannelROICreator.h.