BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibModLowHigh.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// Environment:
3// This software was developed for the BESIII collaboration. If you
4// use all or part of it, please give an appropriate acknowledgement.
5//
6// Copyright Information:
7// Copyright (C) 2005 IHEP
8//
9//------------------------------------------------------------------------
10
11#ifndef EMCCALIBMODLOWHIGH_H
12#define EMCCALIBMODLOWHIGH_H
13
14//-------------
15// C Headers --
16//-------------
17#include <ctime>
18
19#include <cstring>
20
21
22#include "GaudiKernel/Algorithm.h"
23
26#include "GaudiKernel/Bootstrap.h"
27#include "GaudiKernel/ISvcLocator.h"
28
29//Ntuple
30#include "GaudiKernel/NTuple.h"
31
32using namespace std;
33
34
35class EmcCalibModLowHigh:public Algorithm{
36
37
38 public:
39
40 EmcCalibModLowHigh(const std::string& name, ISvcLocator* pSvcLocator);
41
42
43 //--------------
44 // Destructor
45 //--------------
46 virtual ~EmcCalibModLowHigh();
47
48 StatusCode initialize();
49 StatusCode execute();
50 StatusCode finalize();
51
52 private:
53
54
55 // read in calibration constants from file or initialize them to 1
56 void initCalibConst();
57
58 void SetModLowHighChannel();
59
60private:
61
62 //cut on minimum number of direct hits needed per xtal
63 int m_deadIxtal;
64 int m_hotIxtal;
65
66 //file name extensions for different output files
67 std::string m_fileExt;
68
69 //file directory
70 std::string m_fileDir;
71 std::string m_inputFileDir;
72 //the old absolute constants the new once are relative to
73 double* m_oldConstants;
74 int* m_IxtalNumber;
75 IEmcCalibConstSvc* m_emcCalibConstSvc;
76
77};
78
79#endif // EMCCALIBModLowHigh_H
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
EmcCalibModLowHigh(const std::string &name, ISvcLocator *pSvcLocator)