BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
MucCalibConstSvc.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------|
2// [File ]: MucCalibConstSvc.h |
3// [Brief ]: Head file of MUC calibration constants service |
4// [Author]: Xie Yuguang, <[email protected]> |
5// [Date ]: Aug 22, 2006 |
6//------------------------------------------------------------------------------|
7
8#ifndef MUC_CALIB_CONST_SVC_H_
9#define MUC_CALIB_CONST_SVC_H_
10
11#include "GaudiKernel/IInterface.h"
12#include "GaudiKernel/Kernel.h"
13#include "GaudiKernel/Service.h"
14#include "GaudiKernel/IDataProviderSvc.h"
15#include "GaudiKernel/SmartDataPtr.h"
16
18
19class MucCalibConstSvc: public extends<Service, IMucCalibConstSvc>
20{
21 public:
22 MucCalibConstSvc( const std::string& name, ISvcLocator* svcloc );
24
25 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
26 virtual StatusCode initialize();
27 virtual StatusCode finalize();
28
29 //--------- Access by users -------------
30 inline int getLevel() const;
31
32 inline double getEff( int part, int segment, int layer, int strip ) const;
33 inline double getCnt( int part, int segment, int layer, int strip ) const; // all background
34 inline double getNos( int part, int segment, int layer, int strip ) const; // noise to tracking
35 inline double getNosRatio( int part, int segment, int layer, int strip ) const;
36 inline double getClst(int part, int segment, int layer, double prob ) const;
37
38 inline double getUniformEff() const;
39 inline double getUniformCnt() const;
40 inline double getUniformNos() const;
41 inline double getUniformNosRatio() const;
42 inline double getUniformClst() const; // probability = 1(biggest strip window for tracking)
43
44 inline double getLayerEff( int layer ) const;
45 inline double getLayerCnt( int layer ) const;
46 inline double getLayerNos( int layer ) const;
47 inline double getLayerNosRatio( int layer ) const;
48 inline double getLayerClst( int layer, double prob ) const;
49
50 inline double getBoxEff( int part, int segment, int layer ) const;
51 inline double getBoxCnt( int part, int segment, int layer ) const;
52 inline double getBoxNos( int part, int segment, int layer ) const;
53 inline double getBoxNosRatio( int part, int segment, int layer ) const;
54 inline double getBoxClst( int part, int segment, int layer, double prob ) const;
55
56 inline double getStripEff( int part, int segment, int layer, int strip ) const;
57 inline double getStripCnt( int part, int segment, int layer, int strip ) const;
58 inline double getStripNos( int part, int segment, int layer, int strip ) const;
59 inline double getStripNosRatio( int part, int segment, int layer, int strip ) const;
60
61 private:
62
63 IDataProviderSvc* m_pCalibDataSvc;
64 int m_fConfigMode;
65 double m_fUniformEff;
66 double m_fUniformCnt;
67 double m_fUniformNos;
68 double m_fUniformNosRatio;
69 double m_fUniformClst;
70};
71
72#endif // MUC_CALIB_CONST_SVC_H_
double getBoxNos(int part, int segment, int layer) const
double getStripNosRatio(int part, int segment, int layer, int strip) const
double getClst(int part, int segment, int layer, double prob) const
double getUniformNos() const
double getBoxClst(int part, int segment, int layer, double prob) const
double getLayerNos(int layer) const
double getCnt(int part, int segment, int layer, int strip) const
double getStripCnt(int part, int segment, int layer, int strip) const
double getBoxEff(int part, int segment, int layer) const
double getEff(int part, int segment, int layer, int strip) const
double getUniformEff() const
virtual StatusCode finalize()
double getLayerEff(int layer) const
MucCalibConstSvc(const std::string &name, ISvcLocator *svcloc)
double getUniformClst() const
double getBoxCnt(int part, int segment, int layer) const
double getBoxNosRatio(int part, int segment, int layer) const
double getUniformCnt() const
double getStripNos(int part, int segment, int layer, int strip) const
double getNosRatio(int part, int segment, int layer, int strip) const
double getLayerNosRatio(int layer) const
double getLayerClst(int layer, double prob) const
double getUniformNosRatio() const
double getLayerCnt(int layer) const
virtual StatusCode initialize()
double getNos(int part, int segment, int layer, int strip) const
double getStripEff(int part, int segment, int layer, int strip) const