Belle II Software  release-08-01-10
EcmsCollectorModule.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 #include <calibration/CalibrationCollectorModule.h>
9 
10 #include <limits>
11 #include <vector>
12 
13 namespace Belle2 {
24  static const double realNaN = std::numeric_limits<double>::quiet_NaN();
25 
26 
29 
30  public:
35 
39  void prepare() override final;
40 
45  void collect() override final;
46 
47  private:
48 
49  void resize(int n);
50 
51  int m_exp = -1;
52  int m_run = -1;
53  int m_evt = -1;
54  double m_time = realNaN;
55 
56  std::vector<double> m_pBcms = {};
57  std::vector<double> m_mB = {};
58  std::vector<int> m_pdg = {};
59  std::vector<int> m_mode = {};
60  std::vector<double> m_Kpid = {};
61  std::vector<double> m_R2 = {};
62  std::vector<double> m_mD = {};
63  std::vector<double> m_dmDstar = {};
64 
65  };
66 
68 } // end namespace Belle2
69 
Calibration collector module base class.
Collector for the collision energy calibration based on the hadronic modes.
void prepare() override final
Initialize the module.
std::vector< double > m_dmDstar
D*-D0 mass.
std::vector< double > m_Kpid
Kaon PID.
std::vector< double > m_pBcms
B mesons CMS momentum.
std::vector< int > m_mode
decay mode ID
double m_time
event time [hours]
void resize(int n)
resize the event members to n candidates
std::vector< double > m_mB
B mesons mass.
void collect() override final
Event processor The filling of the tree.
std::vector< double > m_mD
D meson mass.
std::vector< double > m_R2
the R2 variable used for the continuum suppression
std::vector< int > m_pdg
B meson PDG code (can neutral or charged)
static const double realNaN
constant for double NaN
Abstract base class for different kinds of events.