16#include "GaudiKernel/Service.h"
17#include "GaudiKernel/IInterface.h"
18#include "GaudiKernel/Property.h"
20#include "GaudiKernel/IIncidentListener.h"
21#include "GaudiKernel/IDataProviderSvc.h"
23class EstTofCaliSvc:
public extends<Service, IEstTofCaliSvc>,
virtual public IIncidentListener
28 EstTofCaliSvc(
const std::string& name, ISvcLocator* svcloc );
34 void handle(
const Incident&);
45 const double BTCorr1(
double ADC,
double zHit,
unsigned int id);
46 const double BTCorr2(
double ADC,
double zHit,
unsigned int id);
50 const double BTime1(
double ADC,
double TDC,
double zHit,
unsigned id);
51 const double BTime2(
double ADC,
double TDC,
double zHit,
unsigned id);
52 const double ETime(
double ADC,
double TDC,
double rHit,
unsigned int id);
53 const double EtfTime(
double ADC1,
double ADC2,
double TDC1,
double TDC2,
unsigned int id,
unsigned int strip);
54 const double EtfTime1(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip);
55 const double EtfTime2(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip);
56 const double EtfTime(
double TDC1,
double TDC2,
unsigned int id,
unsigned int strip);
60 StatusCode FillfromDatabase();
61 bool m_hasbeeninitialized;
62 unsigned int m_sequence;
65 IDataProviderSvc* m_pCalibDataSvc;
66 IntegerProperty m_run;
67 std::vector<BTofCal*> fBTofCal;
68 std::vector<ETofCal*> fETofCal;
69 std::vector<EtfCal*> fEtfCal;
70 std::vector<BTofCommonCal*> fBTofCommonCal;
71 std::vector<TofInfoCal*> fTofInfoCal;
virtual StatusCode initialize()
ETofCal * ETof(unsigned id) const
void handle(const Incident &)
virtual StatusCode finalize()
BTofCal * BTof(unsigned id) const
const double ETime(double ADC, double TDC, double rHit, unsigned int id)
StatusCode chooseConstants(int run, int number)
const double EtfTime1(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip)
const double EtfTime2(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip)
const double BTime2(double ADC, double TDC, double zHit, unsigned id)
EstTofCaliSvc(const std::string &name, ISvcLocator *svcloc)
EtfCal * EtfTof(unsigned int id) const
const double BTime1(double ADC, double TDC, double zHit, unsigned id)
const double BTCorr1(double ADC, double zHit, unsigned int id)
TofInfoCal * TofInfo() const
const double EtfTime(double TDC1, double TDC2, unsigned int id, unsigned int strip)
const double BTCorr2(double ADC, double zHit, unsigned int id)
const double EtfTime(double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip)
BTofCommonCal * BTofCommon() const