LDMX Software
TrigMipReco.h
Go to the documentation of this file.
1
7#ifndef TRIGGER_TRIGMIPRECO_H
8#define TRIGGER_TRIGMIPRECO_H
9
10// LDMX Framework
11#include <chrono>
12
14#include "Framework/Configure/Parameters.h"
15#include "Framework/Event.h"
17#include "Trigger/Event/TrigCaloHit.h"
18#include "Trigger/Event/TrigMip.h"
19
20namespace trigger {
21
27 public:
28 TrigMipReco(const std::string& name, framework::Process& process)
30
32
33 void produce(framework::Event& event) override;
34
41 void onNewRun(const ldmx::RunHeader& rh) override;
42
46 void onProcessEnd() override;
47
48 private:
49 int nevents_{0};
50 double processing_time_{0.};
51 std::map<std::string, double> profiling_map_;
52 // name of collection for Hcal TP hits to be passed as input
53 std::string hit_coll_name_;
54 std::string hit_coll_passname_;
55 // name of output collection
56 std::string pass_coll_name_;
57 // calorimeter_type_is_hcal_ boolean
58 bool calorimeter_type_is_hcal_;
59
60 int max_layer_;
61 int min_track_length_;
62 // MIP peak is 10-11 MeV usually
63 float hcal_min_energy_;
64 // MIP peak around 17 MeV usually
65 float ecal_min_energy_;
66 // MeV
67 float ecal_max_energy_;
68 // mm
69 float search_radius_;
70 // MeV; Change as needed
71 float isolation_e_cut_;
72 // No more than 20% hole fraction ; Change as needed ; Converts tracks to MIP
73 // objects
74 float hole_fraction_max_;
75};
76} // namespace trigger
77
78#endif /* HCALTPSELECTOR_H */
Base classes for all user event processing components to extend.
Class implementing an event buffer system for storing event data.
Class that defines an HCal trigger cell detector ID.
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.
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:29
Run-specific configuration and data stored in its own output TTree alongside the event TTree in the o...
Definition RunHeader.h:57
void configure(framework::config::Parameters &ps) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void onNewRun(const ldmx::RunHeader &rh) override
onNewRun is the first function called for each processor after the conditions are fully configured an...
void produce(framework::Event &event) override
Process the event and put new data products into it.
void onProcessEnd() override
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...