LDMX Software
EcalClusterAnalyzer.h
Go to the documentation of this file.
1
8#ifndef DQM_ECALCLUSTERANALYZER_H
9#define DQM_ECALCLUSTERANALYZER_H
10
11#include <algorithm>
12#include <fstream>
13#include <iostream>
14
15// LDMX Framework
16#include "DetDescr/SimSpecialID.h"
18#include "Ecal/Event/EcalHit.h"
19#include "Framework/Configure/Parameters.h"
23
24namespace dqm {
25
31 public:
32 EcalClusterAnalyzer(const std::string& name, framework::Process& process)
33 : Analyzer(name, process) {}
34 ~EcalClusterAnalyzer() override = default;
36 void analyze(const framework::Event& event) override;
37
38 private:
42
45
46 // Collection Name for SimHits
47 std::string ecal_sim_hit_coll_;
48
49 // Pass Name for SimHits
50 std::string ecal_sim_hit_pass_;
51
52 // Collection Name for RecHits
53 std::string rec_hit_coll_name_;
54
55 // Pass Name for RecHits
56 std::string rec_hit_pass_name_;
57
58 // Collection Name for clusters
59 std::string cluster_coll_name_;
60
61 // Pass Name for clusters
62 std::string cluster_pass_name_;
63
64 std::string ecal_sp_hits_passname_;
65
66 // Inverse skim flag
67 bool inverse_skim_;
68
69 // Minimum number of ECal clusters to keep the event
70 int n_ecal_clusters_min_;
71};
72
73} // namespace dqm
74
75#endif
Class that stores cluster information from the ECal.
Base classes for all user event processing components to extend.
Class which stores simulated calorimeter hit information.
Class which encapsulates information from a hit in a simulated tracking detector.
int nbr_of_electrons_
What is the number of electrons in the event?
bool use_simulated_electron_number_
Use the number of simulated electrons instead of the number of determined by the TS track counting.
void configure(framework::config::Parameters &ps) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.
Base class for a module which does not produce a data product.
virtual void process(Event &event) final
Processing an event for an Analyzer is calling analyze.
Analyzer(const std::string &name, Process &process)
Class constructor.
Implements an event buffer system for storing event data.
Definition Event.h:42
Class which represents the process under execution.
Definition Process.h:36
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29