BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EstTofCaliSvc.h
Go to the documentation of this file.
1// $Id: EstTofCaliSvc.h,v 1.9 2022/01/25 07:38:58 maqm 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
15
16#include "GaudiKernel/Service.h"
17#include "GaudiKernel/IInterface.h"
18#include "GaudiKernel/Property.h"
20#include "GaudiKernel/IIncidentListener.h"
21#include "GaudiKernel/IDataProviderSvc.h"
22
23class EstTofCaliSvc: public extends<Service, IEstTofCaliSvc>,virtual public IIncidentListener
24//class EstTofCaliSvc : public Service, virtual public IEstTofCaliSvc,virtual public IIncidentListener
25{
26public:
27 // Constructors and destructors
28 EstTofCaliSvc( 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 StatusCode chooseConstants( int run, int number );
37
38 // Access by others
39 BTofCal* BTof(unsigned id) const;
41 ETofCal* ETof(unsigned id) const;
42 EtfCal* EtfTof(unsigned int id) const;
43 TofInfoCal* TofInfo() const;
44
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);
48 // const double BTCorrOffset2(double zHit,unsigned int id);
49 const double TOffset();
50 const double BTime1(double ADC,double TDC,double zHit,unsigned id);
51 const double BTime2(double ADC,double TDC,double zHit,unsigned id);
52 const double ETime(double ADC,double TDC,double rHit,unsigned int id);
53 const double EtfTime(double ADC1,double ADC2, double TDC1, double TDC2,unsigned int id, unsigned int strip);
54 const double EtfTime1(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
55 const double EtfTime2(double ADC,double TDC,double zHit,unsigned int id, unsigned int strip);
56 const double EtfTime(double TDC1, double TDC2,unsigned int id, unsigned int strip);
57 const bool ValidInfo(){return m_st;};
58 void Dump();
59private:
60 StatusCode FillfromDatabase();
61 bool m_hasbeeninitialized;
62 unsigned int m_sequence;
63
64private:
65 IDataProviderSvc* m_pCalibDataSvc;
66 IntegerProperty m_run;
67 std::vector<BTofCal*> fBTofCal;
68 std::vector<ETofCal*> fETofCal;
69 std::vector<EtfCal*> fEtfCal;
70 std::vector<BTofCommonCal*> fBTofCommonCal;
71 std::vector<TofInfoCal*> fTofInfoCal;
72
73 bool m_st;
74};
75
76#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)
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)
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
const bool ValidInfo()