LDMX Software
RecoilFiducialityProcessor.h
Go to the documentation of this file.
1
7#ifndef RECON_RECOILFIDUCIALITYPROCESSOR_H_
8#define RECON_RECOILFIDUCIALITYPROCESSOR_H_
9
10// LDMX
11#include "Framework/Configure/Parameters.h"
13
14namespace recon {
15
24 public:
28 RecoilFiducialityProcessor(const std::string& name,
30 : framework::Producer(name, process) {}
31
35 virtual ~RecoilFiducialityProcessor() = default;
36
42 void configure(framework::config::Parameters& parameters) override;
43
50 void produce(framework::Event& event) override;
51
52 private:
54 double min_p_mag_;
55
58
60 std::string input_pass_name_;
61
63 std::string ecal_collection_;
64
66 std::string hcal_collection_;
67
69 std::string recoil_collection_;
70
72 std::string output_collection_;
73
75 bool inverse_skim_{false};
76};
77
78} // namespace recon
79
80#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
Flags events with a fiducial recoil electron, based on truth information.
bool inverse_skim_
Inverse option for skimming.
std::string ecal_collection_
The name of the ecal collection.
RecoilFiducialityProcessor(const std::string &name, framework::Process &process)
Class constructor.
std::string hcal_collection_
The name of the hcal collection.
std::string output_collection_
The name of the output collection.
std::string recoil_collection_
The name of the recoil tracker collection.
int min_tracker_hits_
Minimum number of recoil electron hits in the recoil tracker.
virtual ~RecoilFiducialityProcessor()=default
Class destructor.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
double min_p_mag_
Minimum recoil electron momentum at production.
void produce(framework::Event &event) override
Create a FiducialFlag object to contain info about whether the recoil electron satisfies certain fidu...
std::string input_pass_name_
The pass name of the input collections.
All classes in the ldmx-sw project use this namespace.