12#include "TofCaliSvc/BTofCal.h"
13#include "TofCaliSvc/BTofCommonCal.h"
14#include "TofCaliSvc/ETofCal.h"
15#include "TofCaliSvc/EtfCal.h"
16#include "TofCaliSvc/EtfBunchCal.h"
17#include "TofCaliSvc/TofInfoCal.h"
19#include "GaudiKernel/Service.h"
20#include "GaudiKernel/IInterface.h"
21#include "GaudiKernel/Property.h"
22#include "TofCaliSvc/ITofCaliSvc.h"
23#include "GaudiKernel/IIncidentListener.h"
24#include "GaudiKernel/IDataProviderSvc.h"
30 TofCaliSvc(
const std::string& name, ISvcLocator* svcloc );
33 virtual StatusCode
queryInterface(
const InterfaceID& riid,
void** ppvUnknown);
36 void handle(
const Incident&);
48 const double BTCorr1(
double ADC,
double zHit,
unsigned int id);
49 const double BTCorr2(
double ADC,
double zHit,
unsigned int id);
53 const double BTime1(
double ADC,
double TDC,
double zHit,
unsigned int id,
double t0);
54 const double BTime2(
double ADC,
double TDC,
double zHit,
unsigned int id,
double t0);
55 const double ETime(
double ADC,
double TDC,
double rHit,
unsigned int id);
56 const double EtfTime(
double ADC1,
double ADC2,
double TDC1,
double TDC2,
unsigned int id,
unsigned int strip,
double t0);
57 const double EtfTime1(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip,
double t0);
58 const double EtfTime2(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip,
double t0);
59 const double EtfTimeMC(
double ADC1,
double ADC2,
double TDC1,
double TDC2,
unsigned int id,
unsigned int strip,
double t0);
60 const double EtfTimeMC1(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip,
double t0);
61 const double EtfTimeMC2(
double ADC,
double TDC,
double zHit,
unsigned int id,
unsigned int strip,
double t0);
62 const double EtfTime(
double tleft,
double tright);
64 const double BTimeCounter(
double tleft,
double tright,
double z,
unsigned int id);
65 const double BTimeCluster(
double tlayer1,
double tlayer2,
double z1,
double z2,
unsigned int id1,
unsigned int id2);
66 const double BSigma1(
double zHit,
unsigned int id);
67 const double BSigma2(
double zHit,
unsigned int id);
69 const double BSigmaCluster(
double zHit1,
double zHit2,
unsigned int id1,
unsigned int id2);
70 const double ESigma(
double rHit,
unsigned int id);
71 const double BPulseHeight1(
double ADC,
double zHit,
double sint,
unsigned int id);
72 const double BPulseHeight2(
double ADC,
double zHit,
double sint,
unsigned int id);
73 const double BPulseHeight(
double ADC1,
double ADC2,
double zHit,
double sint,
unsigned int id);
74 const double BPh(
double ADC1,
double ADC2,
double zHit,
unsigned int id);
75 const double EPulseHeight(
double ADC,
double rHit,
double cost,
unsigned int id);
76 const double EPh(
double ADC,
double rHit,
unsigned int id);
77 const double BVeff(
unsigned int id);
78 const double BAtten(
unsigned int id);
81 const double getQ0(
unsigned int id);
82 const double EVeff(
unsigned int id);
83 const double EAtten(
unsigned int id);
84 const double EGain(
unsigned int id);
85 const double EtfVeff(
unsigned int id,
unsigned int strip);
86 const double ZTDC(
double tleft,
double tright,
unsigned int id);
87 const double ZTDC1(
double tright,
unsigned int id,
double z);
88 const double ZTDC2(
double tleft,
unsigned int id,
double z);
89 const double ZADC(
double qleft,
double qright,
unsigned int id);
90 const double ZADC1(
double qright,
unsigned int id,
double z);
91 const double ZADC2(
double qleft,
unsigned int id,
double z);
92 const double EtfZTDC(
double tleft,
double tright,
unsigned int id,
unsigned int strip);
99 const int BrEast(
unsigned int No);
100 const int BrWest(
unsigned int No);
101 const int Endcap(
unsigned int No);
102 const int Etf(
unsigned int No);
106 StatusCode FillfromDatabase();
107 bool m_hasbeeninitialized;
110 IDataProviderSvc* m_pCalibDataSvc;
111 IntegerProperty m_run;
112 std::vector<BTofCal*> fBTofCal;
113 std::vector<ETofCal*> fETofCal;
114 std::vector<EtfCal*> fEtfCal;
115 std::vector<EtfBunchCal*> fEtfBunchCal;
116 std::vector<BTofCommonCal*> fBTofCommonCal;
117 std::vector<TofInfoCal*> fTofInfoCal;
const double BTimeCounter(double tleft, double tright, double z, unsigned int id)
const double ZADC(double qleft, double qright, unsigned int id)
const double EtfTime(double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
const double BPulseHeight1(double ADC, double zHit, double sint, unsigned int id)
const double BPh(double ADC1, double ADC2, double zHit, unsigned int id)
const double ZTDC2(double tleft, unsigned int id, double z)
const double BPulseHeight2(double ADC, double zHit, double sint, unsigned int id)
const double EGain(unsigned int id)
const double BTimeCluster(double tlayer1, double tlayer2, double z1, double z2, unsigned int id1, unsigned int id2)
const double EPh(double ADC, double rHit, unsigned int id)
const double ZTDC1(double tright, unsigned int id, double z)
TofInfoCal * TofInfo() const
const double BPulseHeight(double ADC1, double ADC2, double zHit, double sint, unsigned int id)
const int BrEast(unsigned int No)
const double BGainForward(unsigned int id)
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
const int Etf(unsigned int No)
const double EtfBunchP(int index)
const double BTCorrOffset2(double zHit, unsigned int id, double t0)
const double BTime2(double ADC, double TDC, double zHit, unsigned int id, double t0)
const double EPulseHeight(double ADC, double rHit, double cost, unsigned int id)
const double BSigma1(double zHit, unsigned int id)
const double BAtten(unsigned int id)
virtual StatusCode finalize()
const double EtfTimeMC(double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
const double BSigma2(double zHit, unsigned int id)
const double EtfTime1(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
const double BTime1(double ADC, double TDC, double zHit, unsigned int id, double t0)
BTofCal * BTof(unsigned int id) const
const double ETime(double ADC, double TDC, double rHit, unsigned int id)
const double BTCorrOffset1(double zHit, unsigned int id, double t0)
const double EtfTimeMC1(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
const double EtfTimeMC2(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
const double EtfTime2(double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
const double BSigmaCluster(double zHit1, double zHit2, unsigned int id1, unsigned int id2)
const double EtfVeff(unsigned int id, unsigned int strip)
const double ZADC1(double qright, unsigned int id, double z)
virtual StatusCode initialize()
const double BGainBackward(unsigned int id)
const double BVeff(unsigned int id)
const double ESigma(double rHit, unsigned int id)
const double EtfZTDC(double tleft, double tright, unsigned int id, unsigned int strip)
const double ZADC2(double qleft, unsigned int id, double z)
const double getQ0(unsigned int id)
const int BrWest(unsigned int No)
const double ZTDC(double tleft, double tright, unsigned int id)
const double ETDelay(unsigned int id)
const double EVeff(unsigned int id)
const double EAtten(unsigned int id)
const int Endcap(unsigned int No)
const double BTCorr2(double ADC, double zHit, unsigned int id)
BTofCommonCal * BTofCommon() const
const double BTCorr1(double ADC, double zHit, unsigned int id)
void handle(const Incident &)
const double BTDelay1(unsigned int id)
const double BTDelay2(unsigned int id)
EtfCal * EtfTof(unsigned int id) const
ETofCal * ETof(unsigned int id) const
const double BSigmaCounter(double zHit, unsigned int id)