BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalibFit.h
Go to the documentation of this file.
1#ifndef TOFCALIBFIT_H
2#define TOFCALIBFIT_H
3
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
const double rend
Definition: TofCalibFit.h:17
const double zend
Definition: TofCalibFit.h:13
const double barrelRadius
Definition: TofCalibFit.h:14
const double zbegin
Definition: TofCalibFit.h:12
const double rbegin
Definition: TofCalibFit.h:16
const int nBarrelCommon
Definition: TofCalibFit.h:19
std::vector< Record * > RecordSet
Definition: TofDataSet.h:98
virtual void calculate(RecordSet *&data, unsigned int icounter)=0
string m_name
Definition: TofCalibFit.h:50
std::vector< HepVector > m_result
Definition: TofCalibFit.h:55
unsigned int nCanvas
Definition: TofCalibFit.h:47
std::vector< TH1F * > m_histograms
Definition: TofCalibFit.h:53
unsigned int nBinPerCounter
Definition: TofCalibFit.h:41
void setTCorrelation(HepVector tc)
Definition: TofCalibFit.h:35
HepVector m_tcorrelation
Definition: TofCalibFit.h:60
unsigned int nKind
Definition: TofCalibFit.h:40
void fillRoot(const char *file)
Definition: TofCalibFit.cxx:80
std::vector< unsigned int > nGraphPerCanvasPerCounter
Definition: TofCalibFit.h:45
unsigned int nCanvasPerCounter
Definition: TofCalibFit.h:44
unsigned int nHistPerCounter
Definition: TofCalibFit.h:43
const string & name() const
Definition: TofCalibFit.h:27
HepVector X
Definition: TofCalibFit.h:51
std::vector< unsigned int > nGraphPerCanvas
Definition: TofCalibFit.h:48
std::vector< string > CanvasName
Definition: TofCalibFit.h:58
HepVector tcorrelation()
Definition: TofCalibFit.h:34
unsigned int nHistogram
Definition: TofCalibFit.h:46
std::vector< TH1F * > m_graphs
Definition: TofCalibFit.h:54
void fillTxt(const char *file)
Definition: TofCalibFit.cxx:52
std::vector< string > CanvasPerCounterName
Definition: TofCalibFit.h:57