LDMX Software
EcalPnetVetoResults.cxx
1
2#include "DQM/EcalPnetVetoResults.h"
3
4#include <cmath>
5
7
8namespace dqm {
9
11 ecal_pnet_veto_name_ = ps.get<std::string>("ecal_pnet_veto_name");
12 ecal_pnet_veto_pass_ = ps.get<std::string>("ecal_pnet_veto_pass");
13
14 return;
15}
16
18 auto veto{event.getObject<ldmx::EcalVetoResult>(ecal_pnet_veto_name_,
20
21 histograms_.fill("pnet_disc", veto.getDisc());
22 histograms_.fill("pnet_disc_log", -std::log10(1 - veto.getDisc()));
23 histograms_.fill("pnet_pass", veto.passesVeto());
24
25 return;
26}
27
28} // namespace dqm
29
Class used to encapsulate the results obtained from EcalVetoProcessor.
#define DECLARE_ANALYZER(CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Generate histograms to check the final decisions made in the ECAL veto.
virtual void configure(framework::config::Parameters &ps)
Input python configuration parameters.
virtual void analyze(const framework::Event &event)
Fills histograms.
std::string ecal_pnet_veto_pass_
Pass Name for veto object.
std::string ecal_pnet_veto_name_
Collection Name for veto object.
HistogramPool histograms_
helper object for making and filling histograms
Implements an event buffer system for storing event data.
Definition Event.h:40
void fill(const std::string &name, const T &val)
Fill a 1D histogram.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Definition Parameters.h:75