BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcSim/src/ReadPara.cc
Go to the documentation of this file.
1#include "MdcSim/ReadPara.hh"
2#include <fstream>
3#include <iostream>
4#include <string>
5using namespace std;
6
8
9 ifstream incos1;
10 incos1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1cos.txt" );
11 for ( int i = 0; i < 5; i++ ) { incos1 >> par_cos[0][i]; }
12 ifstream incos2;
13 incos2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2cos.txt" );
14 for ( int i = 0; i < 5; i++ ) { incos2 >> par_cos[1][i]; }
15 ifstream incos3;
16 incos3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3cos.txt" );
17 for ( int i = 0; i < 5; i++ ) { incos3 >> par_cos[2][i]; }
18 ifstream incos4;
19 incos4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4cos.txt" );
20 for ( int i = 0; i < 5; i++ ) { incos4 >> par_cos[3][i]; }
21 ifstream incos5;
22 incos5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5cos.txt" );
23 for ( int i = 0; i < 5; i++ ) { incos5 >> par_cos[4][i]; }
24 ifstream incos6;
25 incos6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6cos.txt" );
26 for ( int i = 0; i < 5; i++ ) { incos6 >> par_cos[5][i]; }
27 ifstream incos7;
28 incos7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7cos.txt" );
29 for ( int i = 0; i < 5; i++ ) { incos7 >> par_cos[6][i]; }
30 ifstream incos8;
31 incos8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8cos.txt" );
32 for ( int i = 0; i < 5; i++ ) { incos8 >> par_cos[7][i]; }
33 //***************
34 ifstream incoss1;
35 incoss1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1cos_s.txt" );
36 for ( int i = 0; i < 5; i++ ) { incoss1 >> par_coss[0][i]; }
37 ifstream incoss2;
38 incoss2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2cos_s.txt" );
39 for ( int i = 0; i < 5; i++ ) { incoss2 >> par_coss[1][i]; }
40 ifstream incoss3;
41 incoss3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3cos_s.txt" );
42 for ( int i = 0; i < 5; i++ ) { incoss3 >> par_coss[2][i]; }
43 ifstream incoss4;
44 incoss4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4cos_s.txt" );
45 for ( int i = 0; i < 5; i++ ) { incoss4 >> par_coss[3][i]; }
46 ifstream incoss5;
47 incoss5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5cos_s.txt" );
48 for ( int i = 0; i < 5; i++ ) { incoss5 >> par_coss[4][i]; }
49 ifstream incoss6;
50 incoss6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6cos_s.txt" );
51 for ( int i = 0; i < 5; i++ ) { incoss6 >> par_coss[5][i]; }
52 ifstream incoss7;
53 incoss7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7cos_s.txt" );
54 for ( int i = 0; i < 5; i++ ) { incoss7 >> par_coss[6][i]; }
55 ifstream incoss8;
56 incoss8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8cos_s.txt" );
57 for ( int i = 0; i < 5; i++ ) { incoss8 >> par_coss[7][i]; }
58 //*********
59 ifstream indd1;
60 indd1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1.txt" );
61 for ( int i = 0; i < 6; i++ ) { indd1 >> par_dd[0][i]; }
62 ifstream indd2;
63 indd2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2.txt" );
64 for ( int i = 0; i < 6; i++ ) { indd2 >> par_dd[1][i]; }
65 ifstream indd3;
66 indd3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3.txt" );
67 for ( int i = 0; i < 6; i++ ) { indd3 >> par_dd[2][i]; }
68 ifstream indd4;
69 indd4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4.txt" );
70 for ( int i = 0; i < 6; i++ ) { indd4 >> par_dd[3][i]; }
71 ifstream indd5;
72 indd5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5.txt" );
73 for ( int i = 0; i < 6; i++ ) { indd5 >> par_dd[4][i]; }
74 ifstream indd6;
75 indd6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6.txt" );
76 for ( int i = 0; i < 6; i++ ) { indd6 >> par_dd[5][i]; }
77 ifstream indd7;
78 indd7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7.txt" );
79 for ( int i = 0; i < 6; i++ ) { indd7 >> par_dd[6][i]; }
80 ifstream indd8;
81 indd8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8.txt" );
82 for ( int i = 0; i < 6; i++ ) { indd8 >> par_dd[7][i]; }
83 //*************
84 ifstream indds1;
85 indds1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1_s.txt" );
86 for ( int i = 0; i < 6; i++ ) { indds1 >> par_dds[0][i]; }
87 ifstream indds2;
88 indds2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2_s.txt" );
89 for ( int i = 0; i < 6; i++ ) { indds2 >> par_dds[1][i]; }
90 ifstream indds3;
91 indds3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3_s.txt" );
92 for ( int i = 0; i < 6; i++ ) { indds3 >> par_dds[2][i]; }
93 ifstream indds4;
94 indds4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4_s.txt" );
95 for ( int i = 0; i < 6; i++ ) { indds4 >> par_dds[3][i]; }
96 ifstream indds5;
97 indds5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5_s.txt" );
98 for ( int i = 0; i < 6; i++ ) { indds5 >> par_dds[4][i]; }
99 ifstream indds6;
100 indds6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6_s.txt" );
101 for ( int i = 0; i < 6; i++ ) { indds6 >> par_dds[5][i]; }
102 ifstream indds7;
103 indds7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7_s.txt" );
104 for ( int i = 0; i < 6; i++ ) { indds7 >> par_dds[6][i]; }
105 ifstream indds8;
106 indds8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8_s.txt" );
107 for ( int i = 0; i < 6; i++ ) { indds8 >> par_dds[7][i]; }
108 //******************
109 ifstream inz1;
110 inz1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1z.txt" );
111 for ( int i = 0; i < 7; i++ ) { inz1 >> par_z[0][i]; }
112 ifstream inz2;
113 inz2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2z.txt" );
114 for ( int i = 0; i < 7; i++ ) { inz2 >> par_z[1][i]; }
115 ifstream inz3;
116 inz3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3z.txt" );
117 for ( int i = 0; i < 7; i++ ) { inz3 >> par_z[2][i]; }
118 ifstream inz4;
119 inz4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4z.txt" );
120 for ( int i = 0; i < 7; i++ ) { inz4 >> par_z[3][i]; }
121 ifstream inz5;
122 inz5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5z.txt" );
123 for ( int i = 0; i < 7; i++ ) { inz5 >> par_z[4][i]; }
124 ifstream inz6;
125 inz6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6z.txt" );
126 for ( int i = 0; i < 7; i++ ) { inz6 >> par_z[5][i]; }
127 ifstream inz7;
128 inz7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7z.txt" );
129 for ( int i = 0; i < 7; i++ ) { inz7 >> par_z[6][i]; }
130 ifstream inz8;
131 inz8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8z.txt" );
132 for ( int i = 0; i < 7; i++ ) { inz8 >> par_z[7][i]; }
133 //*************
134 ifstream inzs1;
135 inzs1.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1z_s.txt" );
136 for ( int i = 0; i < 7; i++ ) { inzs1 >> par_zs[0][i]; }
137 ifstream inzs2;
138 inzs2.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2z_s.txt" );
139 for ( int i = 0; i < 7; i++ ) { inzs2 >> par_zs[1][i]; }
140 ifstream inzs3;
141 inzs3.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3z_s.txt" );
142 for ( int i = 0; i < 7; i++ ) { inzs3 >> par_zs[2][i]; }
143 ifstream inzs4;
144 inzs4.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4z_s.txt" );
145 for ( int i = 0; i < 7; i++ ) { inzs4 >> par_zs[3][i]; }
146 ifstream inzs5;
147 inzs5.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5z_s.txt" );
148 for ( int i = 0; i < 7; i++ ) { inzs5 >> par_zs[4][i]; }
149 ifstream inzs6;
150 inzs6.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6z_s.txt" );
151 for ( int i = 0; i < 7; i++ ) { inzs6 >> par_zs[5][i]; }
152 ifstream inzs7;
153 inzs7.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7z_s.txt" );
154 for ( int i = 0; i < 7; i++ ) { inzs7 >> par_zs[6][i]; }
155 ifstream inzs8;
156 inzs8.open( "/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8z_s.txt" );
157 for ( int i = 0; i < 7; i++ ) { inzs8 >> par_zs[7][i]; }
158 //******************
159
160 //******************
161 //******************
162}