BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalib.h
Go to the documentation of this file.
1#ifndef TOFCALIB_H
2#define TOFCALIB_H
3
5#include "CLHEP/Matrix/Matrix.h"
6#include "CLHEP/Matrix/Vector.h"
7
8using namespace std;
9using namespace CLHEP;
10
12 public:
13 TofCalib( const int npar ):Npar(npar) {
14 F = HepMatrix(Npar,Npar,0);
15 Y = HepVector(Npar,0);
16 X = HepVector(Npar,0);
17 funcs = HepVector(Npar,0);
18 m_name=string("calculation");
19 }
21
22 void reset();
23
24 public:
25 virtual void calculate( RecordSet*& data, unsigned int icounter );
26 virtual void updateData( RecordSet*& data ) = 0;
27 virtual const string& name() const { return m_name;}
28
29 void fillTxt( const char* file );
30
31 protected:
32 virtual void calculate_funcs(const Record* r) = 0;
33 virtual void calculate_y(const Record* r) = 0;
34
35 protected:
36 string m_name;
37 int Npar;
38 HepMatrix F;
39 HepVector X;
40 HepVector Y;
41 HepVector funcs;
42 double y;
43
44 std::vector<HepVector> m_result;
45};
46
47#endif
48
char * file
Definition DQA_TO_DB.cxx:15
TTree * data
std::vector< Record * > RecordSet
Definition TofDataSet.h:98
HepVector funcs
Definition TofCalib.h:41
string m_name
Definition TofCalib.h:36
TofCalib(const int npar)
Definition TofCalib.h:13
std::vector< HepVector > m_result
Definition TofCalib.h:44
~TofCalib()
Definition TofCalib.h:20
virtual void calculate_y(const Record *r)=0
int Npar
Definition TofCalib.h:37
virtual void calculate(RecordSet *&data, unsigned int icounter)
Definition TofCalib.cxx:17
void fillTxt(const char *file)
Definition TofCalib.cxx:57
HepMatrix F
Definition TofCalib.h:38
void reset()
Definition TofCalib.cxx:8
virtual const string & name() const
Definition TofCalib.h:27
virtual void updateData(RecordSet *&data)=0
HepVector Y
Definition TofCalib.h:40
virtual void calculate_funcs(const Record *r)=0
HepVector X
Definition TofCalib.h:39
double y
Definition TofCalib.h:42