Belle II Software development
TrgEclFAMFit.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#ifndef TRGECLFAMFIT_H
10#define TRGECLFAMFIT_H
11
12#include "trg/ecl/TrgEclMapping.h"
13#include <trg/ecl/TrgEclDataBase.h>
14
15#include <array>
16
17namespace Belle2 {
22
25
26 private:
28 static constexpr int c_NTC = 576;
30 static constexpr int c_nFitSample = 12;
31
32 public:
33
36
38 virtual ~TrgEclFAMFit();
39
41 void setup(int);
43 void save(int);
45 void FAMFit01(const std::vector<std::vector<double>>&, const std::vector<std::vector<double>>&);
47 void FAMFit02(std::vector<std::vector<double>>, const std::vector<std::vector<double>>&);
49 void FAMFit03(const std::vector<std::vector<double>>&, const std::vector<std::vector<double>>&);
51 void setBeamBkgTagFlag(int beambkgtagflag) { m_BeamBkgTag = beambkgtagflag; }
53 void setAnaTagFlag(int anatagflag) { m_AnaTag = anatagflag; }
55 void setThreshold(const std::array<int, c_NTC>& tcethreshold)
56 {
57 m_TCEThreshold = tcethreshold;
58 };
59
60 void setBeamBkgTag();
62 void clear();
63
64 private:
66 std::array<std::vector<double>, c_NTC> m_TCFitEnergy;
68 std::array<std::vector<double>, c_NTC> m_TCFitTiming;
70 std::array<std::vector<int>, c_NTC> m_BeamBkgInfo;
72 std::array<std::vector<double>, c_NTC> m_TCRawEnergy;
74 std::array<std::vector<double>, c_NTC> m_TCRawTiming;
75
76
81
83 std::array<std::array<double, c_nFitSample>, 20> m_CoeffSigPDF0;
85 std::array<std::array<double, c_nFitSample>, 20> m_CoeffSigPDF1;
87 std::array<std::array<double, c_nFitSample>, 20> m_CoeffNoise31;
89 std::array<std::array<double, c_nFitSample>, 20> m_CoeffNoise32;
91 std::array<std::array<double, c_nFitSample>, 20> m_CoeffNoise33;
92
94 int m_BeamBkgTag = 0;
96 int m_AnaTag = 0;
98 std::array<int, c_NTC> m_TCEThreshold;
100 int m_EventId = 0;
101
102 };
103
104} // end namespace Belle2
105
106#endif
class TrgEclDataBase;
int m_AnaTag
Fill Analysis table.
std::array< std::vector< int >, c_NTC > m_BeamBkgInfo
fit timing
void save(int)
save fitting result into tables
void FAMFit03(const std::vector< std::vector< double > > &, const std::vector< std::vector< double > > &)
function for backup2
void setup(int)
setup fam module
std::array< int, c_NTC > m_TCEThreshold
Threshold (MeV)
void FAMFit02(std::vector< std::vector< double > >, const std::vector< std::vector< double > > &)
function for backup 1
TrgEclFAMFit()
Constructor.
std::array< std::vector< double >, c_NTC > m_TCRawEnergy
Raw energy.
static constexpr int c_NTC
Number of ECL TriggerCells (TC)
int m_BeamBkgTag
Add beambkg.
void setBeamBkgTag()
set Beam Background Tag
std::array< std::vector< double >, c_NTC > m_TCRawTiming
Raw timing.
void FAMFit01(const std::vector< std::vector< double > > &, const std::vector< std::vector< double > > &)
function for fitting
std::array< std::array< double, c_nFitSample >, 20 > m_CoeffNoise32
Coeffisient of noise 2.
virtual ~TrgEclFAMFit()
Destructor.
void setThreshold(const std::array< int, c_NTC > &tcethreshold)
set Threshold
TrgEclDataBase * m_DataBase
Object of DataBase.
std::array< std::array< double, c_nFitSample >, 20 > m_CoeffSigPDF1
Coeffisients of signal PDF1.
std::array< std::array< double, c_nFitSample >, 20 > m_CoeffNoise33
Coeffisient of noise 3.
std::array< std::vector< double >, c_NTC > m_TCFitEnergy
fit energy
std::array< std::array< double, c_nFitSample >, 20 > m_CoeffSigPDF0
Coeffisients of signal PDF0.
void setBeamBkgTagFlag(int beambkgtagflag)
set Beam Background Tag flag
void clear()
Clear vectors.
int m_EventId
Fill Analysis table.
std::array< std::array< double, c_nFitSample >, 20 > m_CoeffNoise31
Coeffisients of noise 1.
static constexpr int c_nFitSample
Number of fit samples.
TrgEclMapping * m_TCMap
Object of TC Mapping.
std::array< std::vector< double >, c_NTC > m_TCFitTiming
fit timing
void setAnaTagFlag(int anatagflag)
set flag for saving analysis table
A class of TC Mapping.
Abstract base class for different kinds of events.