LDMX Software
EcalShowerFeatures.cxx
1
2#include "DQM/EcalShowerFeatures.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("deepest_layer_hit", veto.getDeepestLayerHit());
20 histograms_.fill("num_readout_hits", veto.getNReadoutHits());
21 histograms_.fill("summed_det", veto.getSummedDet());
22 histograms_.fill("summed_iso", veto.getSummedTightIso());
23 histograms_.fill("summed_back", veto.getEcalBackEnergy());
24 histograms_.fill("max_cell_dep", veto.getMaxCellDep());
25 histograms_.fill("shower_rms", veto.getShowerRMS());
26 histograms_.fill("x_std", veto.getXStd());
27 histograms_.fill("y_std", veto.getYStd());
28 histograms_.fill("avg_layer_hit", veto.getAvgLayerHit());
29 histograms_.fill("std_layer_hit", veto.getStdLayerHit());
30 for (const auto &energy : veto.getElectronContainmentEnergy()) {
31 histograms_.fill("e_containment_energy", energy);
32 }
33 for (const auto &energy : veto.getPhotonContainmentEnergy()) {
34 histograms_.fill("ph_containment_energy", energy);
35 }
36 for (const auto &energy : veto.getOutsideContainmentEnergy()) {
37 histograms_.fill("out_containment_energy", energy);
38 }
39
40 return;
41}
42
43} // namespace dqm
44
45DECLARE_ANALYZER_NS(dqm, EcalShowerFeatures);
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.
virtual void configure(framework::config::Parameters &ps)
Input python configuration parameters.
std::string ecal_veto_pass_
Pass Name for veto object.
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