BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
MucCalibData.cxx
Go to the documentation of this file.
1/** @class MucCalibData
2 * Implementation of MucCalibData calibration TCDS class
3 */
4
5#include "CalibData/Muc/MucCalibData.h"
6#include "GaudiKernel/MsgStream.h"
7namespace CalibData {
9
10 StatusCode MucCalibData::update(CalibBase1& other, MsgStream* log)
11 {
12 MucCalibData& other1 = dynamic_cast<MucCalibData& >(other);
13 std::cout<<"========================================"<<"\n"
14 <<"here is the update in the MucCalibData"<<"\n"
15 <<"=================================================="<<std::endl;
16 CalibBase1::update(other, log);
22 //set the Calibration Data
23 for(int i=0;i<LAYER_MAX;i++) {
24 setLayerEff(other1.getLayerEff(i),i);
25 setLayerNos(other1.getLayerNos(i),i);
26 setLayerCnt(other1.getLayerCnt(i),i);
28 for(int j=0;j<CLST_MAX;j++){
29 setLayerClstPro(other1.getLayerClstPro(i,j),i,j);
30 }
31 }
32 for(int i=0;i<PART_MAX;i++) {
33 for(int j=0;j<SEGMENT_MAX;j++){
34 for(int k=0;k<LAYER_MAX;k++){
35 setBoxEff(other1.getBoxEff(i,j,k),i,j,k);
36 setBoxNos(other1.getBoxNos(i,j,k),i,j,k);
37 setBoxCnt(other1.getBoxCnt(i,j,k),i,j,k);
38 setBoxNosRatio(other1.getBoxNosRatio(i,j,k),i,j,k);
39 for(int l=0;l<CLST_MAX;l++){
40 setBoxClstPro(other1.getBoxClstPro(i,j,k,l),i,j,k,l);
41 }
42 }
43 }
44 }
45 for(int i=0;i<PART_MAX;i++){
46 for(int j=0;j<SEGMENT_MAX;j++){
47 for(int k=0;k<LAYER_MAX;k++){
48 for(int l=0;l<STRIP_INBOX_MAX;l++){
49 setStripEff(other1.getStripEff(i,j,k,l),i,j,k,l);
50 setStripNos(other1.getStripNos(i,j,k,l),i,j,k,l);
51 setStripCnt(other1.getStripCnt(i,j,k,l),i,j,k,l);
52 setStripNosRatio(other1.getStripNosRatio(i,j,k,l),i,j,k,l);
53 }
54 }
55 }
56 }
57 std::cout<<"updata complete================="<<std::endl;
58 return StatusCode::SUCCESS;
59}
60
61 //set the Calibration Data
62
63/* int MucCalibData::setDefault()
64 {
65
66 m_uniformEff = DEFAULT_EFF;
67 m_uniformNos = DEFAULT_NOS;
68 m_uniformClst = DEFAULT_CLST;
69
70 for(int i=0; i<LAYER_MAX; i++)
71 {
72 m_layerEff[i] = DEFAULT_EFF;
73 m_layerNos[i] = DEFAULT_NOS;
74 for(int j=0; j<CLST_MAX; j++)
75 m_layerClstPro[i][j] = DEFAULT_CLST_PRO[j];
76 }
77
78 for(int i=0; i<PART_MAX; i++)
79 {
80 for(int j=0; j<((i==1)?B_SEG_NUM:E_SEG_NUM); j++)
81 {
82 for(int k=0; k<((i==1)?B_LAY_NUM:E_LAY_NUM); k++)
83 {
84 m_boxEff[i][j][k] = DEFAULT_EFF;
85 m_boxNos[i][j][k] = DEFAULT_NOS;
86 for(int n=0; n<CLST_MAX; n++)
87 m_boxClstPro[i][j][k][n] = DEFAULT_CLST_PRO[n];
88 }
89 }
90 }
91
92 int strip_max;
93 for(int i=0; i<PART_MAX; i++)
94 {
95 for(int j=0; j<((i==1)?B_SEG_NUM:E_SEG_NUM); j++)
96 {
97 for(int k=0; k<((i==1)?B_LAY_NUM:E_LAY_NUM); k++)
98 {
99 strip_max = m_ptrIdTr->GetStripMax(i, j, k);
100 for(int n=0; n<strip_max; n++)
101 {
102 m_stripEff[i][j][k][n] = DEFAULT_EFF;
103 m_stripNos[i][j][k][n] = DEFAULT_NOS;
104 }
105 }
106 }
107 }
108
109 return 1;
110}
111
112*/
113
114
115}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
double getBoxClstPro(int part, int segment, int layer, int size) const
double getStripNos(int part, int segment, int layer, int strip) const
double getStripCnt(int part, int segment, int layer, int strip) const
double getStripNosRatio(int part, int segment, int layer, int strip) const
void setStripNos(const double stripnos, int i, int j, int k, int l)
void setBoxNosRatio(const double boxratio, int i, int j, int k)
void setStripEff(const double stripeff, int i, int j, int k, int l)
void setStripNosRatio(const double stripnosratio, int i, int j, int k, int l)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setStripCnt(const double stripcnt, int i, int j, int k, int l)
double getStripEff(int part, int segment, int layer, int strip) const
void setBoxClstPro(const double boxpro, int i, int j, int k, int l)