4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
6#include "HepPDT/ParticleDataTable.hh"
7#include "RawDataProviderSvc/IRawDataProviderSvc.h"
9#include "CalibData/EsTime/EsTimeCalibData.h"
10#include "CalibData/CalibModel.h"
11#include "GaudiKernel/DataSvc.h"
12#include "CalibDataSvc/ICalibRootSvc.h"
13#include "CalibData/CalibModel.h"
14#include "CalibData/CalibBase1.h"
15#include "EstTofCaliSvc/IEstTofCaliSvc.h"
16#include "CalibData/Tof/TofCalibData.h"
17#include "TofQElecSvc/ITofQElecSvc.h"
18#include "MdcUtilitySvc/MdcUtilitySvc.h"
19#include "MdcCalibFunSvc/MdcCalibFunSvc.h"
20#include "MdcCalibFunSvc/IMdcCalibFunSvc.h"
22#include "EsTimeAlg/EstParameter.h"
32 EsTimeAlg(
const std::string& name, ISvcLocator* pSvcLocator);
89 StatusCode storeTDS(
double tEst,
int tEstFlag,
double quality);
90 double Opt_new(
const double arr[],
const int size,
const double sigma_cut);
91 double EST_Trimmer(
double t0_original,
double t0_offset,
double raw_offset,
double offset_dt,
double bunchTime);
98 IDataProviderSvc* m_pCalibDataSvc;
106 HepPDT::ParticleDataTable* m_particleTable;
108 NTuple::Tuple* m_tuple2;
111 NTuple::Item<int> g_eventNo, g_runNo;
114 NTuple::Item<int> g_ntrkMC;
115 NTuple::Array<double> g_theta0MC, g_phi0MC;
116 NTuple::Array<double> g_pxMC, g_pyMC, g_pzMC, g_ptMC;
119 NTuple::Item <double> g_nmatchbarrel,g_nmatchend;
120 NTuple::Item <double> g_nmatchbarrel_1,g_nmatchbarrel_2;
121 NTuple::Item <int> g_nmatch_tot;
122 NTuple::Item <int> g_ntrk,g_trigtiming;
123 NTuple::Array<double> g_ttof;
124 NTuple::Array<double> g_vel;
125 NTuple::Array<double> g_abmom;
126 NTuple::Array<int> g_pid;
127 NTuple::Array<double> g_t0for,g_t0back;
128 NTuple::Item <double> g_meant0,g_t0less,g_t0barrelTof;
129 NTuple::Item <double> g_ndriftt,g_nmatchmdc,g_EstimeMdc;
130 NTuple::Item <double> g_t0mean,g_T0,g_t0,g_mcTestime;
131 NTuple::Item <double> g_meantdc, g_Testime_fzisan, g_Testime;
132 NTuple::Item <int> g_ntofup,g_ntofdown,g_ntofup1,g_ntofdown1;
133 NTuple::Item <double> g_difftof_b, g_difftof_e;
134 NTuple::Array <double> g_meantevup,g_meantevdown;
135 NTuple::Item<int> m_estFlag;
136 NTuple::Item<double>m_estTime;
138 NTuple::Tuple* m_tuple9;
139 NTuple::Array<double> g_meantev;
140 NTuple::Item<int> g_nmatch;
142 NTuple::Tuple* m_tuple3;
143 NTuple::Item <double> g_t0offset_b;
144 NTuple::Item <double> g_t0offset_e;
145 NTuple::Item <int> g_bunchtime;
std::vector< double > Vdouble