BOSS 7.0.7
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"
12
13
14class EmcCalibConstSvc: public Service,
15 virtual public IEmcCalibConstSvc,
16 virtual public IIncidentListener {
17 public:
18 EmcCalibConstSvc( const std::string& name, ISvcLocator* svcloc );
20
21 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
22 virtual StatusCode initialize();
23 virtual StatusCode finalize();
24
25 // Incident handler
26 void handle(const Incident&);
27
28
29 IDataProviderSvc* m_calDataSvc;
30
31 /* Access by users */
32
33 double getDigiCalibConst(int No) const;
34 int getIxtalNumber(int No) const;
35
36 //get the size of the vectors
37 int getDigiCalibConstNo() const;
38 int getIxtalNumberNo() const;
39
40 //getPartID()=0, or 1, or 2, here endcap_east(0), barrel(1), endcap_west(2)
41 int getIndex( unsigned int PartId,
42 unsigned int ThetaIndex,
43 unsigned int PhiIndex) const;
44 unsigned int getPartID(int Index) const;
45 unsigned int getThetaIndex( int Index) const ;
46 unsigned int getPhiIndex( int Index) const ;
47 double getCrystalEmaxData( int Index) const;
48
49 void setCrystalEmaxData(double CrystalEmaxData[6240])
50 {
51 for(int i=0;i<6240;i++){
52 m_CrystalEmaxData[i]=CrystalEmaxData[i];
53
54 }
55 };
56
57 double getCrystalDeadEcut( int Index) const;
58
59 void setCrystalDeadEcut(double CrystalDeadEcut[6240])
60 {
61 for(int i=0;i<6240;i++){
62 m_CrystalDeadEcut[i]=CrystalDeadEcut[i];
63
64 }
65 };
66
67 void Dump();
68
69
70 public:
72 double m_CrystalEmaxData[6240];
73 double m_CrystalEmaxData_1[6240];
74 double m_CrystalEmaxData_2[6240];
75 double m_CrystalDeadEcut[6240];
77
81 private:
82
83 IDataProviderSvc* m_eventSvc;
84
85
86 // IEmcRecGeoSvc* m_emcRecGeoSvc;
87
88
89
90};
91
92#endif /* EMCCALIBCONSTSVC_H_ */
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])
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
int getIxtalNumber(int No) const
double getCrystalEmaxData(int Index) 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
double getCrystalDeadEcut(int Index) const