Belle II Software prerelease-10-00-00a
TOPPulseHeightPar.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#pragma once
9
10namespace Belle2 {
15
22 float x0 = 0;
23 float p1 = 0;
24 float p2 = 0;
25
31 double getValue(double x) const;
32
37 double getNorm() const;
38
43 double getMean() const;
44
49 double getRMS() const;
50
55 double getPeakPosition() const;
56
64 double getThresholdEffi(double threshold, double rmsNoise, int n = 100) const;
65
66 };
67
68}
double getThresholdEffi(double threshold, double rmsNoise, int n=100) const
Returns threshold efficiency.
double getMean() const
Returns distribution mean.
double getPeakPosition() const
Returns the position of distribution maximum.
double getNorm() const
Returns normalization constant.
double getValue(double x) const
Returns a value of non-normalized pulse height distribution at x Multiply with getNorm() to get norma...
double getRMS() const
Returns distribution standard deviation.
Abstract base class for different kinds of events.
Struct holding the pulse height parameterizations for the TOP counter.
float p1
distribution parameter p1
float x0
distribution parameter x0 [ADC counts]
float p2
distribution parameter p2