2#include "DQM/TrkDeDxMassEstFeatures.h"
19 for (
const auto &mass_est : mass_estimates_) {
20 auto momentum = mass_est.getMomentum();
21 histograms_.
fill(
"momentum:harmonic_mean_dedx", momentum, mass_est.getIh());
36 std::vector<std::string> labels = {
"Other",
41 for (
int ilabel{1}; ilabel < labels.size(); ++ilabel) {
42 hist->GetXaxis()->SetBinLabel(ilabel, labels[ilabel - 1].c_str());
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Class that represents the estimated mass of a particle using tracker dE/dx information.
void onProcessStart() override
Method executed before processing of events begins.
virtual void configure(framework::config::Parameters &ps) override
Input python configuration parameters.
std::string mass_estimate_name_
Collection Name for mass estimate object.
std::string mass_estimate_pass_
Pass Name for mass estimate object.
virtual void analyze(const framework::Event &event) override
Fills histograms.
HistogramHelper histograms_
Interface class for making and filling histograms.
Implements an event buffer system for storing event data.
TH1 * get(const std::string &name)
Get a pointer to a histogram by name.
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
Class encapsulating parameters for configuring a processor.
Represents the estimated mass of a particle using tracker dE/dx information.