BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalibration.h
Go to the documentation of this file.
1#ifndef TOFCALIBRATION_H
2#define TOFCALIBRATION_H
3
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
Definition TofDataSet.h:98
TofCalibration(const int npar)
virtual void calculate_record(const Record *r, unsigned int icounter)=0
virtual const string & name() const
std::vector< TGraph * > graphs
unsigned int nHistPerCounter
virtual void calculate(RecordSet *&data, unsigned int icounter)
unsigned int Npar2
unsigned int nHistogram
std::vector< HepVector > m_result
unsigned int nGraphPerCounter
void fillRoot(const char *file, bool isbarrel)
std::vector< TH1F * > histograms
virtual void calculate_result(unsigned int icounter)=0
void fillTxt(const char *file)
unsigned int nGraph