LDMX Software
ClusterTripletMaker.h
Go to the documentation of this file.
1
7#ifndef TOOLS_CLUSTERTRIPLETMAKER_H
8#define TOOLS_CLUSTERTRIPLETMAKER_H
9
10// LDMX Framework
11#include "Framework/Configure/Parameters.h"
12#include "Framework/Event.h"
14
15#include <fstream>
16#include <string>
17#include <vector>
18
19#include "TrigScint/Event/TrigScintCluster.h"
20
21namespace tools {
22
29 public:
30 ClusterTripletMaker(const std::string& name, framework::Process& process);
31
32 virtual ~ClusterTripletMaker() = default;
33
35
36 void analyze(const framework::Event& event) override;
37
38 void onProcessStart() override;
39
40 void onProcessEnd() override;
41
42 private:
43 // verbosity
44 int verbose_{0};
45
46 // specific pass name
47 std::string pass_name_{""};
48
49 // input cluster collections
50 std::vector<std::string> cluster_input_collections_;
51
52 // output text file
53 std::string output_file_{"clusters.txt"};
54
55 // output stream
56 std::ofstream output_stream_;
57};
58
59} // namespace tools
60
61#endif // TOOLS_CLUSTERTRIPLETMAKER_H
Base classes for all user event processing components to extend.
Class implementing an event buffer system for storing event data.
Base class for a module which does not produce a data product.
virtual void process(Event &event) final
Processing an event for an Analyzer is calling analyze.
Implements an event buffer system for storing event data.
Definition Event.h:42
Class which represents the process under execution.
Definition Process.h:37
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
Write trigger scintillator cluster triplets to a text file.
void configure(framework::config::Parameters &ps) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void onProcessStart() override
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.
void onProcessEnd() override
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...