CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCaliSvc.h
Go to the documentation of this file.
1// $Id: TofCaliSvc.h,v 1.30 2012/09/19 00:00:15 guot Exp $ // -*-c++-*-
2// header file for a class called "TofCaliSvc"
3#ifndef TOFCALISVC_H
4#define TOFCALISVC_H
5
6#include <iostream>
7#include <ios>
8#include <vector>
9//#include "DBBesGeoBarTOF/DB2BesGeoBarTOF.h"
10//#include "DBBesGeoEndTOF/DB2BesGeoEndTOF.h"
11
12#include "TofCaliSvc/BTofCal.h"
13#include "TofCaliSvc/BTofCommonCal.h"
14#include "TofCaliSvc/ETofCal.h"
15#include "TofCaliSvc/TofInfoCal.h"
16
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"
23
24class TofCaliSvc : public Service, virtual public ITofCaliSvc,virtual public IIncidentListener
25{
26public:
27 // Constructors and destructors
28 TofCaliSvc( const std::string& name, ISvcLocator* svcloc );
30
31 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
32 virtual StatusCode initialize ( );
33 virtual StatusCode finalize ( );
34 void handle(const Incident&);
35
36 // Access by others
37 BTofCal* BTof(unsigned int id) const;
39 ETofCal* ETof(unsigned int id) const;
40 TofInfoCal* TofInfo() const;
41
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);
49 const double TOffset();
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);
52 // const double BTime(double tleft,double tright,double z,unsigned int id);
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);
58 const double BSigmaCounter(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);
69 const double BGainForward(unsigned int id);
70 const double BGainBackward(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);
81 const int RunBegin();
82 const int RunEnd();
83 const int Version();
84 const int QCorr();
85 const int QElec();
86 const int MisLable();
87 const int BrEast(unsigned int No);
88 const int BrWest(unsigned int No);
89 const int Endcap(unsigned int No);
90 void Dump();
91
92private:
93 StatusCode FillfromDatabase();
94 bool m_hasbeeninitialized;
95
96private:
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;
103
104};
105#endif /* TOF_REC_GEO_H */
const double BTimeCounter(double tleft, double tright, double z, unsigned int id)
Definition: TofCaliSvc.cxx:418
const double ZADC(double qleft, double qright, unsigned int id)
Definition: TofCaliSvc.cxx:684
const double BPulseHeight1(double ADC, double zHit, double sint, unsigned int id)
Definition: TofCaliSvc.cxx:558
const double BPh(double ADC1, double ADC2, double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:586
const int RunBegin()
Definition: TofCaliSvc.cxx:727
const double ZTDC2(double tleft, unsigned int id, double z)
Definition: TofCaliSvc.cxx:674
const double BPulseHeight2(double ADC, double zHit, double sint, unsigned int id)
Definition: TofCaliSvc.cxx:567
const int MisLable()
Definition: TofCaliSvc.cxx:747
void Dump()
Definition: TofCaliSvc.cxx:779
const double EGain(unsigned int id)
Definition: TofCaliSvc.cxx:722
const double BTimeCluster(double tlayer1, double tlayer2, double z1, double z2, unsigned int id1, unsigned int id2)
Definition: TofCaliSvc.cxx:439
const double EPh(double ADC, double rHit, unsigned int id)
Definition: TofCaliSvc.cxx:608
const double ZTDC1(double tright, unsigned int id, double z)
Definition: TofCaliSvc.cxx:664
TofInfoCal * TofInfo() const
Definition: TofCaliSvc.cxx:775
const double BPulseHeight(double ADC1, double ADC2, double zHit, double sint, unsigned int id)
Definition: TofCaliSvc.cxx:576
const int QCorr()
Definition: TofCaliSvc.cxx:739
const int BrEast(unsigned int No)
Definition: TofCaliSvc.cxx:751
const double BGainForward(unsigned int id)
Definition: TofCaliSvc.cxx:637
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition: TofCaliSvc.cxx:48
const double BTCorrOffset2(double zHit, unsigned int id, double t0)
Definition: TofCaliSvc.cxx:317
const double BTime2(double ADC, double TDC, double zHit, unsigned int id, double t0)
Definition: TofCaliSvc.cxx:383
const double EPulseHeight(double ADC, double rHit, double cost, unsigned int id)
Definition: TofCaliSvc.cxx:595
const double BSigma1(double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:460
const double BAtten(unsigned int id)
Definition: TofCaliSvc.cxx:632
virtual StatusCode finalize()
Definition: TofCaliSvc.cxx:89
const double BSigma2(double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:476
const double BTime1(double ADC, double TDC, double zHit, unsigned int id, double t0)
Definition: TofCaliSvc.cxx:365
BTofCal * BTof(unsigned int id) const
Definition: TofCaliSvc.cxx:763
const double ETime(double ADC, double TDC, double rHit, unsigned int id)
Definition: TofCaliSvc.cxx:521
const double BTCorrOffset1(double zHit, unsigned int id, double t0)
Definition: TofCaliSvc.cxx:275
const double BSigmaCluster(double zHit1, double zHit2, unsigned int id1, unsigned int id2)
Definition: TofCaliSvc.cxx:508
const double ZADC1(double qright, unsigned int id, double z)
Definition: TofCaliSvc.cxx:695
virtual StatusCode initialize()
Definition: TofCaliSvc.cxx:57
const double BGainBackward(unsigned int id)
Definition: TofCaliSvc.cxx:645
const double BVeff(unsigned int id)
Definition: TofCaliSvc.cxx:623
const double ESigma(double rHit, unsigned int id)
Definition: TofCaliSvc.cxx:542
const int Version()
Definition: TofCaliSvc.cxx:735
const double ZADC2(double qleft, unsigned int id, double z)
Definition: TofCaliSvc.cxx:706
const double getQ0(unsigned int id)
Definition: TofCaliSvc.cxx:618
const int BrWest(unsigned int No)
Definition: TofCaliSvc.cxx:755
const int RunEnd()
Definition: TofCaliSvc.cxx:731
const double ZTDC(double tleft, double tright, unsigned int id)
Definition: TofCaliSvc.cxx:655
const double ETDelay(unsigned int id)
Definition: TofCaliSvc.cxx:230
const double EVeff(unsigned int id)
Definition: TofCaliSvc.cxx:650
const double TOffset()
Definition: TofCaliSvc.cxx:359
const double EAtten(unsigned int id)
Definition: TofCaliSvc.cxx:717
const int Endcap(unsigned int No)
Definition: TofCaliSvc.cxx:759
const double BTCorr2(double ADC, double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:259
const int QElec()
Definition: TofCaliSvc.cxx:743
BTofCommonCal * BTofCommon() const
Definition: TofCaliSvc.cxx:771
const double BTCorr1(double ADC, double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:243
void handle(const Incident &)
Definition: TofCaliSvc.cxx:790
const double BTDelay1(unsigned int id)
Definition: TofCaliSvc.cxx:204
const double BTDelay2(unsigned int id)
Definition: TofCaliSvc.cxx:217
ETofCal * ETof(unsigned int id) const
Definition: TofCaliSvc.cxx:767
const double BSigmaCounter(double zHit, unsigned int id)
Definition: TofCaliSvc.cxx:492