LDMX Software
ElectronCounter.h
1
2#ifndef RECON_ELECTRONCOUNTER_H
3#define RECON_ELECTRONCOUNTER_H
4
5//---< Framework >---//
6#include "Framework/Configure/Parameters.h"
8
9//---< TrigScint >---//
10
11namespace recon {
12
21 public:
29 ElectronCounter(const std::string& name, framework::Process& process);
30
33
43 void configure(framework::config::Parameters& parameters) override;
44
50 void produce(framework::Event& event) override;
51
52 private:
56 std::string input_coll_;
57
61 std::string input_pass_name_;
62
67 std::string output_coll_;
68
73
79
80}; // ElectronCounter
81} // namespace recon
82
83#endif // RECON_ELECTRONCOUNTER_H
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
Base class for a module which produces a data product.
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
Electron counting processor.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
void produce(framework::Event &event) override
Process the event and put new data products into it.
std::string output_coll_
The name of the output collection used to save some electron counting variables.
int use_sim_electron_count_
Use the number of electrons actually simulated in the event as the electron count.
std::string input_coll_
The name of the input collection used for counting electrons.
ElectronCounter(const std::string &name, framework::Process &process)
Constructor.
int n_electrons_sim_
The number of electrons actually simulated in the event.
std::string input_pass_name_
The pass name of the input collection used for counting electrons.