BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::MucCalibData Class Reference

#include <MucCalibData.h>

+ Inheritance diagram for CalibData::MucCalibData:

Public Member Functions

 MucCalibData ()
 
virtual ~MucCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
double getUniformEff () const
 
double getUniformNos () const
 
double getUniformClst () const
 
double getUniformCnt () const
 
double getUniformNosRatio () const
 
double getLayerEff (int layer) const
 
double getLayerNos (int layer) const
 
double getLayerNosRatio (int layer) const
 
double getLayerCnt (int layer) const
 
double getLayerClstPro (int layer, int size) const
 
double getLayerClst (int layer, double prob) const
 
double getBoxEff (int part, int segment, int layer) const
 
double getBoxNos (int part, int segment, int layer) const
 
double getBoxCnt (int part, int segment, int layer) const
 
double getBoxNosRatio (int part, int segment, int layer) const
 
double getBoxClstPro (int part, int segment, int layer, int size) const
 
double getBoxClst (int part, int segment, int layer, double prob) const
 
double getStripEff (int part, int segment, int layer, int strip) 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 setUniformEff (double eff)
 
void setUniformNos (double nos)
 
void setUniformClst (double clst)
 
void setUniformCnt (double cnt)
 
void setUniformNosRatio (double nosratio)
 
void setLayerEff (const double layereff, int i)
 
void setLayerNos (const double layernos, int i)
 
void setLayerCnt (const double layercnt, int i)
 
void setLayerNosRatio (const double layernosratio, int i)
 
void setLayerClstPro (const double layerpro, int i, int j)
 
void setBoxEff (const double boxeff, int i, int j, int k)
 
void setBoxNos (const double boxnos, int i, int j, int k)
 
void setBoxCnt (const double boxcnt, int i, int j, int k)
 
void setBoxNosRatio (const double boxratio, int i, int j, int k)
 
void setBoxClstPro (const double boxpro, int i, int j, int k, int l)
 
void setStripEff (const double stripeff, int i, int j, int k, int l)
 
void setStripNos (const double stripnos, int i, int j, int k, int l)
 
void setStripCnt (const double stripcnt, int i, int j, int k, int l)
 
void setStripNosRatio (const double stripnosratio, int i, int j, int k, int l)
 
- Public Member Functions inherited from CalibData::CalibBase1
 CalibBase1 ()
 
 CalibBase1 (int serNo, int runfrm, int runto)
 
 CalibBase1 (int runfrm, int runto)
 
 CalibBase1 (const CalibBase1 &obj)
 
virtual StatusCode update (CalibBase1 &obj, MsgStream *)
 
virtual int getSerNo () const
 Following is intended for deep copy.
 
virtual int getrunfrm () const
 
virtual int getrunto () const
 
void setSerNo (int ser)
 
void setrunfrm (int runfrm)
 
void setrunto (int runto)
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

- Protected Attributes inherited from CalibData::CalibBase1
int m_serNo
 
int m_runfrm
 
int m_runto
 

Detailed Description

Definition at line 20 of file MucCalibData.h.

Constructor & Destructor Documentation

◆ MucCalibData()

MucCalibData::MucCalibData ( )

Definition at line 8 of file MucCalibData.cxx.

8{}

◆ ~MucCalibData()

virtual CalibData::MucCalibData::~MucCalibData ( )
inlinevirtual

Definition at line 24 of file MucCalibData.h.

24{}

Member Function Documentation

◆ classID()

static const CLID & CalibData::MucCalibData::classID ( )
inlinestatic

Definition at line 29 of file MucCalibData.h.

29{ return CLID_Calib_MucCal; }
const CLID CLID_Calib_MucCal
Definition: CalibModel.h:49

Referenced by clID().

◆ clID()

virtual const CLID & CalibData::MucCalibData::clID ( ) const
inlinevirtual

Definition at line 27 of file MucCalibData.h.

27{ return classID(); }
static const CLID & classID()
Definition: MucCalibData.h:29

◆ getBoxClst()

double CalibData::MucCalibData::getBoxClst ( int  part,
int  segment,
int  layer,
double  prob 
) const
inline

Definition at line 65 of file MucCalibData.h.

65 {
66 double diff = 2.0;
67 int size = 0;
68 for(int i=0; i<CLST_MAX; i++)
69 {
70 if( fabs(prob - m_boxClstPro[part][segment][layer][i]) < diff ) {
71 diff = fabs(prob - m_boxClstPro[part][segment][layer][i]);
72 size = i+1;
73 }
74 }
75 return size;
76}

◆ getBoxClstPro()

double CalibData::MucCalibData::getBoxClstPro ( int  part,
int  segment,
int  layer,
int  size 
) const
inline

Definition at line 64 of file MucCalibData.h.

64{ return m_boxClstPro[part][segment][layer][size]; }

Referenced by update().

◆ getBoxCnt()

double CalibData::MucCalibData::getBoxCnt ( int  part,
int  segment,
int  layer 
) const
inline

Definition at line 62 of file MucCalibData.h.

62{ return m_boxCnt[part][segment][layer];}

Referenced by update().

◆ getBoxEff()

double CalibData::MucCalibData::getBoxEff ( int  part,
int  segment,
int  layer 
) const
inline

Definition at line 60 of file MucCalibData.h.

60{ return m_boxEff[part][segment][layer];}

Referenced by update().

◆ getBoxNos()

double CalibData::MucCalibData::getBoxNos ( int  part,
int  segment,
int  layer 
) const
inline

Definition at line 61 of file MucCalibData.h.

61{ return m_boxNos[part][segment][layer];}

Referenced by update().

◆ getBoxNosRatio()

double CalibData::MucCalibData::getBoxNosRatio ( int  part,
int  segment,
int  layer 
) const
inline

Definition at line 63 of file MucCalibData.h.

63{return m_boxNosRatio[part][segment][layer];}

Referenced by update().

◆ getLayerClst()

double CalibData::MucCalibData::getLayerClst ( int  layer,
double  prob 
) const
inline

Definition at line 47 of file MucCalibData.h.

47 {
48 double diff = 2.0;
49 int size = 0;
50 for(int i=0; i<CLST_MAX; i++)
51 {
52 if( fabs(prob - m_layerClstPro[layer][i] ) < diff ) {
53 diff = fabs(prob - m_layerClstPro[layer][i]);
54 size = i+1;
55 }
56 }
57 return size;
58}

◆ getLayerClstPro()

double CalibData::MucCalibData::getLayerClstPro ( int  layer,
int  size 
) const
inline

Definition at line 46 of file MucCalibData.h.

46{ return m_layerClstPro[layer][size]; }

Referenced by update().

◆ getLayerCnt()

double CalibData::MucCalibData::getLayerCnt ( int  layer) const
inline

Definition at line 45 of file MucCalibData.h.

45{return m_layerCnt[layer];}

Referenced by update().

◆ getLayerEff()

double CalibData::MucCalibData::getLayerEff ( int  layer) const
inline

Definition at line 42 of file MucCalibData.h.

42{ return m_layerEff[layer];}

Referenced by update().

◆ getLayerNos()

double CalibData::MucCalibData::getLayerNos ( int  layer) const
inline

Definition at line 43 of file MucCalibData.h.

43{return m_layerNos[layer];}

Referenced by update().

◆ getLayerNosRatio()

double CalibData::MucCalibData::getLayerNosRatio ( int  layer) const
inline

Definition at line 44 of file MucCalibData.h.

44{return m_layerNosRatio[layer];}

Referenced by update().

◆ getStripCnt()

double CalibData::MucCalibData::getStripCnt ( int  part,
int  segment,
int  layer,
int  strip 
) const
inline

Definition at line 80 of file MucCalibData.h.

80{ return m_stripCnt[part][segment][layer][strip];}

Referenced by update().

◆ getStripEff()

double CalibData::MucCalibData::getStripEff ( int  part,
int  segment,
int  layer,
int  strip 
) const
inline

Definition at line 78 of file MucCalibData.h.

78{ return m_stripEff[part][segment][layer][strip];}

Referenced by update().

◆ getStripNos()

double CalibData::MucCalibData::getStripNos ( int  part,
int  segment,
int  layer,
int  strip 
) const
inline

Definition at line 79 of file MucCalibData.h.

79{ return m_stripNos[part][segment][layer][strip];}

Referenced by update().

◆ getStripNosRatio()

double CalibData::MucCalibData::getStripNosRatio ( int  part,
int  segment,
int  layer,
int  strip 
) const
inline

Definition at line 81 of file MucCalibData.h.

81{ return m_stripNosRatio[part][segment][layer][strip];}

Referenced by update().

◆ getUniformClst()

double CalibData::MucCalibData::getUniformClst ( ) const
inline

Definition at line 38 of file MucCalibData.h.

38{ return m_uniformClst;} // probability = 1(biggest strip window for tracking)

Referenced by update().

◆ getUniformCnt()

double CalibData::MucCalibData::getUniformCnt ( ) const
inline

Definition at line 39 of file MucCalibData.h.

39{return m_uniformCnt;}

Referenced by update().

◆ getUniformEff()

double CalibData::MucCalibData::getUniformEff ( ) const
inline

Definition at line 36 of file MucCalibData.h.

36{ return m_uniformEff;}

Referenced by update().

◆ getUniformNos()

double CalibData::MucCalibData::getUniformNos ( ) const
inline

Definition at line 37 of file MucCalibData.h.

37{ return m_uniformNos;}

◆ getUniformNosRatio()

double CalibData::MucCalibData::getUniformNosRatio ( ) const
inline

Definition at line 40 of file MucCalibData.h.

40{return m_uniformNosRatio;}

Referenced by update().

◆ setBoxClstPro()

void CalibData::MucCalibData::setBoxClstPro ( const double  boxpro,
int  i,
int  j,
int  k,
int  l 
)
inline

Definition at line 101 of file MucCalibData.h.

101{m_boxClstPro[i][j][k][l]=boxpro;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setBoxCnt()

void CalibData::MucCalibData::setBoxCnt ( const double  boxcnt,
int  i,
int  j,
int  k 
)
inline

Definition at line 99 of file MucCalibData.h.

99{m_boxCnt[i][j][k] = boxcnt;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setBoxEff()

void CalibData::MucCalibData::setBoxEff ( const double  boxeff,
int  i,
int  j,
int  k 
)
inline

Definition at line 97 of file MucCalibData.h.

97{m_boxEff[i][j][k] = boxeff;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setBoxNos()

void CalibData::MucCalibData::setBoxNos ( const double  boxnos,
int  i,
int  j,
int  k 
)
inline

Definition at line 98 of file MucCalibData.h.

98{m_boxNos[i][j][k] = boxnos;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setBoxNosRatio()

void CalibData::MucCalibData::setBoxNosRatio ( const double  boxratio,
int  i,
int  j,
int  k 
)
inline

Definition at line 100 of file MucCalibData.h.

100{m_boxNosRatio[i][j][k]=boxratio;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setLayerClstPro()

void CalibData::MucCalibData::setLayerClstPro ( const double  layerpro,
int  i,
int  j 
)
inline

Definition at line 95 of file MucCalibData.h.

95{m_layerClstPro[i][j]= layerpro;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setLayerCnt()

void CalibData::MucCalibData::setLayerCnt ( const double  layercnt,
int  i 
)
inline

Definition at line 93 of file MucCalibData.h.

93{ m_layerCnt[i]=layercnt;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setLayerEff()

void CalibData::MucCalibData::setLayerEff ( const double  layereff,
int  i 
)
inline

Definition at line 91 of file MucCalibData.h.

91{ m_layerEff[i]=layereff;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setLayerNos()

void CalibData::MucCalibData::setLayerNos ( const double  layernos,
int  i 
)
inline

Definition at line 92 of file MucCalibData.h.

92{ m_layerNos[i]=layernos;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setLayerNosRatio()

void CalibData::MucCalibData::setLayerNosRatio ( const double  layernosratio,
int  i 
)
inline

Definition at line 94 of file MucCalibData.h.

94{ m_layerNosRatio[i]=layernosratio;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setStripCnt()

void CalibData::MucCalibData::setStripCnt ( const double  stripcnt,
int  i,
int  j,
int  k,
int  l 
)
inline

Definition at line 105 of file MucCalibData.h.

105{m_stripCnt[i][j][k][l]=stripcnt;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setStripEff()

void CalibData::MucCalibData::setStripEff ( const double  stripeff,
int  i,
int  j,
int  k,
int  l 
)
inline

Definition at line 103 of file MucCalibData.h.

103{m_stripEff[i][j][k][l]=stripeff;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setStripNos()

void CalibData::MucCalibData::setStripNos ( const double  stripnos,
int  i,
int  j,
int  k,
int  l 
)
inline

Definition at line 104 of file MucCalibData.h.

104{m_stripNos[i][j][k][l]=stripnos;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setStripNosRatio()

void CalibData::MucCalibData::setStripNosRatio ( const double  stripnosratio,
int  i,
int  j,
int  k,
int  l 
)
inline

Definition at line 106 of file MucCalibData.h.

106{m_stripNosRatio[i][j][k][l]=stripnosratio;}

Referenced by RootMucCalibDataCnv::i_createObj(), TreeMucCalibDataCnv::i_createObj(), and update().

◆ setUniformClst()

void CalibData::MucCalibData::setUniformClst ( double  clst)
inline

Definition at line 86 of file MucCalibData.h.

86{m_uniformClst=clst;}

Referenced by update().

◆ setUniformCnt()

void CalibData::MucCalibData::setUniformCnt ( double  cnt)
inline

Definition at line 87 of file MucCalibData.h.

87{m_uniformCnt=cnt;}

Referenced by update().

◆ setUniformEff()

void CalibData::MucCalibData::setUniformEff ( double  eff)
inline

Definition at line 84 of file MucCalibData.h.

84{m_uniformEff=eff;}

Referenced by update().

◆ setUniformNos()

void CalibData::MucCalibData::setUniformNos ( double  nos)
inline

Definition at line 85 of file MucCalibData.h.

85{m_uniformNos=nos;}

◆ setUniformNosRatio()

void CalibData::MucCalibData::setUniformNosRatio ( double  nosratio)
inline

Definition at line 88 of file MucCalibData.h.

88{m_uniformNosRatio=nosratio;}

Referenced by update().

◆ update()

StatusCode MucCalibData::update ( CalibBase1 other,
MsgStream *  log 
)
virtual

Reimplemented from CalibData::CalibBase1.

Definition at line 10 of file MucCalibData.cxx.

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);
17 setUniformClst(other1.getUniformClst());
18 setUniformEff(other1.getUniformEff());
19 setUniformClst(other1.getUniformClst());
20 setUniformCnt(other1.getUniformCnt());
21 setUniformNosRatio(other1.getUniformNosRatio());
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);
27 setLayerNosRatio(other1.getLayerNosRatio(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}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
void setLayerClstPro(const double layerpro, int i, int j)
Definition: MucCalibData.h:95
void setLayerNos(const double layernos, int i)
Definition: MucCalibData.h:92
void setLayerCnt(const double layercnt, int i)
Definition: MucCalibData.h:93
void setUniformCnt(double cnt)
Definition: MucCalibData.h:87
void setUniformClst(double clst)
Definition: MucCalibData.h:86
void setBoxCnt(const double boxcnt, int i, int j, int k)
Definition: MucCalibData.h:99
void setStripNos(const double stripnos, int i, int j, int k, int l)
Definition: MucCalibData.h:104
void setBoxNosRatio(const double boxratio, int i, int j, int k)
Definition: MucCalibData.h:100
void setStripEff(const double stripeff, int i, int j, int k, int l)
Definition: MucCalibData.h:103
void setUniformEff(double eff)
Definition: MucCalibData.h:84
void setStripNosRatio(const double stripnosratio, int i, int j, int k, int l)
Definition: MucCalibData.h:106
void setStripCnt(const double stripcnt, int i, int j, int k, int l)
Definition: MucCalibData.h:105
void setUniformNosRatio(double nosratio)
Definition: MucCalibData.h:88
void setBoxEff(const double boxeff, int i, int j, int k)
Definition: MucCalibData.h:97
void setBoxNos(const double boxnos, int i, int j, int k)
Definition: MucCalibData.h:98
void setLayerEff(const double layereff, int i)
Definition: MucCalibData.h:91
void setLayerNosRatio(const double layernosratio, int i)
Definition: MucCalibData.h:94
void setBoxClstPro(const double boxpro, int i, int j, int k, int l)
Definition: MucCalibData.h:101

The documentation for this class was generated from the following files: