BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcCalibConstSvc/EmcCalibConstSvc-00-00-12/EmcCalibConstSvc/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"
8#include "EmcCalibConstSvc/IEmcCalibConstSvc.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 double getCrystalEmaxData( int Index) const;
40
41 void Dump();
42 public:
44 double m_CrystalEmaxData[6240];
45 private:
46
47 // IEmcRecGeoSvc* m_emcRecGeoSvc;
48
49
50
51};
52
53#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
double getCrystalEmaxData(int Index) const
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
unsigned int getPhiIndex(int Index) const
unsigned int getThetaIndex(int Index) const
double getDigiCalibConst(int No) const