12 #include "nuevdb/EventDisplayBase/EventHolder.h" 43 std::unordered_map<std::string,std::unique_ptr<TH1F>>
fRecoHistMap;
82 const art::Event*
event = evdb::EventHolder::Instance()->GetEvent();
89 fMaximum = std::numeric_limits<float>::lowest();
92 for (
size_t imod = 0; imod < recoOpt->
fWireLabels.size(); ++imod)
98 if (!
event->getByLabel(which, wireVecHandle))
continue;
101 for(
size_t wireIdx = 0; wireIdx < wireVecHandle->size(); wireIdx++)
107 const std::vector<float>& signalVec = wire->
Signal();
111 for(
size_t idx = 0; idx < signalVec.size(); idx++)
113 histPtr->Fill(
float(idx)+0.5,signalVec[idx]);
133 TH1F* histPtr = histMap.second.get();
136 histPtr->SetMaximum(maxHiVal);
137 histPtr->SetMinimum(maxLowVal);
139 histPtr->Draw(options.c_str());
163 int numBins = numTicks;
165 fRecoHistMap[tagString] = std::make_unique<TH1F>(
"fCALTQHisto",
";t [ticks];q [ADC]",numBins,startTick,startTick+numTicks);
169 histPtr->SetMaximum(cst->
fRecoQHigh[(
size_t)sigType]);
170 histPtr->SetMinimum(cst->
fRecoQLow[(
size_t)sigType]);
172 histPtr->SetLineColor(kBlue);
173 histPtr->SetLineWidth(1);
175 histPtr->GetXaxis()->SetLabelSize (0.10);
176 histPtr->GetXaxis()->SetLabelOffset(0.01);
177 histPtr->GetXaxis()->SetTitleSize (0.10);
178 histPtr->GetXaxis()->SetTitleOffset(0.60);
180 histPtr->GetYaxis()->SetLabelSize (0.10 );
181 histPtr->GetYaxis()->SetLabelOffset(0.002);
182 histPtr->GetYaxis()->SetTitleSize (0.10 );
183 histPtr->GetYaxis()->SetTitleOffset(0.16 );
int fDrawRawDataOrCalibWires
0 for raw
SigType_t SignalType(geo::PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
art framework interface to geometry description
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
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
static int max(int a, int b)
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Declaration of basic channel signal object.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
LArSoft geometry interface.
Event finding and building.