32 void Draw(
const std::string&,
float,
float)
override;
44 std::unordered_map<std::string, std::unique_ptr<TH1F>>
fRecoHistMap;
86 fMinimum = std::numeric_limits<float>::max();
87 fMaximum = std::numeric_limits<float>::lowest();
90 for (
size_t imod = 0; imod < recoOpt->
fWireLabels.size(); ++imod) {
95 if (!
event->getByLabel(which, wireVecHandle))
continue;
98 for (
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++) {
101 if (wire->
Channel() != channel)
continue;
103 const std::vector<float>& signalVec = wire->
Signal();
107 for (
size_t idx = 0; idx < signalVec.size(); idx++) {
108 histPtr->Fill(
float(idx) + 0.5, signalVec[idx]);
127 TH1F* histPtr = histMap.second.get();
130 histPtr->SetMaximum(maxHiVal);
131 histPtr->SetMinimum(maxLowVal);
133 histPtr->Draw(options.c_str());
155 std::string tagString(tag.encode());
156 int numBins = numTicks;
159 "fCALTQHisto",
";t [ticks];q [ADC]", numBins, startTick, startTick + numTicks);
163 histPtr->SetMaximum(cst->
fRecoQHigh[(
size_t)sigType]);
164 histPtr->SetMinimum(cst->
fRecoQLow[(
size_t)sigType]);
166 histPtr->SetLineColor(kBlue);
167 histPtr->SetLineWidth(1);
169 histPtr->GetXaxis()->SetLabelSize(0.10);
170 histPtr->GetXaxis()->SetLabelOffset(0.01);
171 histPtr->GetXaxis()->SetTitleSize(0.10);
172 histPtr->GetXaxis()->SetTitleOffset(0.60);
174 histPtr->GetYaxis()->SetLabelSize(0.10);
175 histPtr->GetYaxis()->SetLabelOffset(0.002);
176 histPtr->GetYaxis()->SetTitleSize(0.10);
177 histPtr->GetYaxis()->SetTitleOffset(0.16);
const art::Event * GetEvent() const
int fDrawRawDataOrCalibWires
0 for raw
Singleton to hold the current art::Event for the event display.
std::vector< double > fRecoQHigh
high edge of ADC values for drawing raw digits
std::vector< double > fRecoQLow
low edge of ADC values for drawing raw digits
The color scales used by 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)
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
static EventHolder * Instance()
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
SigType_t SignalType(PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Namespace collecting geometry-related classes utilities.
art framework interface to geometry description
Event finding and building.