CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EstTofCaliSvc.h
Go to the documentation of this file.
1// $Id: EstTofCaliSvc.h,v 1.5 2012/11/06 08:01:34 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
13
14#include "GaudiKernel/Service.h"
15#include "GaudiKernel/IInterface.h"
16#include "GaudiKernel/Property.h"
18#include "GaudiKernel/IIncidentListener.h"
19#include "GaudiKernel/IDataProviderSvc.h"
20
21class EstTofCaliSvc : public Service, virtual public IEstTofCaliSvc,virtual public IIncidentListener
22{
23public:
24 // Constructors and destructors
25 EstTofCaliSvc( const std::string& name, ISvcLocator* svcloc );
27
28 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
29 virtual StatusCode initialize ( );
30 virtual StatusCode finalize ( );
31 void handle(const Incident&);
32
33 // Access by others
34 BTofCal* BTof(unsigned id) const;
36 ETofCal* ETof(unsigned id) const;
37
38 const double BTCorr1(double ADC,double zHit,unsigned int id);
39 const double BTCorr2(double ADC,double zHit,unsigned int id);
40 // const double BTCorrOffset1(double zHit,unsigned int id);
41 // const double BTCorrOffset2(double zHit,unsigned int id);
42 const double TOffset();
43 const double BTime1(double ADC,double TDC,double zHit,unsigned id);
44 const double BTime2(double ADC,double TDC,double zHit,unsigned id);
45 const double ETime(double ADC,double TDC,double rHit,unsigned id);
46 const bool ValidInfo(){return m_st;};
47 void Dump();
48private:
49 StatusCode FillfromDatabase();
50 bool m_hasbeeninitialized;
51
52private:
53 IDataProviderSvc* m_pCalibDataSvc;
54 IntegerProperty m_run;
55 std::vector<BTofCal*> fBTofCal;
56 std::vector<ETofCal*> fETofCal;
57 std::vector<BTofCommonCal*> fBTofCommonCal;
58
59 bool m_st;
60};
61
62#endif /* TOF_REC_GEO_H */
virtual StatusCode initialize()
ETofCal * ETof(unsigned id) const
void handle(const Incident &)
virtual StatusCode finalize()
BTofCal * BTof(unsigned id) const
const double TOffset()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
const double BTime2(double ADC, double TDC, double zHit, unsigned id)
const double ETime(double ADC, double TDC, double rHit, unsigned id)
EstTofCaliSvc(const std::string &name, ISvcLocator *svcloc)
const double BTime1(double ADC, double TDC, double zHit, unsigned id)
const double BTCorr1(double ADC, double zHit, unsigned int id)
const double BTCorr2(double ADC, double zHit, unsigned int id)
BTofCommonCal * BTofCommon() const
const bool ValidInfo()