LDMX Software
NtupleWriter.h
1#ifndef TRIGGER_NTUPLEWRITER_H_
2#define TRIGGER_NTUPLEWRITER_H_
3
5#include "Framework/NtupleManager.h"
6#include "TFile.h"
7// #include "TTree.h"
8using std::vector;
9
10namespace trigger {
11
17 public:
18 NtupleWriter(const std::string& name, framework::Process& process);
20 virtual void produce(framework::Event& event);
21 virtual void onProcessStart();
22 virtual void onProcessEnd();
23
24 private:
25 TFile* outFile_{nullptr};
26 std::string tag_{"Events"};
27 std::string outPath_{"./ntuple.root"};
28 bool writeTruth_{true};
29 bool writeEle_{true};
30 bool writeEcalSums_{true};
31 bool writeHcalSums_{true};
32};
33} // namespace trigger
34
35#endif // TRIGGER_NTUPLEWRITER_H_
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:41
Class which represents the process under execution.
Definition Process.h:36
Base class for a module which produces a data product.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Null algorithm test.
virtual void onProcessStart()
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
virtual void configure(framework::config::Parameters &)
Callback for the EventProcessor to configure itself from the given set of parameters.
virtual void produce(framework::Event &event)
Process the event and put new data products into it.
virtual void onProcessEnd()
Callback for the EventProcessor to take any necessary action when the processing of events finishes,...