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 <TObject.h>
13#include "trg/ecl/TrgEclMapping.h"
14#include <trg/ecl/TrgEclDataBase.h>
15
16namespace Belle2 {
21
23 class TrgEclFAMFit : public TObject {
24
25 public:
26
29
31 virtual ~TrgEclFAMFit();
32
34 void setup(int);
36 void save(int);
38 void FAMFit01(std::vector<std::vector<double>>, std::vector<std::vector<double>>);
40 void FAMFit02(std::vector<std::vector<double>>, std::vector<std::vector<double>>);
42 void FAMFit03(std::vector<std::vector<double>>, std::vector<std::vector<double>>);
44 void setBeamBkgTagFlag(int beambkgtagflag) { m_BeamBkgTag = beambkgtagflag; }
46 void setAnaTagFlag(int anatagflag) { m_AnaTag = anatagflag; }
48 void setThreshold(const std::vector<int>& tcethreshold)
49 {
50 m_TCEThreshold = tcethreshold;
51 };
52
53 void setBeamBkgTag();
54
56 std::vector<std::vector<double>> getFitEnergy() {return m_TCFitEnergy;}
58 std::vector<std::vector<double>> getFitTiming() {return m_TCFitTiming;}
60 std::vector<std::vector<int>> getBeamBkgTag() {return m_BeamBkgInfo;}
61
62 private:
63
65 std::vector<std::vector<double>> m_TCFitEnergy;
67 std::vector<std::vector<double>> m_TCFitTiming;
69 std::vector<std::vector<int>> m_BeamBkgInfo;
71 std::vector<std::vector<double>> m_TCRawEnergy;
73 std::vector<std::vector<double>> m_TCRawTiming;
74
75
80
82 std::vector<std::vector<double>> m_CoeffSigPDF0;
84 std::vector<std::vector<double>> m_CoeffSigPDF1;
86 std::vector<std::vector<double>> m_CoeffNoise31;
88 std::vector<std::vector<double>> m_CoeffNoise32;
90 std::vector<std::vector<double>> m_CoeffNoise33;
92 std::vector<double> m_TCLatency;
93
99 std::vector<int> m_TCEThreshold;
102
103 };
104
105} // end namespace Belle2
106
107#endif
class TrgEclDataBase;
int m_AnaTag
Fill Analysis table.
std::vector< std::vector< double > > m_TCFitEnergy
fit energy
void save(int)
save fitting result into tables
std::vector< std::vector< double > > getFitTiming()
Get TC Timing.
void setup(int)
setup fam module
TrgEclFAMFit()
Constructor.
std::vector< int > m_TCEThreshold
Threshold (MeV)
int m_BeamBkgTag
Add beambkg.
std::vector< std::vector< double > > m_CoeffNoise32
Coeffisient of noise 2.
void setBeamBkgTag()
set Beam Background Tag
std::vector< std::vector< double > > m_CoeffSigPDF1
Coeffisients of signal PDF1.
void setThreshold(const std::vector< int > &tcethreshold)
set Threshold
std::vector< double > m_TCLatency
TC Latency.
std::vector< std::vector< int > > getBeamBkgTag()
Get Background Tag of TC Hit.
std::vector< std::vector< double > > getFitEnergy()
Get TC Energy.
std::vector< std::vector< double > > m_CoeffNoise31
Coeffisients of noise 1.
virtual ~TrgEclFAMFit()
Destructor.
TrgEclDataBase * m_DataBase
Object of DataBase.
void FAMFit02(std::vector< std::vector< double > >, std::vector< std::vector< double > >)
function for backup 1
void FAMFit01(std::vector< std::vector< double > >, std::vector< std::vector< double > >)
function for fitting
void setBeamBkgTagFlag(int beambkgtagflag)
set Beam Background Tag flag
std::vector< std::vector< double > > m_TCFitTiming
fit timing
std::vector< std::vector< double > > m_TCRawTiming
Raw timing.
int m_EventId
Fill Analysis table.
std::vector< std::vector< double > > m_CoeffNoise33
Coeffisient of noise 3.
void FAMFit03(std::vector< std::vector< double > >, std::vector< std::vector< double > >)
function for backup2
std::vector< std::vector< double > > m_TCRawEnergy
Raw energy.
std::vector< std::vector< int > > m_BeamBkgInfo
fit timing
std::vector< std::vector< double > > m_CoeffSigPDF0
Coeffisients of signal PDF0.
TrgEclMapping * m_TCMap
Object of TC Mapping.
void setAnaTagFlag(int anatagflag)
set flag for saving analysis table
A class of TC Mapping.
Abstract base class for different kinds of events.