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());
27 if (momentum < 1000.) {
30 if (momentum < 500.) {
32 if ((mass_est.getPdgId() == 11) || (mass_est.getPdgId() == -11)) {
36 if ((mass_est.getPdgId() == 211) || (mass_est.getPdgId() == -211)) {
39 if ((mass_est.getPdgId() == 321) || (mass_est.getPdgId() == -321)) {
42 if ((mass_est.getPdgId() == 2212) || (mass_est.getPdgId() == -2212)) {
43 histograms_.
fill(
"mass_estimate_very_low_p_proton", mass_est.getMass());
#define DECLARE_ANALYZER(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.
Generate histograms to check tracker dE/dx mass estimate features.
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.
HistogramPool histograms_
helper object for making and filling histograms
Implements an event buffer system for storing event data.
void fill(const std::string &name, const T &val)
Fill a 1D histogram.
Class encapsulating parameters for configuring a processor.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Represents the estimated mass of a particle using tracker dE/dx information.