LDMX Software
TriggerProcessor.h
Go to the documentation of this file.
1
9#ifndef RECON_TRIGGER_TRIGGERPROCESSOR_H_
10#define RECON_TRIGGER_TRIGGERPROCESSOR_H_
11
12// LDMX
13#include "Ecal/Event/EcalHit.h"
14#include "Event/TriggerResult.h"
15#include "Framework/Configure/Parameters.h"
17
18namespace recon {
19
33 public:
37 TriggerProcessor(const std::string& name, framework::Process& process)
38 : framework::Producer(name, process) {}
39
43 virtual ~TriggerProcessor() {}
44
50 void configure(framework::config::Parameters& parameters) override;
51
59 void produce(framework::Event& event) override;
60
61 private:
63 std::vector<double> layer_e_sum_cuts_;
64
67
73 int mode_{0};
74
77
84 int end_layer_{0};
85
87 TString algo_name_;
88
90 std::string input_coll_;
91
93 std::string input_pass_;
94
96 std::string output_coll_;
97};
98
99} // namespace recon
100
101#endif
Base classes for all user event processing components to extend.
Class that represents the trigger decision (pass/fail) for reconstruction.
Implements an event buffer system for storing event data.
Definition Event.h:42
Class which represents the process under execution.
Definition Process.h:36
Base class for a module which produces a data product.
Producer(const std::string &name, Process &process)
Class constructor.
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:29
Provides a trigger decision for recon using a TriggerResult object.
std::vector< double > layer_e_sum_cuts_
The energy sum to make cut on.
std::string input_coll_
The name of the input collection (the Ecal hits_).
TString algo_name_
The name of the trigger algorithm used.
int start_layer_
The first layer of layer sum.
double beam_energy_
The Beam energy [MeV].
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
virtual ~TriggerProcessor()
Class destructor.
TriggerProcessor(const std::string &name, framework::Process &process)
Class constructor.
int mode_
The trigger mode to run in.
int end_layer_
The endpoint layer of layer sum.
std::string output_coll_
The name of the output collection (the trigger decision).
void produce(framework::Event &event) override
Run the trigger algorithm and create a TriggerResult object to contain info about the trigger decisio...
std::string input_pass_
The pass name of the input (the Ecal hits_).
All classes in the ldmx-sw project use this namespace.