Commit 2ebd9c04 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CLICpix2: add timewalk TOA vs TOT plot

parent fc679693
Pipeline #582841 passed with stages
in 9 minutes and 35 seconds
...@@ -150,6 +150,9 @@ void EventLoaderCLICpix2::initialise() { ...@@ -150,6 +150,9 @@ void EventLoaderCLICpix2::initialise() {
title = m_detector->name() + " Pixel multiplicity;pixels;frames"; title = m_detector->name() + " Pixel multiplicity;pixels;frames";
hPixelsPerFrame = new TH1F("pixelsPerFrame", title.c_str(), 1000, 0, 1000); hPixelsPerFrame = new TH1F("pixelsPerFrame", title.c_str(), 1000, 0, 1000);
title = m_detector->name() + " Timewalk;TOA;TOT;pixels";
hTimeWalk = new TH2F("timewalk", title.c_str(), maxcounter, 0, maxcounter - 1, 32, 0, 31);
title = m_detector->name() + " Map of masked pixels;x [px];y [px];mask code"; title = m_detector->name() + " Map of masked pixels;x [px];y [px];mask code";
hMaskMap = new TH2F("maskMap", hMaskMap = new TH2F("maskMap",
title.c_str(), title.c_str(),
...@@ -276,6 +279,7 @@ StatusCode EventLoaderCLICpix2::run(std::shared_ptr<Clipboard> clipboard) { ...@@ -276,6 +279,7 @@ StatusCode EventLoaderCLICpix2::run(std::shared_ptr<Clipboard> clipboard) {
timestamp = shutterStopTime - static_cast<double>(toa) / 0.1 + m_detector->timingOffset(); timestamp = shutterStopTime - static_cast<double>(toa) / 0.1 + m_detector->timingOffset();
if(!discardZeroToT || tot > 0) { if(!discardZeroToT || tot > 0) {
hPixelToA->Fill(toa); hPixelToA->Fill(toa);
hTimeWalk->Fill(toa, tot);
} }
} }
......
...@@ -53,6 +53,7 @@ namespace corryvreckan { ...@@ -53,6 +53,7 @@ namespace corryvreckan {
TH2F* hHitMap; TH2F* hHitMap;
TH2F* hMaskMap; TH2F* hMaskMap;
TH2F* hTimeWalk;
TH2F* hHitMapDiscarded; TH2F* hHitMapDiscarded;
TProfile2D* hPixelToTMap; TProfile2D* hPixelToTMap;
TH1F* hPixelToT; TH1F* hPixelToT;
......
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