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