Definition at line 18 of file DrawWireData_tool.cc.
evdb_tool::DrawWireData::~DrawWireData |
( |
| ) |
|
void evdb_tool::DrawWireData::Draw |
( |
const std::string & |
, |
|
|
float |
, |
|
|
float |
|
|
) |
| |
|
overridevirtual |
void evdb_tool::DrawWireData::Fill |
( |
evdb::View2D & |
view2D, |
|
|
raw::ChannelID_t & |
channel, |
|
|
float |
lowBin, |
|
|
float |
hiBin |
|
) |
| |
|
overridevirtual |
Implements evdb_tool::IWaveformDrawer.
Definition at line 62 of file DrawWireData_tool.cc.
70 const art::Event*
event = evdb::EventHolder::Instance()->GetEvent();
73 for (
size_t imod = 0; imod < recoOpt->
fWireLabels.size(); ++imod)
79 event->getByLabel(which, wireVecHandle);
81 for(
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++)
85 if (wire->Channel() !=
channel)
continue;
89 std::vector<float> signal = wire->Signal();
91 TPolyLine& wireWaveform = view2D.AddPolyLine(signal.size(),
fColorMap[imod %
fColorMap.size()], 2, 1);
93 for(
size_t idx = 0; idx < signal.size(); idx++)
97 if (bin >= lowBin && bin <= hiBin) wireWaveform.SetPoint(idx,bin,signal[idx]);
100 wireWaveform.Draw(
"same");
std::vector< art::InputTag > fWireLabels
module labels that produced wires
QTextStream & bin(QTextStream &s)
Event finding and building.
float evdb_tool::DrawWireData::getMaximum |
( |
| ) |
const |
|
inlineoverridevirtual |
float evdb_tool::DrawWireData::getMinimum |
( |
| ) |
const |
|
inlineoverridevirtual |
float evdb_tool::DrawWireData::fMaximum |
|
private |
float evdb_tool::DrawWireData::fMinimum |
|
private |
The documentation for this class was generated from the following file: