LDMX Software
TrigScintMeasurementProducer.h
1#pragma once
2
3#include <string>
4#include <utility>
5#include <vector>
6
7#include "Framework/Configure/Parameters.h"
9
10namespace tracking::reco {
11
38 public:
39 TrigScintMeasurementProducer(const std::string& name,
42
43 void configure(framework::config::Parameters& parameters) override;
44 void produce(framework::Event& event) override;
45
46 private:
48 std::vector<std::string> input_collections_;
50 std::string input_pass_;
52 std::string out_collection_;
53
54 // Bar positions come from the TrigScintGeometry conditions object
55 // (getCondition), not typed here.
56
59 std::string daq_map_file_;
61 std::vector<std::pair<std::string, int>> daq_modules_;
62
65 double min_pe_{0.};
67 double sigma_y_{0.9};
68};
69
70} // namespace tracking::reco
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.
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
Turns reconstructed trigger-scintillator bar clusters into geometry-aware ldmx::Measurement objects.
void configure(framework::config::Parameters &parameters) override
Callback for the EventProcessor to configure itself from the given set of parameters.
std::string out_collection_
output ldmx::Measurement collection name
std::string input_pass_
pass name of the input collections ("" = any)
std::vector< std::pair< std::string, int > > daq_modules_
parsed DAQ map: (decoded collection name, geometry module index)
std::vector< std::string > input_collections_
input cluster collections, one per module (index = module number)
void produce(framework::Event &event) override
Process the event and put new data products into it.
std::string daq_map_file_
optional TS DAQ-map JSON (decode collection -> geometry module).
double sigma_y_
assumed y measurement resolution [mm] (local covariance)
double min_pe_
optional cluster selection: cluster PE must exceed this (0 = keep all; the clustering seed/threshold ...