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> layerESumCuts_;
64
67
73 int mode_{0};
74
77
84 int endLayer_{0};
85
87 TString algoName_;
88
90 std::string inputColl_;
91
93 std::string inputPass_;
94
96 std::string outputColl_;
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:41
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.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Provides a trigger decision for recon using a TriggerResult object.
std::string inputPass_
The pass name of the input (the Ecal hits).
int startLayer_
The first layer of layer sum.
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.
std::string outputColl_
The name of the output collection (the trigger decision).
int mode_
The trigger mode to run in.
std::string inputColl_
The name of the input collection (the Ecal hits).
void produce(framework::Event &event) override
Run the trigger algorithm and create a TriggerResult object to contain info about the trigger decisio...
std::vector< double > layerESumCuts_
The energy sum to make cut on.
TString algoName_
The name of the trigger algorithm used.
double beamEnergy_
The Beam energy [MeV].
int endLayer_
The endpoint layer of layer sum.
All classes in the ldmx-sw project use this namespace.
Definition PerfDict.cxx:45