BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalibAlg.h
Go to the documentation of this file.
1#ifndef MDCCALIBALG_H
2#define MDCCALIBALG_H
3
4#include "GaudiKernel/Algorithm.h"
5
6#include "MdcGeomSvc/IMdcGeomSvc.h"
7#include "MdcGeomSvc/MdcGeomSvc.h"
8#include "MdcGeomSvc/MdcGeoWire.h"
9#include "MdcGeomSvc/MdcGeoLayer.h"
10
11#include "MdcCalibFunSvc/IMdcCalibFunSvc.h"
12#include "MdcCalibFunSvc/MdcCalibFunSvc.h"
13#include "MdcUtilitySvc/IMdcUtilitySvc.h"
14#include "MdcUtilitySvc/MdcUtilitySvc.h"
15
16#include "MdcCalibAlg/MdcCalibConst.h"
17#include "MdcCalibAlg/MdcCalEvent.h"
18#include "MdcCalibAlg/MdcCalConstMgr.h"
19#include "MdcCalibAlg/MdcCalParams.h"
20
21#include "MdcCalibAlg/MdcCalib.h"
22#include "MdcCalibAlg/IniMdcCalib.h"
23#include "MdcCalibAlg/PreXtMdcCalib.h"
24#include "MdcCalibAlg/PreT0MdcCalib.h"
25#include "MdcCalibAlg/XtMdcCalib.h"
26#include "MdcCalibAlg/GrXtMdcCalib.h"
27#include "MdcCalibAlg/XtInteMdcCalib.h"
28#include "MdcCalibAlg/T0MdcCalib.h"
29#include "MdcCalibAlg/WrMdcCalib.h"
30#include "MdcCalibAlg/Wr2dMdcCalib.h"
31#include "MdcCalibAlg/QtMdcCalib.h"
32
33#include "TObjArray.h"
34#include "TFile.h"
35
36
37/////////////////////////////////////////////////////////////////////////////
38
39class MdcCalibAlg: public Algorithm {
40public:
41 MdcCalibAlg(const std::string& name, ISvcLocator* pSvcLocator);
43
44 StatusCode initialize();
45 StatusCode execute();
46 StatusCode finalize();
47
48private:
49 void initParam();
50
51 TFile* m_fhist;
52 TObjArray* m_hlist;
53 IMdcGeomSvc* m_mdcGeomSvc;
54 IMdcCalibFunSvc* m_mdcFunSvc;
55 IMdcUtilitySvc* m_mdcUtilitySvc;
56 MdcCalConstMgr* m_constmgr;
57 MdcCalib* m_mdccalib;
58 MdcCalEvent* m_mdcevt;
59 MdcCalibConst* m_calconst;
60 MdcCalParams m_param;
61
62 bool m_initCalConstFlg;
63 int m_mdcCalFlg;
64 int m_flgKalFit; /* 1 for using Kalman filter, 0 for not */
65 int m_evtType; /* 0-6: e,mu,pi,k,p,cosmic-ray */
66 int m_nEvtDisp;
67 int m_nEvt;
68 bool m_distCalib;
69 double m_ecm;
70
71 std::string m_histname;
72 std::string m_configFile;
73 std::string m_wpcFile; /* single wire position calibration file */
74};
75
76#endif /* MDCCALIBALG_H */
MdcCalibAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute()
StatusCode initialize()
StatusCode finalize()