LDMX Software
EcalPnetVetoResults.cxx
1
2#include "DQM/EcalPnetVetoResults.h"
3
5
6namespace dqm {
7
9 ecal_pnet_veto_name_ = ps.get<std::string>("ecal_pnet_veto_name");
10 ecal_pnet_veto_pass_ = ps.get<std::string>("ecal_pnet_veto_pass");
11
12 return;
13}
14
16 auto veto{event.getObject<ldmx::EcalVetoResult>(ecal_pnet_veto_name_,
18
19 histograms_.fill("pnet_disc", veto.getDisc());
20 histograms_.fill("pnet_disc_log", -std::log10(1 - veto.getDisc()));
21 histograms_.fill("pnet_pass", veto.passesVeto());
22
23 return;
24}
25
26} // namespace dqm
27
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:42
void fill(const std::string &name, const T &val)
Fill a 1D histogram.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Definition Parameters.h:78