BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
calib_endcap_left Class Reference

#include <calib_endcap_left.h>

+ Inheritance diagram for calib_endcap_left:

Public Member Functions

 calib_endcap_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 void updateData (RecordSet *&data)=0
 
virtual const string & name () const
 
void fillTxt (const char *file)
 

Additional Inherited Members

virtual void calculate_funcs (const Record *r)=0
 
virtual void calculate_y (const Record *r)=0
 
- 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 8 of file calib_endcap_left.h.

Constructor & Destructor Documentation

◆ calib_endcap_left()

calib_endcap_left::calib_endcap_left ( )
inline

Definition at line 10 of file calib_endcap_left.h.

11 m_name = string("calib_endcap_left");
12 }
const int nEndcapLeft
string m_name
Definition: TofCalib.h:36

Member Function Documentation

◆ calculate_funcs()

void calib_endcap_left::calculate_funcs ( const Record r)
inlinevirtual

Implements TofCalib.

Definition at line 14 of file calib_endcap_left.h.

14 {
15 double q = r->qleft();
16 double z = r->zrhit();
17
18 funcs[0] = 1.0;
19 funcs[1] = 1.0/sqrt(q);
20 funcs[2] = 1.0/q;
21 funcs[3] = q;
22 funcs[4] = z;
23 funcs[5] = z*z;
24 funcs[6] = z*z*z;
25
26 return;
27 }
****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:51
double zrhit() const
Definition: TofDataSet.h:55
HepVector funcs
Definition: TofCalib.h:41

Referenced by updateData().

◆ calculate_y()

void calib_endcap_left::calculate_y ( const Record r)
inlinevirtual

Implements TofCalib.

Definition at line 29 of file calib_endcap_left.h.

29 {
30 y = r->tleft() - r->texp();
31 return;
32 }
double texp() const
Definition: TofDataSet.h:56
double tleft() const
Definition: TofDataSet.h:53
double y
Definition: TofCalib.h:42

◆ updateData()

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

Implements TofCalib.

Definition at line 34 of file calib_endcap_left.h.

34 {
35 if( data->size() > 0 ) {
36 std::vector<Record*>::iterator iter = data->begin();
37 for( ; iter!=data->end(); iter++ ) {
39 double tcorr = 0.0;
40 for( int i=0; i<X.num_row(); i++ ) {
41 tcorr += X[i]*funcs[i];
42 }
43 (*iter)->settleft( (*iter)->tleft() - tcorr - (*iter)->texp() );
44 }
45 }
46 return;
47 }
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: