BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibConstSvc.h
Go to the documentation of this file.
1#ifndef EMCCALIBCONSTSVC_H_
2#define EMCCALIBCONSTSVC_H_
3
4#include "GaudiKernel/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IDataProviderSvc.h"
9#include <vector>
10
11
12class EmcCalibConstSvc: public Service, virtual public IEmcCalibConstSvc{
13 public:
14 EmcCalibConstSvc( const std::string& name, ISvcLocator* svcloc );
16
17 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
18 virtual StatusCode initialize();
19 virtual StatusCode finalize();
20
21 IDataProviderSvc* m_calDataSvc;
22
23 /* Access by users */
24
25 double getDigiCalibConst(int No) const;
26 int getIxtalNumber(int No) const;
27
28 //get the size of the vectors
29 int getDigiCalibConstNo() const;
30 int getIxtalNumberNo() const;
31
32 //getPartID()=0, or 1, or 2, here endcap_east(0), barrel(1), endcap_west(2)
33 int getIndex( unsigned int PartId,
34 unsigned int ThetaIndex,
35 unsigned int PhiIndex) const;
36 unsigned int getPartID(int Index) const;
37 unsigned int getThetaIndex( int Index) const ;
38 unsigned int getPhiIndex( int Index) const ;
39
40 void Dump();
41 public:
43 private:
44 // IEmcRecGeoSvc* m_emcRecGeoSvc;
45
46};
47
48#endif /* EMCCALIBCONSTSVC_H_ */
virtual StatusCode finalize()
int getIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const
virtual StatusCode initialize()
int getIxtalNumberNo() const
unsigned int getPartID(int Index) const
int getDigiCalibConstNo() const
int getIxtalNumber(int No) const
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
EmcStructure * m_theEmcStruc
unsigned int getPhiIndex(int Index) const
IDataProviderSvc * m_calDataSvc
unsigned int getThetaIndex(int Index) const
double getDigiCalibConst(int No) const