BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
calib_etf_left Class Reference

#include <calib_etf_left.h>

+ Inheritance diagram for calib_etf_left:

Public Member Functions

 calib_etf_left ()
 
void calculate_funcs (const Record *r)
 
void calculate_y (const Record *r)
 
void updateData (RecordSet *&data)
 
- Public Member Functions inherited from TofCalib
 TofCalib (const int npar)
 
 ~TofCalib ()
 
void reset ()
 
virtual void calculate (RecordSet *&data, unsigned int icounter)
 
virtual const string & name () const
 
void fillTxt (const char *file)
 

Additional Inherited Members

- Protected Member Functions inherited from TofCalib
- Protected Attributes inherited from TofCalib
string m_name
 
int Npar
 
HepMatrix F
 
HepVector X
 
HepVector Y
 
HepVector funcs
 
double y
 
std::vector< HepVector > m_result
 

Detailed Description

Definition at line 9 of file calib_etf_left.h.

Constructor & Destructor Documentation

◆ calib_etf_left()

calib_etf_left::calib_etf_left ( )
inline

Definition at line 11 of file calib_etf_left.h.

11 :TofCalib( nEtfLeft ) {
12 m_name = string("calib_etf_left");
13 }
const int nEtfLeft
string m_name
Definition TofCalib.h:36
TofCalib(const int npar)
Definition TofCalib.h:13

Member Function Documentation

◆ calculate_funcs()

void calib_etf_left::calculate_funcs ( const Record * r)
inlinevirtual

Implements TofCalib.

Definition at line 15 of file calib_etf_left.h.

15 {
16 double q = r->qleft();
17 double z = r->zrhit();
18
19 if( q<0.0 ) {
20 for( int i=0; i<nEtfLeft; i++ ) {
21 funcs[i] = 1.0;
22 }
23 }
24 else {
25 funcs[0] = 1.0;
26 // funcs[1] = z; // event start time
27 funcs[1] = 1./sqrt(q);
28 funcs[2] = q;
29 funcs[3] = q*q;
30 funcs[4] = q*q*q;
31 funcs[5] = q*q*q*q;
32 funcs[6] = z/sqrt(q);
33 funcs[7] = 1.0/q;
34 funcs[8] = z/q;
35 funcs[9] = z*q;
36 funcs[10] = z;
37 funcs[11] = z*z;
38 funcs[12] = z*z*z;
39 }
40
41 return;
42 }
****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
double qleft() const
Definition TofDataSet.h:57
double zrhit() const
Definition TofDataSet.h:61
HepVector funcs
Definition TofCalib.h:41

Referenced by updateData().

◆ calculate_y()

void calib_etf_left::calculate_y ( const Record * r)
inlinevirtual

Implements TofCalib.

Definition at line 44 of file calib_etf_left.h.

44 {
45 y = r->tleft() - r->texp();
46 return;
47 }
double texp() const
Definition TofDataSet.h:63
double tleft() const
Definition TofDataSet.h:59
double y
Definition TofCalib.h:42

◆ updateData()

void calib_etf_left::updateData ( RecordSet *& data)
inlinevirtual

Implements TofCalib.

Definition at line 49 of file calib_etf_left.h.

49 {
50 if( data->size() > 0 ) {
51 std::vector<Record*>::iterator iter = data->begin();
52 for( ; iter!=data->end(); iter++ ) {
54 double tcorr = 0.0;
55 for( int i=0; i<X.num_row(); i++ ) {
56 tcorr += X[i]*funcs[i];
57 }
58 (*iter)->settleft( (*iter)->tleft() - tcorr - (*iter)->texp() );
59 }
60 }
61 return;
62 }
TTree * data
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
HepVector X
Definition TofCalib.h:39
void calculate_funcs(const Record *r)

The documentation for this class was generated from the following file: