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 "Framework/Configure/Parameters.h"
15
16namespace recon {
17
31 public:
35 TriggerProcessor(const std::string& name, framework::Process& process)
36 : framework::Producer(name, process) {}
37
41 virtual ~TriggerProcessor() {}
42
48 void configure(framework::config::Parameters& parameters) override;
49
57 void produce(framework::Event& event) override;
58
59 private:
61 std::vector<double> layer_e_sum_cuts_;
62
65
71 int mode_{0};
72
75
82 int end_layer_{0};
83
85 TString algo_name_;
86
88 std::string input_coll_;
89
91 std::string input_pass_;
92
94 std::string output_coll_;
95};
96
97} // namespace recon
98
99#endif
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.
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:26
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.