/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/CalibData/CalibData-00-01-18/src/Mdc/MdcDataConst.cxx

Go to the documentation of this file.
00001 #include <fstream>
00002 #include <string>
00003 #include <iostream>
00004 #include <sstream>
00005 #include "CalibData/Mdc/MdcDataConst.h"
00006 
00007 using namespace std;
00008 namespace CalibData {
00009 
00010   StatusCode MdcDataConst::update(CalibBase1& other, MsgStream* log)
00011   {
00012     MdcDataConst& other1 = dynamic_cast<MdcDataConst& >(other);
00013     cout<<"\n"<<"here is the update in the MdcDataConst in calibration"<<std::endl;
00014     CalibBase1::update(other, log);
00015     for(int i=0;i<NMDCWIRE;i++){
00016       wireEff[i]=other1.wireEff[i];
00017     }
00018 
00019     return StatusCode::SUCCESS;
00020   }
00021 
00022 
00023   void MdcDataConst::readPar(char* wireEffPointer){
00024     istringstream  fWireEff;
00025     string aa1 = wireEffPointer;
00026     fWireEff.str(aa1);   
00027 
00028     //read notes line
00029     string tempString;
00030     fWireEff >> tempString >> tempString >> tempString >> tempString;
00031 
00032     //read wire efficiency
00033     string tempLayer,tempCell;
00034     int tempGlobalWire;
00035     double tempWireEff;
00036     for(int i=0; i<NMDCWIRE; i++){
00037       fWireEff >> tempGlobalWire >> tempLayer >> tempCell >> tempWireEff;
00038       wireEff[tempGlobalWire] = tempWireEff;
00039     }
00040 
00041   }
00042 }

Generated on Tue Nov 29 22:57:48 2016 for BOSS_7.0.2 by  doxygen 1.4.7