BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof/EstTofCaliSvc/EstTofCaliSvc-00-00-10/EstTofCaliSvc/EstTofCaliSvc.h
Go to the documentation of this file.
1// $Id: EstTofCaliSvc.h,v 1.7 2015/08/20 01:41:55 sunss Exp $ // -*-c++-*-
2// header file for a class called "TofCaliSvc"
3#ifndef EsTTOFCALISVC_H
4#define EsTTOFCALISVC_H
5
6#include <iostream>
7#include <ios>
8#include <vector>
9
10#include "EstTofCaliSvc/BTofCal.h"
11#include "EstTofCaliSvc/ETofCal.h"
12#include "EstTofCaliSvc/EtfCal.h"
13#include "EstTofCaliSvc/BTofCommonCal.h"
14
15#include "GaudiKernel/Service.h"
16#include "GaudiKernel/IInterface.h"
17#include "GaudiKernel/Property.h"
18#include "EstTofCaliSvc/IEstTofCaliSvc.h"
19#include "GaudiKernel/IIncidentListener.h"
20#include "GaudiKernel/IDataProviderSvc.h"
21
22class EstTofCaliSvc : public Service, virtual public IEstTofCaliSvc,virtual public IIncidentListener
23{
24public:
25 // Constructors and destructors
26 EstTofCaliSvc( const std::string& name, ISvcLocator* svcloc );
28
29 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
30 virtual StatusCode initialize ( );
31 virtual StatusCode finalize ( );
32 void handle(const Incident&);
33
34 // Access by others
35 BTofCal* BTof(unsigned id) const;
37 ETofCal* ETof(unsigned id) const;
38 EtfCal* EtfTof(unsigned int id) const;
39
40 const double BTCorr1(double ADC,double zHit,unsigned int id);
41 const double BTCorr2(double ADC,double zHit,unsigned int id);
42 // const double BTCorrOffset1(double zHit,unsigned int id);
43 // const double BTCorrOffset2(double zHit,unsigned int id);
44 const double TOffset();
45 const double BTime1(double ADC,double TDC,double zHit,unsigned id);
46 const double BTime2(double ADC,double TDC,double zHit,unsigned id);
47 const double ETime(double ADC,double TDC,double rHit,unsigned int id);
48 const double EtfTime(double ADC1,double ADC2, double TDC1, double TDC2,unsigned int id, unsigned int strip);
49 const double EtfTime1(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
50 const double EtfTime2(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
51 const double EtfTime(double TDC1, double TDC2,unsigned int id, unsigned int strip);
52 const bool ValidInfo(){return m_st;};
53 void Dump();
54private:
55 StatusCode FillfromDatabase();
56 bool m_hasbeeninitialized;
57
58private:
59 IDataProviderSvc* m_pCalibDataSvc;
60 IntegerProperty m_run;
61 std::vector<BTofCal*> fBTofCal;
62 std::vector<ETofCal*> fETofCal;
63 std::vector<EtfCal*> fEtfCal;
64 std::vector<BTofCommonCal*> fBTofCommonCal;
65
66 bool m_st;
67};
68
69#endif /* TOF_REC_GEO_H */
ETofCal * ETof(unsigned id) const
void handle(const Incident &)
BTofCal * BTof(unsigned id) const
const double ETime(double ADC, double TDC, double rHit, unsigned int id)
const double TOffset()
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)
virtual StatusCode initialize()
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)
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
virtual StatusCode finalize()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)