4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
6#include "HepPDT/ParticleDataTable.hh"
11#include "GaudiKernel/DataSvc.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