Definition at line 23 of file DrawWireData_tool.cc.
evdb_tool::DrawWireData::DrawWireData |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
evdb_tool::DrawWireData::~DrawWireData |
( |
| ) |
|
void evdb_tool::DrawWireData::configure |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
overridevirtual |
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 67 of file DrawWireData_tool.cc.
72 art::ServiceHandle<evd::RecoDrawingOptions const> recoOpt;
75 const art::Event*
event = evdb::EventHolder::Instance()->GetEvent();
78 for (
size_t imod = 0; imod < recoOpt->fWireLabels.size(); ++imod)
81 art::InputTag
const which = recoOpt->fWireLabels[imod];
83 art::Handle< std::vector<recob::Wire> > wireVecHandle;
84 event->getByLabel(which, wireVecHandle);
86 for(
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++)
88 art::Ptr<recob::Wire> wire(wireVecHandle, wireIdx);
90 if (wire->Channel() != channel)
continue;
94 std::vector<float> signal = wire->Signal();
96 TPolyLine& wireWaveform = view2D.AddPolyLine(signal.size(),
fColorMap[imod %
fColorMap.size()], 2, 1);
98 for(
size_t idx = 0; idx < signal.size(); idx++)
100 float bin = float(idx) + 0.5;
102 if (bin >= lowBin && bin <= hiBin) wireWaveform.SetPoint(idx,bin,signal[idx]);
105 wireWaveform.Draw(
"same");
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
float evdb_tool::DrawWireData::getMaximum |
( |
| ) |
const |
|
inlineoverridevirtual |
float evdb_tool::DrawWireData::getMinimum |
( |
| ) |
const |
|
inlineoverridevirtual |
std::vector<int> evdb_tool::DrawWireData::fColorMap |
|
private |
float evdb_tool::DrawWireData::fMaximum |
|
private |
float evdb_tool::DrawWireData::fMinimum |
|
private |
The documentation for this class was generated from the following file: