Commit 08579a45 authored by Lennart Huth's avatar Lennart Huth Committed by Simon Spannagel
Browse files

updated EventloaderMuPixTelescope

parent 487764a7
......@@ -74,7 +74,7 @@ StatusCode EventLoaderMuPixTelescope::run(std::shared_ptr<Clipboard> clipboard)
detectors.push_back(detectorName);
LOG(DEBUG) << "Detector with name " << detectorName;
}
map<string, PixelVector*> dataContainers;
map<string, std::shared_ptr<PixelVector>> dataContainers;
TelescopeFrame tf;
if(!m_blockFile->read_next(tf))
return StatusCode::EndRun;
......@@ -88,7 +88,7 @@ StatusCode EventLoaderMuPixTelescope::run(std::shared_ptr<Clipboard> clipboard)
Pixel* p = new Pixel(detectors.at(h.tag() / 4), h.column(), h.row(), 0, 0, px_timestamp);
if(!dataContainers.count(detectors.at(h.tag() / 4)))
dataContainers[detectors.at(h.tag() / 4)] = new PixelVector();
dataContainers[detectors.at(h.tag() / 4)] = std::make_shared<PixelVector>();
dataContainers.at(detectors.at(h.tag() / 4))->push_back(p);
hHitMap->Fill(h.column(), h.row());
hTimeStamp->Fill(h.timestamp_raw());
......
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