Commit 1ba8a648 authored by Sejla Hadzic's avatar Sejla Hadzic
Browse files

added hitmaps to EventLoaderEUDAQ

parent 00a1d41a
......@@ -50,12 +50,8 @@ void EventLoaderEUDAQ::initialize() {
}
local_directory->cd();
// Create a histogram for each detector for the bunch crossing time of the LV1 trigger (BCID), 1bc = 25ns
std::string title = detectorID + ": LV1 distribution; [bc]; events";
lv1[detectorID] = new TH1F("LV1 distribution", title.c_str(), 32, -0.5, 31.5);
// Create a hitmap for each detector
title = detectorID + ": hitmap;x [px];y [px];events";
std::string title = detectorID + ": hitmap;x [px];y [px];events";
hitmap[detectorID] = new TH2F("hitmap",
title.c_str(),
detector->nPixels().X(),
......@@ -137,12 +133,9 @@ StatusCode EventLoaderEUDAQ::run(const std::shared_ptr<Clipboard>& clipboard) {
plane.GetPixel(ipix, frame),
frame);
// Fill the lv1 information
lv1[detectorID]->Fill(frame);
// Fill the hitmap
hitmap[detectorID]->Fill(pixel->column(), pixel->row());
// Pixel gets timestamp of trigger assigned
// Pixel gets timestamp of trigger assigned:
pixel->timestamp(timestamp);
deviceData.push_back(pixel);
}
......
......@@ -42,8 +42,6 @@ namespace corryvreckan {
std::string m_filename{};
bool m_longID;
// Bunch crossing time of the LV1 trigger (BCID) histogram
std::map<std::string, TH1F*> lv1;
std::map<std::string, TH2F*> hitmap;
};
} // namespace corryvreckan
......
......@@ -29,5 +29,4 @@ long_detector_id = true
### Plots produced
For each detector the following plots are produced:
* 1D histograms for bunch crossing time of the LV1 trigger (BCID)
* 2D hitmaps on pixel-leveL
* 2D hitmaps on pixel-level
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment