LDMX Software
PropagationMapWriter.h
1#ifndef TRIGGER_PROPAGATIONMAPWRITER_H_
2#define TRIGGER_PROPAGATIONMAPWRITER_H_
3
5#include "TFile.h"
6#include "TProfile2D.h"
7
8namespace trigger {
9
16 public:
17 PropagationMapWriter(const std::string& name, framework::Process& process);
19 virtual void produce(framework::Event& event);
20 virtual void onProcessStart();
21 virtual void onProcessEnd();
22
23 private:
24 TFile* out_file_{nullptr};
25 std::string out_path_{"./propagationMap.root"};
26 std::string ecal_scoring_plane_passname_;
27 std::string target_scoring_plane_passname_;
28 std::string target_sp_hits_events_passname_;
29 std::string ecal_sp_hits_events_passname_;
30 TProfile2D* profx_{nullptr};
31 TProfile2D* profy_{nullptr};
32};
33} // namespace trigger
34
35#endif // TRIGGER_PROPAGATIONMAPWRITER_H_
Base classes for all user event processing components to extend.
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
virtual void produce(framework::Event &event)
Process the event and put new data products into it.
virtual void configure(framework::config::Parameters &)
Callback for the EventProcessor to configure itself from the given set of parameters.
virtual void onProcessStart()
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
virtual void onProcessEnd()
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...