30 void Draw(
const std::string&,
float,
float)
override;
42 std::unordered_map<std::string, std::unique_ptr<TH1F>>
fRecoHistMap;
80 fMinimum = std::numeric_limits<float>::max();
81 fMaximum = std::numeric_limits<float>::lowest();
84 for (
size_t imod = 0; imod < recoOpt->
fWireLabels.size(); ++imod) {
89 if (!
event->getByLabel(which, wireVecHandle))
continue;
92 for (
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++) {
95 if (wire->
Channel() != channel)
continue;
97 const std::vector<float>& signalVec = wire->
Signal();
101 for (
size_t idx = 0; idx < signalVec.size(); idx++) {
102 histPtr->Fill(
float(idx) + 0.5, signalVec[idx]);
119 TH1F* histPtr = histMap.second.get();
122 histPtr->SetMaximum(maxHiVal);
123 histPtr->SetMinimum(maxLowVal);
125 histPtr->Draw(options.c_str());
145 std::string tagString(tag.encode());
146 int numBins = numTicks;
149 "fCALTQHisto",
";t [ticks];q [ADC]", numBins, startTick, startTick + numTicks);
153 histPtr->SetMaximum(cst->
fRecoQHigh[(
size_t)sigType]);
154 histPtr->SetMinimum(cst->
fRecoQLow[(
size_t)sigType]);
156 histPtr->SetLineColor(kBlue);
157 histPtr->SetLineWidth(1);
159 histPtr->GetXaxis()->SetLabelSize(0.10);
160 histPtr->GetXaxis()->SetLabelOffset(0.01);
161 histPtr->GetXaxis()->SetTitleSize(0.10);
162 histPtr->GetXaxis()->SetTitleOffset(0.60);
164 histPtr->GetYaxis()->SetLabelSize(0.10);
165 histPtr->GetYaxis()->SetLabelOffset(0.002);
166 histPtr->GetYaxis()->SetTitleSize(0.10);
167 histPtr->GetYaxis()->SetTitleOffset(0.16);
const art::Event * GetEvent() const
int fDrawRawDataOrCalibWires
0 for raw
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
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.
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Event finding and building.