BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcDataConst.cxx
Go to the documentation of this file.
1#include <fstream>
2#include <string>
3#include <iostream>
4#include <sstream>
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode MdcDataConst::update(CalibBase1& other, MsgStream* log)
11 {
12 MdcDataConst& other1 = dynamic_cast<MdcDataConst& >(other);
13 cout<<"\n"<<"here is the update in the MdcDataConst in calibration"<<std::endl;
14 CalibBase1::update(other, log);
15 for(int i=0;i<NMDCWIRE;i++){
16 wireEff[i]=other1.wireEff[i];
17 }
18
19 return StatusCode::SUCCESS;
20 }
21
22
23 void MdcDataConst::readPar(char* wireEffPointer){
24 istringstream fWireEff;
25 string aa1 = wireEffPointer;
26 fWireEff.str(aa1);
27
28 //read notes line
29 string tempString;
30 fWireEff >> tempString >> tempString >> tempString >> tempString;
31
32 //read wire efficiency
33 string tempLayer,tempCell;
34 int tempGlobalWire;
35 double tempWireEff;
36 for(int i=0; i<NMDCWIRE; i++){
37 fWireEff >> tempGlobalWire >> tempLayer >> tempCell >> tempWireEff;
38 wireEff[tempGlobalWire] = tempWireEff;
39 }
40
41 }
42}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void readPar(char *p1)