00001
00005 #include "CalibData/Muc/MucCalibData.h"
00006 #include "GaudiKernel/MsgStream.h"
00007 namespace CalibData {
00008 MucCalibData::MucCalibData(){}
00009
00010 StatusCode MucCalibData::update(CalibBase1& other, MsgStream* log)
00011 {
00012 MucCalibData& other1 = dynamic_cast<MucCalibData& >(other);
00013 std::cout<<"========================================"<<"\n"
00014 <<"here is the update in the MucCalibData"<<"\n"
00015 <<"=================================================="<<std::endl;
00016 CalibBase1::update(other, log);
00017 setUniformClst(other1.getUniformClst());
00018 setUniformEff(other1.getUniformEff());
00019 setUniformClst(other1.getUniformClst());
00020 setUniformCnt(other1.getUniformCnt());
00021 setUniformNosRatio(other1.getUniformNosRatio());
00022
00023 for(int i=0;i<LAYER_MAX;i++) {
00024 setLayerEff(other1.getLayerEff(i),i);
00025 setLayerNos(other1.getLayerNos(i),i);
00026 setLayerCnt(other1.getLayerCnt(i),i);
00027 setLayerNosRatio(other1.getLayerNosRatio(i),i);
00028 for(int j=0;j<CLST_MAX;j++){
00029 setLayerClstPro(other1.getLayerClstPro(i,j),i,j);
00030 }
00031 }
00032 for(int i=0;i<PART_MAX;i++) {
00033 for(int j=0;j<SEGMENT_MAX;j++){
00034 for(int k=0;k<LAYER_MAX;k++){
00035 setBoxEff(other1.getBoxEff(i,j,k),i,j,k);
00036 setBoxNos(other1.getBoxNos(i,j,k),i,j,k);
00037 setBoxCnt(other1.getBoxCnt(i,j,k),i,j,k);
00038 setBoxNosRatio(other1.getBoxNosRatio(i,j,k),i,j,k);
00039 for(int l=0;l<CLST_MAX;l++){
00040 setBoxClstPro(other1.getBoxClstPro(i,j,k,l),i,j,k,l);
00041 }
00042 }
00043 }
00044 }
00045 for(int i=0;i<PART_MAX;i++){
00046 for(int j=0;j<SEGMENT_MAX;j++){
00047 for(int k=0;k<LAYER_MAX;k++){
00048 for(int l=0;l<STRIP_INBOX_MAX;l++){
00049 setStripEff(other1.getStripEff(i,j,k,l),i,j,k,l);
00050 setStripNos(other1.getStripNos(i,j,k,l),i,j,k,l);
00051 setStripCnt(other1.getStripCnt(i,j,k,l),i,j,k,l);
00052 setStripNosRatio(other1.getStripNosRatio(i,j,k,l),i,j,k,l);
00053 }
00054 }
00055 }
00056 }
00057 std::cout<<"updata complete================="<<std::endl;
00058 return StatusCode::SUCCESS;
00059 }
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 }