LDMX Software
RawSiStripDQM.h
1#pragma once
2
3#include <map>
4#include <string>
5#include <vector>
6
7#include "Framework/Event.h"
9#include "TH1.h"
10
11namespace tracking::dqm {
12
18 public:
19 RawSiStripDQM(const std::string& name, framework::Process& process)
20 : framework::Analyzer(name, process) {};
21
22 ~RawSiStripDQM() = default;
23
24 void configure(framework::config::Parameters& parameters) override;
25
26 void analyze(const framework::Event& event) override;
27
28 private:
30 std::vector<TH1*> getHists(const std::vector<std::string>& names);
31
32 std::string raw_hits_collection_;
33 std::string subtracted_hits_collection_;
34 std::string waveforms_collection_;
35 std::string fitted_hits_collection_;
36 std::string input_pass_name_;
37 int n_hybrids_{0};
38
40 std::vector<std::string> raw_adc_names_;
41 std::vector<std::string> subtracted_adc_names_;
42 std::vector<std::string> pchannel_names_;
43 std::vector<std::string> peak_names_;
45 std::map<int, std::string> fit_amplitude_names_;
46};
47} // namespace tracking::dqm
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
DQM for silicon strip data read from the DAQ: raw hits, pedestal subtracted hits, the waveforms assem...
void configure(framework::config::Parameters &parameters) override
Callback for the EventProcessor to configure itself from the given set of parameters.
void analyze(const framework::Event &event) override
Process the event and make histograms or summaries.
std::map< int, std::string > fit_amplitude_names_
fit amplitude histogram name by layer id
std::vector< TH1 * > getHists(const std::vector< std::string > &names)
histograms by name, looked up once per event
std::vector< std::string > raw_adc_names_
per-hybrid histogram names, built once