CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcAlignData.cxx
Go to the documentation of this file.
1#include <fstream>
2#include <string>
3#include <iostream>
4#include <sstream>
5#include "CalibData/Mdc/MdcAlignData.h"
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode MdcAlignData::update(CalibBase1& other, MsgStream* log)
11 {
12 MdcAlignData& other1 = dynamic_cast<MdcAlignData& >(other);
13 cout<<"\n"<<"here is the update in the MdcCal Alignment"<<std::endl;
14 CalibBase1::update(other, log);
15 for(int i=0;i<16;i++){
16 dxEP[i]=other1.dxEP[i];
17 dyEP[i]=other1.dyEP[i];
18 dzEP[i]=other1.dzEP[i];
19 rxEP[i]=other1.rxEP[i];
20 ryEP[i]=other1.ryEP[i];
21 rzEP[i]=other1.rzEP[i];
22 }
23 for(int i=0;i<6796;i++){
24 dxWireEast[i]=other1.dxWireEast[i];
25 dyWireEast[i]=other1.dyWireEast[i];
26 dzWireEast[i]=other1.dzWireEast[i];
27 dxWireWest[i]=other1.dxWireWest[i];
28 dyWireWest[i]=other1.dyWireWest[i];
29 dzWireWest[i]=other1.dzWireWest[i];
30 tension[i]=other1.tension[i];
31 }
32
33 return StatusCode::SUCCESS;
34 }
35
36
37void MdcAlignData::readPar(char* p1, char* p2, char* p3){
38 int i;
39 string strtmp;
40
41 istringstream falign;
42 string aa1 = p1;
43 falign.str(aa1);
44 for(i=0; i<7; i++) falign >> strtmp;
45 for(i=0; i<16; i++){
46 falign >> strtmp >> dxEP[i] >> dyEP[i] >> dzEP[i] >> rxEP[i] >> ryEP[i] >> rzEP[i];
47 }
48
49 istringstream fwpos;
50 string aa2 = p2;
51 fwpos.str(aa2);
52 for(i=0; i<7; i++) fwpos >> strtmp;
53 for(i=0; i<6796; i++){
54 fwpos >> strtmp >> dxWireEast[i] >> dyWireEast[i] >> dzWireEast[i]
55 >> dxWireWest[i] >> dyWireWest[i] >> dzWireWest[i];
56 }
57
58 istringstream ften;
59 string aa3 = p3;
60 ften.str(p3);
61 for(i=0; i<6796; i++) ften >> strtmp >> tension[i];
62}
63}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
void readPar(char *p1, char *p2, char *p3)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)