LDMX Software
EcalVetoResults.cxx
1
2#include "DQM/EcalVetoResults.h"
3
5
6namespace dqm {
7
9 ecal_veto_name_ = ps.getParameter<std::string>("ecal_veto_name");
10 ecal_veto_pass_ = ps.getParameter<std::string>("ecal_veto_pass");
11
12 return;
13}
14
16 auto veto{
18
19 histograms_.fill("bdt_disc", veto.getDisc());
20 histograms_.fill("bdt_disc_log", -std::log10(1 - veto.getDisc()));
21 histograms_.fill("fiducial", veto.getFiducial());
22
23 return;
24}
25
26} // namespace dqm
27
28DECLARE_ANALYZER_NS(dqm, EcalVetoResults);
Class used to encapsulate the results obtained from EcalVetoProcessor.
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
std::string ecal_veto_name_
Collection Name for veto object.
virtual void analyze(const framework::Event &event)
Fills histograms.
std::string ecal_veto_pass_
Pass Name for veto object.
virtual void configure(framework::config::Parameters &ps)
Input python configuration parameters.
HistogramHelper histograms_
Interface class for making and filling histograms.
Implements an event buffer system for storing event data.
Definition Event.h:41
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
Definition Histograms.h:166
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Definition Parameters.h:89