BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/tofcalgsec/tofcalgsec-00-02-20/tofcalgsec/TofCalib.h
Go to the documentation of this file.
1#ifndef TOFCALIB_H
2#define TOFCALIB_H
3
4#include "tofcalgsec/TofDataSet.h"
5#include "CLHEP/Matrix/Matrix.h"
6#include "CLHEP/Matrix/Vector.h"
7
8using namespace std;
9using namespace CLHEP;
10
11class TofCalib{
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
virtual void calculate(RecordSet *&data, unsigned int icounter)
virtual void calculate_y(const Record *r)=0
void fillTxt(const char *file)
void reset()
virtual void updateData(RecordSet *&data)=0
virtual void calculate_funcs(const Record *r)=0