22 TMom::TMom(
const std::vector<double>& cutlow,
const std::vector<double>& cuthigh) {
init(cutlow, cuthigh); }
43 _cutLow.push_back(cutlow);
44 _cutHigh.push_back(cuthigh);
45 for (
int i = 0;
i < 101;
i++) {
49 void TMom::init(
const std::vector<double>& cutlow,
const std::vector<double>& cuthigh) {
62 assert(cutlow.size() == cuthigh.size());
65 _dimCut = cutlow.size();
68 for (
int i = 0;
i < 101;
i++) {
76 _cutLow.push_back(cutlow);
77 _cutHigh.push_back(cuthigh);
79 void TMom::setCut(
const std::vector<double>& cutlow,
const std::vector<double>& cuthigh) {
80 assert(cutlow.size() == cuthigh.size());
83 _dimCut = cutlow.size();
89 std::vector<double> dumb;
95 int passingAllCuts = 1;
97 for (
int iCut = 0; iCut < _dimCut; iCut++) {
99 if (valcut.at(iCut) > _cutLow.at(iCut) && valcut.at(iCut) <= _cutHigh.at(iCut)) {
106 if (passingAllCuts == 1) {
110 sum3 += val * val *
val;
117 _ampl.push_back(val);
147 double m = getMean();
148 double m2 = getMean2();
150 rms = TMath::Sqrt(m2 - m * m);
157 double m = getMean();
158 double m2 = getMean2();
159 double m3 = getMean3();
160 double sig = getRMS();
162 if (
nevt != 0 && sig != 0)
163 M3 = (m3 - 3.0 * m * (m2 - m *
m) - m * m * m) / (sig * sig * sig);
173 std::vector<double>
p;
174 double wbin = (
max -
min) / 100.;
177 for (
unsigned int i = 0;
i < _ampl.size();
i++) {
181 bung = (int)((_ampl.at(
i) -
min) / wbin) + 1;
182 if (1 <= bung && bung <= 100)
190 for (
int k = 1;
k < 101;
k++) {
191 if (bing[
k] > popmax) {
void addEntry(double val)
double getPeakValue(int i) const
void setCut(double, double)
void init(double, double)
std::vector< double > getPeak()