Belle II Software  release-05-02-19
TOPPulseHeightCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <calibration/CalibrationCollectorModule.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <top/dataobjects/TOPDigit.h>
16 #include <vector>
17 #include <string>
18 
19 namespace Belle2 {
31  class TOPPulseHeightCollectorModule : public CalibrationCollectorModule {
32 
33  public:
38 
39  private:
40 
44  virtual void prepare() final;
45 
49  virtual void collect() final;
50 
51  // steering parameters
52  int m_nx;
53  double m_xmax;
54  std::vector<double> m_widthWindow;
55  std::vector<double> m_timeWindow;
57  // collections
60  // other
61  std::vector<std::string> m_names;
63  };
64 
66 } // end namespace Belle2
Belle2::TOPPulseHeightCollectorModule::m_timeWindow
std::vector< double > m_timeWindow
lower and upper bound of time window
Definition: TOPPulseHeightCollectorModule.h:63
Belle2::TOPPulseHeightCollectorModule::prepare
virtual void prepare() final
Replacement for initialize().
Definition: TOPPulseHeightCollectorModule.cc:54
Belle2::TOPPulseHeightCollectorModule::m_nx
int m_nx
number of histogram bins
Definition: TOPPulseHeightCollectorModule.h:60
Belle2::TOPDigit
Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHi...
Definition: TOPDigit.h:34
Belle2::TOPPulseHeightCollectorModule::m_widthWindow
std::vector< double > m_widthWindow
lower and upper bound of pulse-width window
Definition: TOPPulseHeightCollectorModule.h:62
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPPulseHeightCollectorModule::collect
virtual void collect() final
Replacement for event().
Definition: TOPPulseHeightCollectorModule.cc:92
Belle2::TOPPulseHeightCollectorModule::m_xmax
double m_xmax
histogram upper bound [ADC counts]
Definition: TOPPulseHeightCollectorModule.h:61
Belle2::TOPPulseHeightCollectorModule::m_names
std::vector< std::string > m_names
histogram names
Definition: TOPPulseHeightCollectorModule.h:69
Belle2::TOPPulseHeightCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of TOP digits
Definition: TOPPulseHeightCollectorModule.h:66
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TOPPulseHeightCollectorModule::TOPPulseHeightCollectorModule
TOPPulseHeightCollectorModule()
Constructor.
Definition: TOPPulseHeightCollectorModule.cc:33