12#include "TofCaliSvc/BTofCal.h"
13#include "TofCaliSvc/BTofCommonCal.h"
14#include "TofCaliSvc/ETofCal.h"
15#include "TofCaliSvc/TofInfoCal.h"
17#include "GaudiKernel/Service.h"
18#include "GaudiKernel/IInterface.h"
19#include "GaudiKernel/Property.h"
21#include "GaudiKernel/IIncidentListener.h"
22#include "GaudiKernel/IDataProviderSvc.h"
28 TofCaliSvc(
const std::string& name, ISvcLocator* svcloc );
31 virtual StatusCode
queryInterface(
const InterfaceID& riid,
void** ppvUnknown);
34 void handle(
const Incident&);
42 const double BTDelay1(
unsigned int id);
43 const double BTDelay2(
unsigned int id);
44 const double ETDelay(
unsigned int id);
45 const double BTCorr1(
double ADC,
double zHit,
unsigned int id);
46 const double BTCorr2(
double ADC,
double zHit,
unsigned int id);
47 const double BTCorrOffset1(
double zHit,
unsigned int id,
double t0);
48 const double BTCorrOffset2(
double zHit,
unsigned int id,
double t0);
50 const double BTime1(
double ADC,
double TDC,
double zHit,
unsigned int id,
double t0);
51 const double BTime2(
double ADC,
double TDC,
double zHit,
unsigned int id,
double t0);
53 const double ETime(
double ADC,
double TDC,
double rHit,
unsigned int id);
54 const double BTimeCounter(
double tleft,
double tright,
double z,
unsigned int id);
55 const double BTimeCluster(
double tlayer1,
double tlayer2,
double z1,
double z2,
unsigned int id1,
unsigned int id2);
56 const double BSigma1(
double zHit,
unsigned int id);
57 const double BSigma2(
double zHit,
unsigned int id);
59 const double BSigmaCluster(
double zHit1,
double zHit2,
unsigned int id1,
unsigned int id2);
60 const double ESigma(
double rHit,
unsigned int id);
61 const double BPulseHeight1(
double ADC,
double zHit,
double sint,
unsigned int id);
62 const double BPulseHeight2(
double ADC,
double zHit,
double sint,
unsigned int id);
63 const double BPulseHeight(
double ADC1,
double ADC2,
double zHit,
double sint,
unsigned int id);
64 const double BPh(
double ADC1,
double ADC2,
double zHit,
unsigned int id);
65 const double EPulseHeight(
double ADC,
double rHit,
double cost,
unsigned int id);
66 const double EPh(
double ADC,
double rHit,
unsigned int id);
67 const double BVeff(
unsigned int id);
68 const double BAtten(
unsigned int id);
71 const double getQ0(
unsigned int id);
72 const double EVeff(
unsigned int id);
73 const double EAtten(
unsigned int id);
74 const double EGain(
unsigned int id);
75 const double ZTDC(
double tleft,
double tright,
unsigned int id);
76 const double ZTDC1(
double tright,
unsigned int id,
double z);
77 const double ZTDC2(
double tleft,
unsigned int id,
double z);
78 const double ZADC(
double qleft,
double qright,
unsigned int id);
79 const double ZADC1(
double qright,
unsigned int id,
double z);
80 const double ZADC2(
double qleft,
unsigned int id,
double z);
87 const int BrEast(
unsigned int No);
88 const int BrWest(
unsigned int No);
89 const int Endcap(
unsigned int No);
93 StatusCode FillfromDatabase();
94 bool m_hasbeeninitialized;
97 IDataProviderSvc* m_pCalibDataSvc;
98 IntegerProperty m_run;
99 std::vector<BTofCal*> fBTofCal;
100 std::vector<ETofCal*> fETofCal;
101 std::vector<BTofCommonCal*> fBTofCommonCal;
102 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 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 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 BSigma2(double zHit, unsigned int id)
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 BSigmaCluster(double zHit1, double zHit2, unsigned int id1, unsigned int id2)
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 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)
ETofCal * ETof(unsigned int id) const
const double BSigmaCounter(double zHit, unsigned int id)