Belle II Software development
TOPPulseHeightCollectorModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <calibration/CalibrationCollectorModule.h>
12#include <framework/datastore/StoreArray.h>
13#include <top/dataobjects/TOPDigit.h>
14#include <vector>
15#include <string>
16
17namespace Belle2 {
27
28 public:
33
34 private:
35
39 virtual void prepare() final;
40
44 virtual void collect() final;
45
46 // steering parameters
47 int m_nx;
48 double m_xmax;
49 std::vector<double> m_widthWindow;
50 std::vector<double> m_timeWindow;
52 // collections
55 // other
56 std::vector<std::string> m_names;
58 };
59
61} // end namespace Belle2
Calibration collector module base class.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Collector for channel pulse-height distributions.
std::vector< std::string > m_names
histogram names
double m_xmax
histogram upper bound [ADC counts]
std::vector< double > m_widthWindow
lower and upper bound of pulse-width window
std::vector< double > m_timeWindow
lower and upper bound of time window
StoreArray< TOPDigit > m_digits
collection of TOP digits
virtual void collect() final
Replacement for event().
virtual void prepare() final
Replacement for initialize().
Abstract base class for different kinds of events.