BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/tofcalgsec/tofcalgsec/TofCalibFit.h
Go to the documentation of this file.
1#ifndef TOFCALIBFIT_H
2#define TOFCALIBFIT_H
3
4#include "tofcalgsec/TofDataSet.h"
5#include "CLHEP/Matrix/Vector.h"
6#include "TH1F.h"
7#include "TCanvas.h"
8
9using namespace std;
10using namespace CLHEP;
11
12const double zbegin = -115.0;
13const double zend = 115.0;
14const double barrelRadius = 87.05;
15
16const double rbegin = 53.5;
17const double rend = 80.5;
18
19const int nBarrelCommon = 4; // number of calib_barrel_common.txt
20
22 public:
23 TofCalibFit( bool isbarrel, const int npar );
25
26 public:
27 const string& name() const { return m_name; }
28 virtual void calculate( RecordSet*& data, unsigned int icounter ) = 0;
29
30 void fillTxt( const char* file );
31 void fillRoot( const char* file );
32
33 public:
34 HepVector tcorrelation() { return X; }
35 void setTCorrelation( HepVector tc ) { m_tcorrelation = tc; }
36
37 protected:
38 int m_npar;
39
40 unsigned int nKind;
41 unsigned int nBinPerCounter;
42
43 unsigned int nHistPerCounter;
44 unsigned int nCanvasPerCounter;
45 std::vector<unsigned int> nGraphPerCanvasPerCounter;
46 unsigned int nHistogram;
47 unsigned int nCanvas;
48 std::vector<unsigned int> nGraphPerCanvas;
49
50 string m_name;
51 HepVector X;
52
53 std::vector<TH1F*> m_histograms;
54 std::vector<TH1F*> m_graphs;
55 std::vector<HepVector> m_result;
56
57 std::vector<string> CanvasPerCounterName;
58 std::vector<string> CanvasName;
59
60 HepVector m_tcorrelation;
61
62 private:
63 unsigned int nCounter;
64};
65
66#endif
char * file
Definition: DQA_TO_DB.cxx:15
TTree * data
std::vector< Record * > RecordSet
virtual void calculate(RecordSet *&data, unsigned int icounter)=0
void fillRoot(const char *file)
Definition: TofCalibFit.cxx:80
void fillTxt(const char *file)
Definition: TofCalibFit.cxx:52
std::vector< unsigned int > nGraphPerCanvasPerCounter