2#include "DQM/EcalDigiVerifier.h"
4#include "Ecal/Event/EcalHit.h"
20 std::vector<ldmx::SimCalorimeterHit> ecalSimHits =
25 std::sort(ecalSimHits.begin(), ecalSimHits.end(),
28 return lhs.getID() < rhs.getID();
31 std::vector<ldmx::EcalHit> ecalRecHits =
35 std::sort(ecalRecHits.begin(), ecalRecHits.end(),
37 return lhs.getID() < rhs.getID();
42 double totalRecEnergy{0.};
46 if (recHit.isNoise()) {
51 int rawID = recHit.getID();
55 double totalSimEDep = 0.;
57 if (rawID == simHit.getID()) {
58 numSimHits += simHit.getNumberOfContribs();
59 totalSimEDep += simHit.getEdep();
60 }
else if (rawID < simHit.getID()) {
68 recHit.getAmplitude());
70 totalRecEnergy += recHit.getEnergy();
76 if (totalRecEnergy > 6000.) {
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Class which stores simulated calorimeter hit information.
std::string ecalSimHitPass_
Pass Name for SimHits.
std::string ecalRecHitColl_
Collection Name for RecHits.
virtual void analyze(const framework::Event &event)
Fills histograms.
std::string ecalSimHitColl_
Collection Name for SimHits.
virtual void configure(framework::config::Parameters &ps)
Input python configuration parameters.
std::string ecalRecHitPass_
Pass Name for RecHits.
HistogramHelper histograms_
Interface class for making and filling histograms.
void setStorageHint(framework::StorageControl::Hint hint)
Mark the current event as having the given storage control hint from this module.
Implements an event buffer system for storing event data.
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Stores reconstructed hit information from the ECAL.
Stores simulated calorimeter hit information.
constexpr StorageControl::Hint hint_shouldKeep
storage control hint alias for backwards compatibility
constexpr StorageControl::Hint hint_shouldDrop
storage control hint alias for backwards compatibility