BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
AbsCor.h
Go to the documentation of this file.
1#ifndef Analysis_AbsCor_H
2#define Analysis_AbsCor_H
3
4#include "GaudiKernel/AlgFactory.h"
5#include "GaudiKernel/Algorithm.h"
6#include "GaudiKernel/NTuple.h"
7#include "TGraphErrors.h"
9#include <cstring>
10using namespace std;
11class TGraph2DErrors;
12class AbsCor : public Algorithm {
13
14public:
15 AbsCor(const std::string& name, ISvcLocator* pSvcLocator);
16 StatusCode initialize();
17 StatusCode execute();
18 StatusCode finalize();
19
20 double corEnergyPi0(double eg,double theid);
21private:
22 bool m_ifReadDB;
23 std::string m_CorFunparaPath;
24 std::string m_DataPathc3ptof;
25
26 unsigned int runFrom,runTo;
27 bool m_inFlag;
28
29 bool ntOut;
30 int mccor;
31 int edgecor;
32 int usetof;
33 int dodatacor;
34 int dopi0Cor;
35 int MCuseTof;
36 int MCCorUseFunction;
37 int IYear;
38 int hotcellmask;
39 int hrunstart[10];
40 int hrunend[10];
41 int hcell[10];
42 IEmcShEnCalibSvc* m_EmcShEnCalibSvc;
43
44 int **m_index;
45 double **m_par;
46 double **m_parphi;
47 double m_corFunPar[28][6];
48
49 double ECorrFunctionMC(double eg, double theid) const;
50 double ECorrMC(double eg, double theid) const;
51 double ErrMC(double eg, double theid) const;
52 double E25min(int n) const;
53 double E25max(int n) const;
54
55 double e25min[28];
56 double e25max[28];
57 // Shower energy correction
58 TGraph2DErrors *dt;
59 // Energy error
60 TGraph2DErrors *dtErr;
61
62
63 NTuple::Tuple* m_tuple1;
64 NTuple::Item<double> m_ef;
65 NTuple::Item<double> m_e5;
66 NTuple::Item<double> m_ct;
67 NTuple::Item<double> m_cedge;
68 NTuple::Item<double> m_ec;
69
70};
71#endif
const Int_t n
Definition: AbsCor.h:12
StatusCode execute()
Definition: AbsCor.cxx:340
double corEnergyPi0(double eg, double theid)
StatusCode finalize()
Definition: AbsCor.cxx:752
StatusCode initialize()
Definition: AbsCor.cxx:85