LDMX Software
BeamElectronLocator.h
1
2#ifndef RECON_BEAMELECTRONLOCATOR_H
3#define RECON_BEAMELECTRONLOCATOR_H
4
5//---< Framework >---//
6#include "Framework/Configure/Parameters.h"
8
9//---< Recon >---//
12
13namespace recon {
14
27 public:
35 BeamElectronLocator(const std::string &name, framework::Process &process);
36
38 virtual ~BeamElectronLocator();
39
49 void configure(framework::config::Parameters &parameters) override;
50
54 void onProcessStart() override;
55
61 void produce(framework::Event &event) override;
62
63 private:
67 std::string inputColl_;
68
72 std::string inputPassName_;
73
78 std::string outputColl_;
79
83 double minXmm_;
87 double maxXmm_;
88
92 double minYmm_;
96 double maxYmm_;
97
106
112
116 bool verbose_{false};
117
127 int bin(float coordinate, double binWidth, double min, double max);
128
129}; // BeamElectronLocator
130} // namespace recon
131
132#endif // RECON_BEAMELECTRONLOCATOR_H
Class that represents the truth information about beam electron at the target.
Base classes for all user event processing components to extend.
Class which stores simulated calorimeter hit information.
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.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Electron counting processor.
double granularityYmm_
The granularity of the detector (e.g.
double minXmm_
The min value measured by the system (edge) in X, in mm.
void onProcessStart() override
Prints the configuration to log in debug mode.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
double tolerance_
The tolerance within which simhits are considered to belong to the same electron.
virtual ~BeamElectronLocator()
Destructor.
std::string outputColl_
The name of the output collection used to save some electron counting variables.
std::string inputPassName_
The pass name of the input collection used for counting electrons.
bool verbose_
Indicate verbose printout to log according to log level.
double minYmm_
The min value measured by the system (edge) in Y, in mm.
std::string inputColl_
The name of the input collection used for counting electrons.
double maxYmm_
The max value measured by the system (edge) in Y, in mm.
int bin(float coordinate, double binWidth, double min, double max)
Bins coordinates according to some given granularity (passed as argument).
void produce(framework::Event &event) override
Process the event and put new data products into it.
double granularityXmm_
The granularity of the detector (e.g.
double maxXmm_
The max value measured by the system (edge) in X, in mm.