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 "Ecal/Event/EcalHit.h"
12#include "Framework/Configure/Parameters.h"
16#include "SimCore/Event/SimParticle.h"
18#include "Tools/AnalysisUtils.h"
19
20namespace recon {
21
30 public:
34 RecoilFiducialityProcessor(const std::string& name,
35 framework::Process& process)
36 : framework::Producer(name, process) {}
37
41 virtual ~RecoilFiducialityProcessor() = default;
42
48 void configure(framework::config::Parameters& parameters) override;
49
56 void produce(framework::Event& event) override;
57
58 private:
60 double min_p_mag_;
61
64
66 std::string input_pass_name_;
67
69 std::string ecal_collection_;
70
72 std::string hcal_collection_;
73
75 std::string recoil_collection_;
76
78 std::string output_collection_;
79
81 bool inverse_skim_{false};
82};
83
84} // namespace recon
85
86#endif
Collection of utility functions useful for analysis.
Base classes for all user event processing components to extend.
Class that holds truth-level fiduciality flags on the signal recoil electron.
Class which stores simulated calorimeter hit information.
Class which encapsulates information from a hit in a simulated tracking detector.
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.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
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.
Definition PerfDict.cxx:45