BOSS 8.0.0
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#pragma once
4
5#include <ios>
6#include <iostream>
7#include <vector>
8
9#include "Gaudi/Property.h"
10#include "GaudiKernel/IDataProviderSvc.h"
11#include "GaudiKernel/IIncidentListener.h"
12#include "GaudiKernel/IInterface.h"
13#include "GaudiKernel/Service.h"
14
15#include "EstTofCaliSvc/IEstTofCaliSvc.h"
16
17class EstTofCaliSvc : public extends<Service, IEstTofCaliSvc>,
18 virtual public IIncidentListener
19// class EstTofCaliSvc : public Service, virtual public IEstTofCaliSvc,virtual public
20// IIncidentListener
21{
22public:
23 // Constructors and destructors
24 EstTofCaliSvc( const std::string& name, ISvcLocator* svcloc );
26
27 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
28 virtual StatusCode initialize();
29 virtual StatusCode finalize();
30 void handle( const Incident& );
31
32 StatusCode chooseConstants( int run, int number );
33
34 // Access by others
35 EstBTofCal* BTof( unsigned id ) const;
37 EstETofCal* ETof( unsigned id ) const;
38 EstEtfCal* EtfTof( unsigned int id ) const;
39 EstTofInfoCal* TofInfo() const;
40
41 const double BTCorr1( double ADC, double zHit, unsigned id );
42 const double BTCorr2( double ADC, double zHit, unsigned id );
43 const double TOffset();
44 const double BTime1( double ADC, double TDC, double zHit, unsigned id );
45 const double BTime2( double ADC, double TDC, double zHit, unsigned id );
46 const double ETime( double ADC, double TDC, double rHit, unsigned id );
47 const double EtfTime( double ADC1, double ADC2, double TDC1, double TDC2, unsigned id,
48 unsigned int strip );
49 const double EtfTime1( double ADC, double TDC, double zHit, unsigned id,
50 unsigned int strip );
51 const double EtfTime2( double ADC, double TDC, double zHit, unsigned id,
52 unsigned int strip );
53 const double EtfTime( double TDC1, double TDC2, unsigned id, unsigned int strip );
54 const bool ValidInfo() { return m_st; };
55 void Dump();
56
57private:
58 StatusCode FillfromDatabase();
59 bool m_hasbeeninitialized;
60 unsigned int m_sequence;
61
62private:
63 IDataProviderSvc* m_pCalibDataSvc;
64 int m_run;
65
66 std::vector<EstBTofCal*> fBTofCal;
67 std::vector<EstETofCal*> fETofCal;
68 std::vector<EstEtfCal*> fEtfCal;
69 std::vector<EstBTofCommonCal*> fBTofCommonCal;
70 std::vector<EstTofInfoCal*> fTofInfoCal;
71
72 bool m_st;
73};
EstBTofCommonCal * BTofCommon() const
virtual StatusCode initialize()
void handle(const Incident &)
virtual StatusCode finalize()
StatusCode chooseConstants(int run, int number)
const double TOffset()
const double BTCorr1(double ADC, double zHit, unsigned id)
const double EtfTime1(double ADC, double TDC, double zHit, unsigned id, unsigned int strip)
EstTofInfoCal * TofInfo() const
const double BTime2(double ADC, double TDC, double zHit, unsigned id)
EstEtfCal * EtfTof(unsigned int id) const
const double ETime(double ADC, double TDC, double rHit, unsigned id)
EstBTofCal * BTof(unsigned id) const
EstTofCaliSvc(const std::string &name, ISvcLocator *svcloc)
const double BTime1(double ADC, double TDC, double zHit, unsigned id)
const double BTCorr2(double ADC, double zHit, unsigned id)
const double EtfTime(double ADC1, double ADC2, double TDC1, double TDC2, unsigned id, unsigned int strip)
const bool ValidInfo()
EstETofCal * ETof(unsigned id) const
const double EtfTime2(double ADC, double TDC, double zHit, unsigned id, unsigned int strip)