LDMX Software
EcalMipTrackingFeatures.cxx
1
2#include "DQM/EcalMipTrackingFeatures.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 const auto &veto{
18
19 histograms_.fill("n_straight_tracks", veto.getNStraightTracks());
20 histograms_.fill("n_linreg_tracks", veto.getNLinRegTracks());
21 histograms_.fill("first_near_photon_layer", veto.getFirstNearPhLayer());
22 histograms_.fill("ep_ang", veto.getEPAng());
23 histograms_.fill("ep_sep", veto.getEPSep());
24 auto recoil_mom = veto.getRecoilMomentum();
25 histograms_.fill("recoil_pz", recoil_mom[2]);
26 histograms_.fill("recoil_pt", std::sqrt(recoil_mom[0] * recoil_mom[0] +
27 recoil_mom[1] * recoil_mom[1]));
28 histograms_.fill("recoil_x", veto.getRecoilX());
29 histograms_.fill("recoil_y", veto.getRecoilY());
30
31 return;
32}
33
34} // namespace dqm
35
36DECLARE_ANALYZER_NS(dqm, EcalMipTrackingFeatures);
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.
virtual void configure(framework::config::Parameters &ps)
Input python configuration parameters.
std::string ecal_veto_pass_
Pass Name for veto object.
std::string ecal_veto_name_
Collection Name for veto object.
virtual void analyze(const framework::Event &event)
Fills histograms.
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