BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
calib_mc_etf_left.h
Go to the documentation of this file.
1#ifndef CALIB_MC_ETF_LEFT_H
2#define CALIB_MC_ETF_LEFT_H
3
5
6const int nEtfmcLeft = 3;
7
9 public:
11 m_name = string("calib_etf_left");
12 }
13
14 void calculate_funcs( const Record* r ) {
15 double q = r->qleft();
16 double z = r->zrhit();
17
18 if( q<0.0 ) {
19 for( int i=0; i<nEtfLeft; i++ ) {
20 funcs[i] = 1.0;
21 }
22 }
23 else {
24 funcs[0] = 1.0;
25 funcs[1] = 1./sqrt(q);
26 funcs[2] = z;
27 }
28
29 return;
30 }
31
32 void calculate_y(const Record* r) {
33 y = r->tleft() - r->texp();
34 return;
35 }
36
37 void updateData( RecordSet*& data ) {
38 if( data->size() > 0 ) {
39 std::vector<Record*>::iterator iter = data->begin();
40 for( ; iter!=data->end(); iter++ ) {
42 double tcorr = 0.0;
43 for( int i=0; i<X.num_row(); i++ ) {
44 tcorr += X[i]*funcs[i];
45 }
46 (*iter)->settleft( (*iter)->tleft() - tcorr - (*iter)->texp() );
47 }
48 }
49 return;
50 }
51
52};
53
54#endif
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
Definition: KKsem.h:33
std::vector< Record * > RecordSet
Definition: TofDataSet.h:98
const int nEtfLeft
Definition: calib_etf_left.h:6
const int nEtfmcLeft
double texp() const
Definition: TofDataSet.h:63
double qleft() const
Definition: TofDataSet.h:57
double tleft() const
Definition: TofDataSet.h:59
double zrhit() const
Definition: TofDataSet.h:61
HepVector funcs
Definition: TofCalib.h:41
string m_name
Definition: TofCalib.h:36
HepVector X
Definition: TofCalib.h:39
double y
Definition: TofCalib.h:42
void calculate_funcs(const Record *r)
void calculate_y(const Record *r)
void updateData(RecordSet *&data)