1#include "Tracking/dqm/TrackerDigiDQM.h"
3#include "SimCore/Event/SimParticle.h"
4#include "Tracking/Event/Measurement.h"
6namespace tracking::dqm {
9 if (!event.
exists(
"OutputMeasurements"))
return;
13 for (
auto& measurement : measurements) {
15 auto local_position{measurement.getLocalPosition()};
16 auto layer_id{measurement.getLayerID()};
17 auto time{measurement.getTime()};
20 global_position[1], global_position[2]);
23 histograms_.
fill(
"local_uv_l" + std::to_string(layer_id), local_position[0],
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
HistogramHelper histograms_
Interface class for making and filling histograms.
Implements an event buffer system for storing event data.
bool exists(const std::string &name, const std::string &passName="", bool unique=true) const
Check for the existence of an object or collection with the given name and pass name in the event.
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
std::array< float, 3 > getGlobalPosition() const
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.