LDMX Software
VisiblesFeatureProducer.h
1/*
2 * @file VisiblesFeatureProducer.h
3 * @brief Class used to get features for visibles BDT,
4 * and can save features to a .txt file.
5 * @author Tyler Horoho, University of Virginia
6 */
7
8#ifndef DQM_VISIBLESFEATUREPRODUCER_H_
9#define DQM_VISIBLESFEATUREPRODUCER_H_
10
11// LDMX
12#include "Framework/Configure/Parameters.h"
14
15namespace dqm {
16
18 public:
19 VisiblesFeatureProducer(const std::string& name, framework::Process& process)
20 : Analyzer(name, process) {}
21
22 ~VisiblesFeatureProducer() override = default;
23
24 void configure(framework::config::Parameters& parameters) override;
25
26 void analyze(const framework::Event& event) override;
27
28 private:
29 bool training_{false};
30 std::string training_file_;
31
32 double beam_energy_mev_{0.};
33
34 std::string hcal_rec_collection_;
35 std::string hcal_rec_pass_name_;
36 std::string ecal_rec_collection_;
37 std::string ecal_rec_pass_name_;
38 bool recoil_from_tracking_{false};
39 std::string track_collection_;
40 std::string track_pass_name_;
41 std::string sp_collection_;
42 std::string sp_pass_name_;
43 std::string sim_particles_pass_name_;
44
45 bool inList(std::vector<int> parents, int track_id);
46};
47
48} // namespace dqm
49
50#endif
Base classes for all user event processing components to extend.
void configure(framework::config::Parameters &parameters) 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