13 #include "nuevdb/EventDisplayBase/EventHolder.h"
15 #include "art/Framework/Principal/Handle.h"
16 #include "art/Framework/Services/Registry/ServiceHandle.h"
17 #include "art/Utilities/ToolMacros.h"
31 void configure(
const fhicl::ParameterSet& pset)
override;
33 void Draw(
const std::string&,
float,
float)
override;
46 std::unordered_map<std::string,std::unique_ptr<TH1F>>
fRecoHistMap;
78 art::ServiceHandle<evd::RawDrawingOptions const> rawOpt;
79 art::ServiceHandle<evd::RecoDrawingOptions const> recoOpt;
82 if(rawOpt->fDrawRawDataOrCalibWires == 0)
return;
85 const art::Event*
event = evdb::EventHolder::Instance()->GetEvent();
91 fMinimum = std::numeric_limits<float>::max();
92 fMaximum = std::numeric_limits<float>::lowest();
95 for (
size_t imod = 0; imod < recoOpt->fWireLabels.size(); ++imod)
98 art::InputTag
const which = recoOpt->fWireLabels[imod];
100 art::Handle< std::vector<recob::Wire> > wireVecHandle;
101 if (!event->getByLabel(which, wireVecHandle))
continue;
104 for(
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++)
106 art::Ptr<recob::Wire> wire(wireVecHandle, wireIdx);
108 if (wire->Channel() != channel)
continue;
110 const std::vector<float>& signalVec = wire->Signal();
114 for(
size_t idx = 0; idx < signalVec.size(); idx++)
116 histPtr->Fill(
float(idx)+0.5,signalVec[idx]);
122 histPtr->SetLineColor(
fColorMap.at((nWireLabels-1) % recoOpt->fWireLabels.size()));
136 TH1F* histPtr = histMap.second.get();
139 histPtr->SetMaximum(maxHiVal);
140 histPtr->SetMinimum(maxLowVal);
142 histPtr->Draw(options.c_str());
151 art::ServiceHandle<evd::RecoDrawingOptions const> recoOpt;
152 art::ServiceHandle<evd::ColorDrawingOptions const> cst;
153 art::ServiceHandle<evd::RawDrawingOptions const> drawopt;
154 art::ServiceHandle<geo::Geometry const> geo;
160 for(
auto& tag : recoOpt->fWireLabels)
165 std::string tagString(tag.encode());
166 int numBins = numTicks;
168 fRecoHistMap[tagString] = std::make_unique<TH1F>(
"fCALTQHisto",
";t [ticks];q [ADC]",numBins,startTick,startTick+numTicks);
172 histPtr->SetMaximum(cst->fRecoQHigh[(
size_t)sigType]);
173 histPtr->SetMinimum(cst->fRecoQLow[(
size_t)sigType]);
175 histPtr->SetLineColor(kBlue);
176 histPtr->SetLineWidth(1);
178 histPtr->GetXaxis()->SetLabelSize (0.10);
179 histPtr->GetXaxis()->SetLabelOffset(0.01);
180 histPtr->GetXaxis()->SetTitleSize (0.10);
181 histPtr->GetXaxis()->SetTitleOffset(0.60);
183 histPtr->GetYaxis()->SetLabelSize (0.10 );
184 histPtr->GetYaxis()->SetLabelOffset(0.002);
185 histPtr->GetYaxis()->SetTitleSize (0.10 );
186 histPtr->GetYaxis()->SetTitleOffset(0.16 );
The color scales used by the event display.
enum geo::_plane_sigtype SigType_t
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker options
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
art framework interface to geometry description