BOSS 7.1.2
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/IService.h"
7#include "GaudiKernel/Service.h"
8#include "GaudiKernel/IDataProviderSvc.h"
10#include <vector>
11#include "GaudiKernel/IIncidentListener.h"
13
14//class EmcCalibConstSvc: public Service,
15// virtual public IEmcCalibConstSvc,
16class EmcCalibConstSvc: public extends<Service, IEmcCalibConstSvc>,
17 virtual public IIncidentListener {
18
19 public:
20 EmcCalibConstSvc( const std::string& name, ISvcLocator* svcloc );
22
23 //virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
24 virtual StatusCode initialize();
25 virtual StatusCode finalize();
26
27 // Incident handler
28 void handle(const Incident&);
29
30
31 IDataProviderSvc* m_calDataSvc;
32
33 /* Access by users */
34
35 double getDigiCalibConst(int No) const;
36 int getIxtalNumber(int No) const;
37
38 //get the size of the vectors
39 int getDigiCalibConstNo() const;
40 int getIxtalNumberNo() const;
41
42 //getPartID()=0, or 1, or 2, here endcap_east(0), barrel(1), endcap_west(2)
43 int getIndex( unsigned int PartId,
44 unsigned int ThetaIndex,
45 unsigned int PhiIndex) const;
46 unsigned int getPartID(int Index) const;
47 unsigned int getThetaIndex( int Index) const ;
48 unsigned int getPhiIndex( int Index) const ;
49 double getCrystalEmaxData( int Index) const;
50
51 void setCrystalEmaxData(double CrystalEmaxData[6240])
52 {
53 for(int i=0;i<6240;i++){
54 m_CrystalEmaxData[i]=CrystalEmaxData[i];
55
56 }
57 };
58
59 double getCrystalDeadEcut( int Index) const;
60
61 void setCrystalDeadEcut(double CrystalDeadEcut[6240])
62 {
63 for(int i=0;i<6240;i++){
64 m_CrystalDeadEcut[i]=CrystalDeadEcut[i];
65
66 }
67 };
68
69 void Dump();
70
71
72 public:
74
75 double m_CrystalEmaxData[6240];
76 double m_CrystalEmaxData_1[6240];
77 double m_CrystalEmaxData_2[6240];
84
93
94 double m_CrystalDeadEcut[6240];
96
98 private:
99
100 IDataProviderSvc* m_eventSvc;
101
102 IEmcSatuDeadEnSvc* m_EmcSatuDeadEnSvc;
103
104 // IEmcRecGeoSvc* m_emcRecGeoSvc;
105
106 bool m_readSatuDeadEnDb ;
107 bool m_inFlag;
108 int m_runFrom,m_runTo;
109};
110
111#endif /* EMCCALIBCONSTSVC_H_ */
double m_CrystalEmaxData_4740[6240]
EmcCalibConstSvc(const std::string &name, ISvcLocator *svcloc)
double m_CrystalDeadEcut_2020[6240]
void handle(const Incident &)
double m_CrystalEmaxData_2[6240]
virtual StatusCode finalize()
double m_CrystalEmaxData[6240]
void setCrystalDeadEcut(double CrystalDeadEcut[6240])
double m_CrystalEmaxData_4946[6240]
int getIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const
virtual StatusCode initialize()
double m_CrystalEmaxData_1[6240]
int getIxtalNumberNo() const
unsigned int getPartID(int Index) const
double m_CrystalDeadEcut[6240]
void setCrystalEmaxData(double CrystalEmaxData[6240])
int getDigiCalibConstNo() const
double m_CrystalEmaxData_4840[6240]
double m_CrystalEmaxData_4750[6240]
int getIxtalNumber(int No) const
double getCrystalEmaxData(int Index) const
EmcStructure * m_theEmcStruc
unsigned int getPhiIndex(int Index) const
IDataProviderSvc * m_calDataSvc
unsigned int getThetaIndex(int Index) const
double m_CrystalEmaxData_4914[6240]
double m_CrystalEmaxData_4780[6240]
double getDigiCalibConst(int No) const
double getCrystalDeadEcut(int Index) const