22#include "GaudiKernel/Algorithm.h"
24#include "EmcBhaCalib/EmcLSSMatrix.h"
25#include "EmcBhaCalib/EmcBhaCalibData.h"
27#include "EmcCalibConstSvc/IEmcCalibConstSvc.h"
28#include "EmcCalibConstSvc/EmcCalibConstSvc.h"
29#include "GaudiKernel/Bootstrap.h"
30#include "GaudiKernel/ISvcLocator.h"
33#include "GaudiKernel/NTuple.h"
63 EmcBhaCalib(
const std::string& name, ISvcLocator* pSvcLocator);
85 void initCalibConst();
97 bool readInFromFile();
104 bool prepareConstants();
110 void printInfo(std::string xtalHitsDirFile);
120 double m_peakCor[6240];
129 bool m_askForMatrixInversion;
139 bool m_readDataFromDB;
142 std::string m_equationSolver;
145 std::string m_fileExt;
148 std::string m_fileDir;
154 bool m_calibrationSuccessful;
158 double* m_calibConst;
161 double* m_calibConstUnred;
164 double* m_absoluteConstants;
167 double* m_oldConstants;
170 long int m_nrNonZeros;
173 int m_nrXtalsEnoughHits;
177 std::string m_runNumberFile;
183 NTuple::Tuple* m_tuple1;
184 NTuple::Item<long> ixtal;
185 NTuple::Item<float> gi0;
186 NTuple::Item<float> calibConst;
187 NTuple::Item<float> err;
188 NTuple::Item<long> nhitxtal;
190 double DigiCalibConst;