BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/EstTofCaliSvc/EstTofCaliSvc/EstTofCaliSvc.h
Go to the documentation of this file.
1// $Id: EstTofCaliSvc.h,v 1.8 2019/09/20 07:19:47 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#include "EstTofCaliSvc/TofInfoCal.h"
15
16#include "GaudiKernel/Service.h"
17#include "GaudiKernel/IInterface.h"
18#include "GaudiKernel/Property.h"
19#include "EstTofCaliSvc/IEstTofCaliSvc.h"
20#include "GaudiKernel/IIncidentListener.h"
21#include "GaudiKernel/IDataProviderSvc.h"
22
23class EstTofCaliSvc : public Service, virtual public IEstTofCaliSvc,virtual public IIncidentListener
24{
25public:
26 // Constructors and destructors
27 EstTofCaliSvc( const std::string& name, ISvcLocator* svcloc );
29
30 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
31 virtual StatusCode initialize ( );
32 virtual StatusCode finalize ( );
33 void handle(const Incident&);
34
35 StatusCode chooseConstants( int run, int number );
36
37 // Access by others
38 BTofCal* BTof(unsigned id) const;
40 ETofCal* ETof(unsigned id) const;
41 EtfCal* EtfTof(unsigned int id) const;
42 TofInfoCal* TofInfo() const;
43
44 const double BTCorr1(double ADC,double zHit,unsigned int id);
45 const double BTCorr2(double ADC,double zHit,unsigned int id);
46 // const double BTCorrOffset1(double zHit,unsigned int id);
47 // const double BTCorrOffset2(double zHit,unsigned int id);
48 const double TOffset();
49 const double BTime1(double ADC,double TDC,double zHit,unsigned id);
50 const double BTime2(double ADC,double TDC,double zHit,unsigned id);
51 const double ETime(double ADC,double TDC,double rHit,unsigned int id);
52 const double EtfTime(double ADC1,double ADC2, double TDC1, double TDC2,unsigned int id, unsigned int strip);
53 const double EtfTime1(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
54 const double EtfTime2(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
55 const double EtfTime(double TDC1, double TDC2,unsigned int id, unsigned int strip);
56 const bool ValidInfo(){return m_st;};
57 void Dump();
58private:
59 StatusCode FillfromDatabase();
60 bool m_hasbeeninitialized;
61 unsigned int m_sequence;
62
63private:
64 IDataProviderSvc* m_pCalibDataSvc;
65 IntegerProperty m_run;
66 std::vector<BTofCal*> fBTofCal;
67 std::vector<ETofCal*> fETofCal;
68 std::vector<EtfCal*> fEtfCal;
69 std::vector<BTofCommonCal*> fBTofCommonCal;
70 std::vector<TofInfoCal*> fTofInfoCal;
71
72 bool m_st;
73};
74
75#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 ETime(double ADC, double TDC, double rHit, unsigned int id)
StatusCode chooseConstants(int run, int number)
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 queryInterface(const InterfaceID &riid, void **ppvUnknown)
const double BTime2(double ADC, double TDC, double zHit, unsigned id)
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)
TofInfoCal * TofInfo() const
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