Belle II Software development
TOPLikelihoodScanResult.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#include <framework/gearbox/Const.h>
13
14namespace Belle2 {
25
26 public:
27
32 {}
33
37 void set(float mostLikelyMass,
38 float mostLikelyMassIntervalLow,
39 float mostLikelyMassIntervalUp,
40 float threshold,
41 float mostLikelySignalPhotonCount,
42 float mostLikelyBackgroundPhotonCount,
43 float mostLikelyDeltaPhotonCount,
44 const std::vector<float>& coarseScanMassPoints,
45 const std::vector<float>& fineScanMassPoints,
46 const std::vector<float>& coarseScanLLValues,
47 const std::vector<float>& fineScanLLValues,
48 const std::vector<float>& coarseScanExpectedPhotons,
49 const std::vector<float>& fineScanExpectedPhotons)
50 {
51 m_mostLikelyMass = mostLikelyMass;
52 m_mostLikelyMassIntervalLow = mostLikelyMassIntervalLow;
53 m_mostLikelyMassIntervalUp = mostLikelyMassIntervalUp;
54 m_threshold = threshold;
55 m_mostLikelySignalPhotonCount = mostLikelySignalPhotonCount;
56 m_mostLikelyBackgroundPhotonCount = mostLikelyBackgroundPhotonCount;
57 m_mostLikelyDeltaPhotonCount = mostLikelyDeltaPhotonCount;
58 m_coarseScanMassPoints = coarseScanMassPoints;
59 m_fineScanMassPoints = fineScanMassPoints;
60 m_coarseScanLLValues = coarseScanLLValues;
61 m_fineScanLLValues = fineScanLLValues;
62 m_coarseScanExpectedPhotons = coarseScanExpectedPhotons;
63 m_fineScanExpectedPhotons = fineScanExpectedPhotons;
64 }
65
70 float getMostLikelyMass() const {return m_mostLikelyMass;}
71
77
83
88 float getThreshold() const {return m_threshold;}
89
90
96
97
103
104
110
111
116 std::vector<float> getCoarseScanMassPoints() const {return m_coarseScanMassPoints;}
117
122 std::vector<float> getFineScanMassPoints() const {return m_fineScanMassPoints;}
123
124
129 std::vector<float> getCoarseScanLLValues() const {return m_coarseScanLLValues;}
130
135 std::vector<float> getFineScanLLValues() const {return m_fineScanLLValues;}
136
142
147 std::vector<float> getFineScanExpectedPhotons() const {return m_fineScanExpectedPhotons;}
148
149 private:
153 float m_threshold = 0;
159 std::vector<float> m_coarseScanMassPoints;
160 std::vector<float> m_fineScanMassPoints;
162 std::vector<float> m_coarseScanLLValues;
163 std::vector<float> m_fineScanLLValues;
165 std::vector<float> m_coarseScanExpectedPhotons;
166 std::vector<float> m_fineScanExpectedPhotons;
170 };
171
172
174} // end namespace Belle2
175
Defines interface for accessing relations of objects in StoreArray.
Class to store the result of the TOP LL scan (output of TOPLLScanner).
std::vector< float > getFineScanMassPoints() const
Return a std::vector containing the mass points used for the fine LL scane.
float getMostLikelyMass() const
Return the most likely mass form the scan.
std::vector< float > getFineScanExpectedPhotons() const
Return a std::vector containing the number of expected photons of the fine scan.
float m_mostLikelyBackgroundPhotonCount
Expected number of background photons at the LL max.
float getMostLikelyMassIntervalLow() const
Return the lower limit of the mass interval.
void set(float mostLikelyMass, float mostLikelyMassIntervalLow, float mostLikelyMassIntervalUp, float threshold, float mostLikelySignalPhotonCount, float mostLikelyBackgroundPhotonCount, float mostLikelyDeltaPhotonCount, const std::vector< float > &coarseScanMassPoints, const std::vector< float > &fineScanMassPoints, const std::vector< float > &coarseScanLLValues, const std::vector< float > &fineScanLLValues, const std::vector< float > &coarseScanExpectedPhotons, const std::vector< float > &fineScanExpectedPhotons)
Sets other data members for a given particle hypothesis.
float m_threshold
location of the Chrerenkov threshold from the LL scan
std::vector< float > m_fineScanExpectedPhotons
expected signal photons from the fine scan
float m_mostLikelyDeltaPhotonCount
Expected number of delta rays photons at the LL max.
float m_mostLikelyMassIntervalUp
upper edge of the mass interval from the LL
std::vector< float > m_fineScanLLValues
LL values of the fine scan.
float getMostLikelySignalPhotonCount() const
Return the number of expected photons at the LL maximum.
float getMostLikelyMassIntervalUp() const
Return the upper limit of the mass interval.
float m_mostLikelyMassIntervalLow
lower edge of the mass interval from the LL
std::vector< float > m_fineScanMassPoints
mass points used in the fine scan
std::vector< float > m_coarseScanLLValues
LL values of the coarse scan.
float getMostLikelyDeltaPhotonCount() const
Return the number of expected photons at the LL maximum.
float getThreshold() const
Return the position of the Cherenkov threshold from the LL scan.
std::vector< float > getFineScanLLValues() const
Return a std::vector containing the LL values of the fine scan.
std::vector< float > m_coarseScanMassPoints
mass points used in the coarse scan
float getMostLikelyBackgroundPhotonCount() const
Return the number of expected photons at the LL maximum.
float m_mostLikelySignalPhotonCount
Expected number of signal photons at the LL max.
TOPLikelihoodScanResult()
default constructor
float m_mostLikelyMass
mass that maximizes the LL
std::vector< float > getCoarseScanExpectedPhotons() const
Return a std::vector containing the number of expected photons of the coarse scan.
std::vector< float > getCoarseScanLLValues() const
Return a std::vector containing the LL values of the coarse scan.
std::vector< float > m_coarseScanExpectedPhotons
expected signal photons from the coarse scan
std::vector< float > getCoarseScanMassPoints() const
Return a std::vector containing the mass points used for the coarse LL scane.
ClassDef(TOPLikelihoodScanResult, 1)
ClassDef.
Abstract base class for different kinds of events.