18 #include "TPolyLine.h" 30 void Draw(
const std::string&,
float,
float)
override;
72 for (
size_t imod = 0; imod < recoOpt->
fWireLabels.size(); ++imod) {
77 event->getByLabel(which, wireVecHandle);
79 for (
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++) {
82 if (wire->
Channel() != channel)
continue;
86 std::vector<float> signal = wire->
Signal();
88 TPolyLine& wireWaveform =
91 for (
size_t idx = 0; idx < signal.size(); idx++) {
92 float bin = float(idx) + 0.5;
94 if (bin >= lowBin && bin <= hiBin) wireWaveform.SetPoint(idx, bin, signal[idx]);
97 wireWaveform.Draw(
"same");
const art::Event * GetEvent() const
TPolyLine & AddPolyLine(int n, int c, int w, int s)
A collection of drawable 2-D objects.
Singleton to hold the current art::Event for the event display.
std::vector< art::InputTag > fWireLabels
module labels that produced wires
raw::ChannelID_t Channel() const
Returns the ID of the channel (or InvalidChannelID)
static EventHolder * Instance()
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Event finding and building.