BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/tofcalgsec/tofcalgsec/TofCalibration.h
Go to the documentation of this file.
1#ifndef TOFCALIBRATION_H
2#define TOFCALIBRATION_H
3
4#include "tofcalgsec/TofDataSet.h"
5#include "CLHEP/Matrix/Matrix.h"
6#include "CLHEP/Matrix/Vector.h"
7#include "TH1F.h"
8#include "TGraph.h"
9
10using namespace std;
11using namespace CLHEP;
12
14 public:
15 TofCalibration( const int npar );
17
18 public:
19 virtual const string& name() const { return m_name; }
20
21 virtual void calculate( RecordSet*& data, unsigned int icounter );
22 // virtual void updateData( RecordSet*& data ) = 0;
23
24 void fillTxt( const char* file );
25 void fillRoot( const char* file, bool isbarrel );
26
27 protected:
28 virtual void calculate_record(const Record* r, unsigned int icounter) = 0;
29 virtual void calculate_result( unsigned int icounter ) = 0;
30
31 protected:
32 string m_name;
33 int Npar;
34 unsigned int Npar2;
35 unsigned int nHistPerCounter;
36 unsigned int nGraphPerCounter;
37 unsigned int nHistogram;
38 unsigned int nGraph;
39
40 HepVector X;
41
42 std::vector<TH1F*> histograms;
43 std::vector<TGraph*> graphs;
44 std::vector<HepVector> m_result;
45
46};
47
48#endif
char * file
Definition: DQA_TO_DB.cxx:15
TTree * data
std::vector< Record * > RecordSet
virtual void calculate_record(const Record *r, unsigned int icounter)=0
virtual void calculate(RecordSet *&data, unsigned int icounter)
void fillRoot(const char *file, bool isbarrel)
virtual void calculate_result(unsigned int icounter)=0
void fillTxt(const char *file)