BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
calib_etf_veff.h
Go to the documentation of this file.
1#ifndef CALIB_ETF_VEFF_H
2#define CALIB_ETF_VEFF_H
3
5
6const int nEtfVeff = 4;
7
8class calib_etf_veff:public TofCalib {
9 public:
11 m_name = string("calib_etf_veff");
12 }
13
14 void calculate_funcs( const Record* r ) {
15 double z = r->zrhit();
16
17 funcs[0] = 1.0;
18 funcs[1] = z;
19 funcs[2] = z*z;
20 funcs[3] = z*z*z;
21
22 return;
23 }
24
25 void calculate_y(const Record* r) {
26 y = r->tright() - r->tleft();
27 return;
28 }
29
30 void updateData( RecordSet*& data ) {
31 return;
32 }
33
34};
35
36#endif
std::vector< Record * > RecordSet
Definition: TofDataSet.h:98
const int nEtfVeff
Definition: calib_etf_veff.h:6
double tleft() const
Definition: TofDataSet.h:59
double tright() const
Definition: TofDataSet.h:60
double zrhit() const
Definition: TofDataSet.h:61
HepVector funcs
Definition: TofCalib.h:41
string m_name
Definition: TofCalib.h:36
double y
Definition: TofCalib.h:42
void calculate_funcs(const Record *r)
void calculate_y(const Record *r)
void updateData(RecordSet *&data)