BOSS 7.0.8
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
10class TGraph2DErrors;
11class AbsCor : public Algorithm {
12
13public:
14 AbsCor(const std::string& name, ISvcLocator* pSvcLocator);
15 StatusCode initialize();
16 StatusCode execute();
17 StatusCode finalize();
18
19 double corEnergyPi0(double eg,double theid);
20private:
21 bool m_ReadFile;
22 unsigned int runFrom0,runTo0;
23 bool ntOut;
24 int mccor;
25 int edgecor;
26 int usetof;
27 int dodatacor;
28 int dopi0Cor;
29 int MCuseTof;
30 int MCCorUseFunction;
31 int IYear;
32 int hotcellmask;
33 int hrunstart[10];
34 int hrunend[10];
35 int hcell[10];
36 IEmcShEnCalibSvc* m_EmcShEnCalibSvc;
37
38 int **m_index;
39 double **m_par;
40 double **m_parphi;
41 double m_corFunPar[28][6];
42
43 double ECorrFunctionMC(double eg, double theid) const;
44 double ECorrMC(double eg, double theid) const;
45 double ErrMC(double eg, double theid) const;
46 double E25min(int n) const;
47 double E25max(int n) const;
48
49 double e25min[28];
50 double e25max[28];
51 // Shower energy correction
52 TGraph2DErrors *dt;
53 // Energy error
54 TGraph2DErrors *dtErr;
55
56
57 NTuple::Tuple* m_tuple1;
58 NTuple::Item<double> m_ef;
59 NTuple::Item<double> m_e5;
60 NTuple::Item<double> m_ct;
61 NTuple::Item<double> m_cedge;
62 NTuple::Item<double> m_ec;
63
64};
65#endif
const Int_t n
Definition: AbsCor.h:11
StatusCode execute()
Definition: AbsCor.cxx:333
double corEnergyPi0(double eg, double theid)
StatusCode finalize()
Definition: AbsCor.cxx:743
StatusCode initialize()
Definition: AbsCor.cxx:78