LDMX Software
EcalWABRecResults.cxx
1
2#include "DQM/EcalWABRecResults.h"
3
5
6namespace dqm {
7
9 ecal_wab_rec_name_ = ps.get<std::string>("ecal_WAB_rec_name");
10 ecal_wab_rec_pass_ = ps.get<std::string>("ecal_WAB_rec_pass");
11
12 return;
13}
14
16 auto wab_rec{event.getObject<ldmx::EcalWABResult>(ecal_wab_rec_name_,
18
19 histograms_.fill("ThetaDiffElectronPhoton",
20 wab_rec.getRecThetaDiffElectronPhoton(),
21 wab_rec.getTrueThetaDiffElectronPhoton());
22 histograms_.fill("ThetaElectron", wab_rec.getRecThetaElectron(),
23 wab_rec.getTrueThetaElectron());
24 histograms_.fill("ThetaPhoton", wab_rec.getRecThetaPhoton(),
25 wab_rec.getTrueThetaPhoton());
26 histograms_.fill("PhiDiffElectronPhoton",
27 wab_rec.getRecPhiDiffElectronPhoton(),
28 wab_rec.getTruePhiDiffElectronPhoton());
29 histograms_.fill("PhiElectron", wab_rec.getRecPhiElectron(),
30 wab_rec.getTruePhiElectron());
31 histograms_.fill("PhiPhoton", wab_rec.getRecPhiPhoton(),
32 wab_rec.getTruePhiPhoton());
33 histograms_.fill("ElectronEnergy", wab_rec.getRecElectronShowerEnergy(),
34 wab_rec.getTrueElectronShowerEnergy());
35 histograms_.fill("PhotonEnergy", wab_rec.getRecPhotonShowerEnergy(),
36 wab_rec.getTruePhotonShowerEnergy());
37 histograms_.fill("ElectronThetaDiff", wab_rec.getTrueRecThetaDiffElectron());
38 histograms_.fill("PhotonThetaDiff", wab_rec.getTrueRecThetaDiffPhoton());
39 histograms_.fill("ElectronPhiDiff", wab_rec.getTrueRecPhiDiffElectron());
40 histograms_.fill("PhotonPhiDiff", wab_rec.getTrueRecPhiDiffPhoton());
41 histograms_.fill("ProgressNum", wab_rec.getProgressNum());
42
43 return;
44}
45
46} // namespace dqm
47
Class used to encapsulate the results obtained from EcalWABRecProcessor.
#define DECLARE_ANALYZER(CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Generate histograms to check WAB-related angular reconstruction.
virtual void analyze(const framework::Event &event) override
Fills histograms.
virtual void configure(framework::config::Parameters &ps) override
Input python configuration parameters.
std::string ecal_wab_rec_name_
Collection Name for WABRec object.
std::string ecal_wab_rec_pass_
Pass Name for WABRec 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