Belle II Software prerelease-11-00-00a
TOPBackSplashFitResult.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 <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
18
25
27
28 public:
33
41 TOPBackSplashFitResult(double time, double chisqdof, int nPhotons, int nTracksInSlot)
42 : m_time(time),
43 m_chisqdof(chisqdof),
44 m_nPhotons(nPhotons),
45 m_nTracksInSlot(nTracksInSlot)
46 {}
47
63 double timeErr,
64 double deltaT,
65 double deltaTerr,
66 double frac,
67 double fracErr,
68 double signalPhotons,
69 double signalPhotonsErr,
70 double chisqdof,
71 int nPhotons,
72 int nTracksInSlot)
73 : m_time(time),
74 m_timeErr(timeErr),
75 m_deltaT(deltaT),
76 m_deltaTerr(deltaTerr),
77 m_frac(frac),
78 m_fracErr(fracErr),
79 m_signalPhotons(signalPhotons),
80 m_signalPhotonsErr(signalPhotonsErr),
81 m_chisqdof(chisqdof),
82 m_nPhotons(nPhotons),
83 m_nTracksInSlot(nTracksInSlot)
84 {}
85
90 double getTime() const { return m_time; }
91
96 double getTimeErr() const { return m_timeErr; }
97
102 double getDelta() const { return m_deltaT; }
103
108 double getDeltaErr() const { return m_deltaTerr; }
109
114 double getFrac() const { return m_frac; }
115
120 double getFracErr() const { return m_fracErr; }
121
126 double getSignalPhotons() const { return m_signalPhotons; }
127
132 double getSignalPhotonsErr() const { return m_signalPhotonsErr; }
133
138 double getChisqdof() const { return m_chisqdof; }
139
144 int getNphotons() const { return m_nPhotons; }
145
150 int getNtracksInSlot() const { return m_nTracksInSlot; }
151
152 private:
154 float m_time{0.0};
155
157 float m_timeErr{0.0};
158
160 float m_deltaT{0.0};
161
163 float m_deltaTerr{0.0};
164
166 float m_frac{0.0};
167
169 float m_fracErr{0.0};
170
172 float m_signalPhotons{0.0};
173
176
178 float m_chisqdof{0.0};
179
182
185
188 };
189
191} // end namespace Belle2
float m_time
fitted timing from TOP
float m_deltaTerr
error on the time difference between direct and reflected peaks
double getFracErr() const
Return the error on the relative fraction of the direct peak with respect to the total.
double getTimeErr() const
Return time of extracted fit time error.
double getFrac() const
Return the relative fraction of the direct peak with respect to the total.
float m_signalPhotons
fitted number of photons
float m_frac
fractional yield of the first peak
float m_signalPhotonsErr
error on the fitted number of photons
TOPBackSplashFitResult()=default
Empty constructor for ROOT.
float m_deltaT
time difference between direct and reflected peaks
ClassDef(TOPBackSplashFitResult, 1)
Make this a ROOT class.
TOPBackSplashFitResult(double time, double chisqdof, int nPhotons, int nTracksInSlot)
Basic constructor with minimal information.
double getDelta() const
Return time difference between the direct and reflected light peaks.
float m_timeErr
error fitted timing from TOP
double getDeltaErr() const
Return error on time difference between the direct and reflected light peaks.
double getSignalPhotons() const
Return the normalization of the signal PDF.
float m_fracErr
error on the fractional yield of the first peak
TOPBackSplashFitResult(double time, double timeErr, double deltaT, double deltaTerr, double frac, double fracErr, double signalPhotons, double signalPhotonsErr, double chisqdof, int nPhotons, int nTracksInSlot)
Full constructor for development studies.
double getSignalPhotonsErr() const
Return error on the normalization of the signal PDF.
double getChisqdof() const
Return chi/d.o.f.
double getTime() const
Return time of extracted fit time.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.