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);
87 StatusCode storeTDS(
double tEst,
int tEstFlag,
double quality);
88 double Opt_new(
const double arr[],
const int size,
const double sigma_cut);
89 double EST_Trimmer(
double t0_original,
double t0_offset,
double raw_offset,
double offset_dt,
double bunchTime);
96 IDataProviderSvc* m_pCalibDataSvc;
104 HepPDT::ParticleDataTable* m_particleTable;
106 NTuple::Tuple* m_tuple2;
109 NTuple::Item<int> g_eventNo, g_runNo;
112 NTuple::Item<int> g_ntrkMC;
113 NTuple::Array<double> g_theta0MC, g_phi0MC;
114 NTuple::Array<double> g_pxMC, g_pyMC, g_pzMC, g_ptMC;
117 NTuple::Item <double> g_nmatchbarrel,g_nmatchend;
118 NTuple::Item <double> g_nmatchbarrel_1,g_nmatchbarrel_2;
119 NTuple::Item <int> g_nmatch_tot;
120 NTuple::Item <int> g_ntrk,g_trigtiming;
121 NTuple::Array<double> g_ttof;
122 NTuple::Array<double> g_vel;
123 NTuple::Array<double> g_abmom;
124 NTuple::Array<double> g_t0for,g_t0back;
125 NTuple::Item <double> g_meant0,g_t0less,g_t0barrelTof;
126 NTuple::Item <double> g_ndriftt,g_nmatchmdc,g_EstimeMdc;
127 NTuple::Item <double> g_t0mean,g_T0,g_t0,g_mcTestime;
128 NTuple::Item <double> g_meantdc, g_Testime_fzisan, g_Testime;
129 NTuple::Item <int> g_ntofup,g_ntofdown,g_ntofup1,g_ntofdown1;
130 NTuple::Item <double> g_difftof_b, g_difftof_e;
131 NTuple::Array <double> g_meantevup,g_meantevdown;
132 NTuple::Item<int> m_estFlag;
133 NTuple::Item<double>m_estTime;
135 NTuple::Tuple* m_tuple9;
136 NTuple::Array<double> g_meantev;
137 NTuple::Item<int> g_nmatch;
139 NTuple::Tuple* m_tuple3;
140 NTuple::Item <double> g_t0offset_b;
141 NTuple::Item <double> g_t0offset_e;
142 NTuple::Item <int> g_bunchtime;
std::vector< double > Vdouble
EsTimeAlg(const std::string &name, ISvcLocator *pSvcLocator)