3#include "TrigScint/Event/TrigScintQIEDigis.h"
8 std::string input_name_, input_pass_;
10 int chan_id_, elec_id_, ldmxsw_event_;
11 uint32_t time_since_spill_;
12 std::vector<int> adc_, tdc_, cid_;
22 input_name_ = ps.getParameter<std::string>(
"input_name");
23 input_pass_ = ps.getParameter<std::string>(
"input_pass");
33 flat_tree_ =
new TTree(
"digis",
"Ntuplized TS Digis");
35 flat_tree_->Branch(
"time_since_spill", &time_since_spill_);
36 flat_tree_->Branch(
"ldmxsw_event", &ldmxsw_event_);
37 flat_tree_->Branch(
"chan_id", &chan_id_);
38 flat_tree_->Branch(
"elec_id", &elec_id_);
39 flat_tree_->Branch(
"adc", &adc_);
40 flat_tree_->Branch(
"tdc", &tdc_);
41 flat_tree_->Branch(
"cid", &cid_);
46 input_name_, input_pass_)};
47 ldmxsw_event_ =
event.getEventNumber();
48 for (
const auto& digi : digis) {
50 chan_id_ = digi.getChanID();
51 elec_id_ = digi.getElecID();
Base classes for all user event processing components to extend.
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
void analyze(const framework::Event &event) final override
Process the event and make histograms or summaries.
void onProcessStart() final override
Callback for the EventProcessor to take any necessary action when the processing of events starts,...
void configure(framework::config::Parameters &ps) final override
Callback for the EventProcessor to configure itself from the given set of parameters.
Base class for a module which does not produce a data product.
TDirectory * getHistoDirectory()
Access/create a directory in the histogram file for this event processor to create histograms and ana...
Implements an event buffer system for storing event data.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
class for storing QIE output
uint32_t getTimeSinceSpill() const
Store the event time since spill counter.
All classes in the ldmx-sw project use this namespace.