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