263 size_t cryo = wids[0].Cryostat;
264 size_t tpc = wids[0].TPC;
265 size_t plane = wids[0].Plane;
266 size_t wire = wids[0].Wire;
269 art::TFileDirectory
dir =
fHistDirectory->mkdir(Form(
"MF/ROIPlane_%1zu/c%1zu/c%1zut%1zuwire_%05zu",plane,cnt,cryo,tpc,wire));
276 dir.make<TProfile>(Form(
"MFWfm_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,plane,wire),
"Waveform", waveformSize, 0, waveformSize, -500., 500.);
278 dir.make<TProfile>(Form(
"MFEro_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,plane,wire),
"Erosion", waveformSize, 0, waveformSize, -500., 500.);
280 dir.make<TProfile>(Form(
"MFDil_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,plane,wire),
"Dilation", waveformSize, 0, waveformSize, -500., 500.);
282 dir.make<TProfile>(Form(
"MFAve_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,plane,wire),
"Average", waveformSize, 0, waveformSize, -500., 500.);
284 dir.make<TProfile>(Form(
"MFDif_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,
plane,wire),
"Difference", waveformSize, 0, waveformSize, -500., 500.);
286 dir.make<TProfile>(Form(
"MFOpe_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,
plane,wire),
"Opening", waveformSize, 0, waveformSize, -500., 500.);
288 dir.make<TProfile>(Form(
"MFClo_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,
plane,wire),
"Closing", waveformSize, 0, waveformSize, -500., 500.);
292 dir.make<TProfile>(Form(
"MFCor_%03zu_ctw%01zu-%01zu-%01zu-%05zu",cnt,cryo,tpc,
plane,wire),
"Corrected Waveform", waveformSize, 0, waveformSize, -500., 500.);
295 std::cout <<
"Caught exception trying to make new hists, tpc,plane,cnt,wire: " << tpc <<
", " <<
fPlane <<
", " << cnt <<
", " << wire << std::endl;
bool fOutputHistograms
Output histograms?
std::vector< geo::WireID > ChannelToWire(raw::ChannelID_t const channel) const
Returns a list of wires connected to the specified TPC channel.
art::TFileDirectory * fHistDirectory
size_t plane() const override
const geo::GeometryCore * fGeometry
std::map< int, TProfile * > HistogramMap
BEGIN_PROLOG could also be cout