/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/MdcSim/MdcSim-00-00-73/src/ReadPara.cc

Go to the documentation of this file.
00001 #include "ReadPara.hh"
00002 #include <iostream> 
00003 #include <fstream> 
00004 #include <string> 
00005 using namespace std;
00006 
00007 ReadPara::ReadPara(){
00008 
00009   ifstream incos1;
00010   incos1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1cos.txt");
00011   for(int i=0;i<5;i++) {
00012     incos1>>par_cos[0][i];
00013   }
00014   ifstream incos2;
00015   incos2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2cos.txt");
00016   for(int i=0;i<5;i++) {
00017     incos2>>par_cos[1][i];
00018   }
00019   ifstream incos3;
00020   incos3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3cos.txt");
00021   for(int i=0;i<5;i++) {
00022     incos3>>par_cos[2][i];
00023   }
00024   ifstream incos4;
00025   incos4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4cos.txt");
00026   for(int i=0;i<5;i++) {
00027     incos4>>par_cos[3][i];
00028   }
00029   ifstream incos5;
00030   incos5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5cos.txt");
00031   for(int i=0;i<5;i++) {
00032     incos5>>par_cos[4][i];
00033   }
00034   ifstream incos6;
00035   incos6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6cos.txt");
00036   for(int i=0;i<5;i++) {
00037     incos6>>par_cos[5][i];
00038   }
00039   ifstream incos7;
00040   incos7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7cos.txt");
00041   for(int i=0;i<5;i++) {
00042     incos7>>par_cos[6][i];
00043   }
00044   ifstream incos8;
00045   incos8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8cos.txt");
00046   for(int i=0;i<5;i++) {
00047     incos8>>par_cos[7][i];
00048   }
00049   //***************
00050   ifstream incoss1;
00051   incoss1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1cos_s.txt");
00052   for(int i=0;i<5;i++) {
00053     incoss1>>par_coss[0][i];
00054   }
00055   ifstream incoss2;
00056   incoss2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2cos_s.txt");
00057   for(int i=0;i<5;i++) {
00058     incoss2>>par_coss[1][i];
00059   }
00060   ifstream incoss3;
00061   incoss3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3cos_s.txt");
00062   for(int i=0;i<5;i++) {
00063     incoss3>>par_coss[2][i];
00064   }
00065   ifstream incoss4;
00066   incoss4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4cos_s.txt");
00067   for(int i=0;i<5;i++) {
00068     incoss4>>par_coss[3][i];
00069   }
00070   ifstream incoss5;
00071   incoss5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5cos_s.txt");
00072   for(int i=0;i<5;i++) {
00073     incoss5>>par_coss[4][i];
00074   }
00075   ifstream incoss6;
00076   incoss6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6cos_s.txt");
00077   for(int i=0;i<5;i++) {
00078     incoss6>>par_coss[5][i];
00079   }
00080   ifstream incoss7;
00081   incoss7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7cos_s.txt");
00082   for(int i=0;i<5;i++) {
00083     incoss7>>par_coss[6][i];
00084   }
00085   ifstream incoss8;
00086   incoss8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8cos_s.txt");
00087   for(int i=0;i<5;i++) {
00088     incoss8>>par_coss[7][i];
00089   }
00090   //*********
00091   ifstream indd1;
00092   indd1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1.txt");
00093   for(int i=0;i<6;i++) {
00094     indd1>>par_dd[0][i];
00095   }
00096    ifstream indd2;
00097   indd2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2.txt");
00098   for(int i=0;i<6;i++) {
00099     indd2>>par_dd[1][i];
00100   }
00101   ifstream indd3;
00102   indd3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3.txt");
00103   for(int i=0;i<6;i++) {
00104     indd3>>par_dd[2][i];
00105   }
00106   ifstream indd4;
00107   indd4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4.txt");
00108   for(int i=0;i<6;i++) {
00109     indd4>>par_dd[3][i];
00110   }
00111   ifstream indd5;
00112   indd5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5.txt");
00113   for(int i=0;i<6;i++) {
00114     indd5>>par_dd[4][i];
00115   }
00116   ifstream indd6;
00117   indd6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6.txt");
00118   for(int i=0;i<6;i++) {
00119     indd6>>par_dd[5][i];
00120   }
00121   ifstream indd7;
00122   indd7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7.txt");
00123   for(int i=0;i<6;i++) {
00124     indd7>>par_dd[6][i];
00125   }
00126   ifstream indd8;
00127   indd8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8.txt");
00128   for(int i=0;i<6;i++) {
00129     indd8>>par_dd[7][i];
00130   }
00131   //*************
00132   ifstream indds1;
00133   indds1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1_s.txt");
00134   for(int i=0;i<6;i++) {
00135     indds1>>par_dds[0][i];
00136   }
00137    ifstream indds2;
00138   indds2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2_s.txt");
00139   for(int i=0;i<6;i++) {
00140     indds2>>par_dds[1][i];
00141   }
00142   ifstream indds3;
00143   indds3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3_s.txt");
00144   for(int i=0;i<6;i++) {
00145     indds3>>par_dds[2][i];
00146   }
00147   ifstream indds4;
00148   indds4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4_s.txt");
00149   for(int i=0;i<6;i++) {
00150     indds4>>par_dds[3][i];
00151   }
00152   ifstream indds5;
00153   indds5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5_s.txt");
00154   for(int i=0;i<6;i++) {
00155     indds5>>par_dds[4][i];
00156   }
00157   ifstream indds6;
00158   indds6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6_s.txt");
00159   for(int i=0;i<6;i++) {
00160     indds6>>par_dds[5][i];
00161   }
00162   ifstream indds7;
00163   indds7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7_s.txt");
00164   for(int i=0;i<6;i++) {
00165     indds7>>par_dds[6][i];
00166   }
00167   ifstream indds8;
00168   indds8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8_s.txt");
00169   for(int i=0;i<6;i++) {
00170     indds8>>par_dds[7][i];
00171   }
00172   //******************
00173  ifstream inz1;
00174   inz1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_1z.txt");
00175   for(int i=0;i<7;i++) {
00176     inz1>>par_z[0][i];
00177   }
00178    ifstream inz2;
00179   inz2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_2z.txt");
00180   for(int i=0;i<7;i++) {
00181     inz2>>par_z[1][i];
00182   }
00183   ifstream inz3;
00184   inz3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_3z.txt");
00185   for(int i=0;i<7;i++) {
00186     inz3>>par_z[2][i];
00187   }
00188   ifstream inz4;
00189   inz4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_4z.txt");
00190   for(int i=0;i<7;i++) {
00191     inz4>>par_z[3][i];
00192   }
00193   ifstream inz5;
00194   inz5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_5z.txt");
00195   for(int i=0;i<7;i++) {
00196     inz5>>par_z[4][i];
00197   }
00198   ifstream inz6;
00199   inz6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_6z.txt");
00200   for(int i=0;i<7;i++) {
00201     inz6>>par_z[5][i];
00202   }
00203   ifstream inz7;
00204   inz7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_7z.txt");
00205   for(int i=0;i<7;i++) {
00206     inz7>>par_z[6][i];
00207   }
00208   ifstream inz8;
00209   inz8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/data/fit_8z.txt");
00210   for(int i=0;i<7;i++) {
00211     inz8>>par_z[7][i];
00212   }
00213   //*************
00214   ifstream inzs1;
00215   inzs1.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_1z_s.txt");
00216   for(int i=0;i<7;i++) {
00217     inzs1>>par_zs[0][i];
00218   }
00219    ifstream inzs2;
00220   inzs2.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_2z_s.txt");
00221   for(int i=0;i<7;i++) {
00222     inzs2>>par_zs[1][i];
00223   }
00224   ifstream inzs3;
00225   inzs3.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_3z_s.txt");
00226   for(int i=0;i<7;i++) {
00227     inzs3>>par_zs[2][i];
00228   }
00229   ifstream inzs4;
00230   inzs4.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_4z_s.txt");
00231   for(int i=0;i<7;i++) {
00232     inzs4>>par_zs[3][i];
00233   }
00234   ifstream inzs5;
00235   inzs5.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_5z_s.txt");
00236   for(int i=0;i<7;i++) {
00237     inzs5>>par_zs[4][i];
00238   }
00239   ifstream inzs6;
00240   inzs6.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_6z_s.txt");
00241   for(int i=0;i<7;i++) {
00242     inzs6>>par_zs[5][i];
00243   }
00244   ifstream inzs7;
00245   inzs7.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_7z_s.txt");
00246   for(int i=0;i<7;i++) {
00247     inzs7>>par_zs[6][i];
00248   }
00249   ifstream inzs8;
00250   inzs8.open("/ihepbatch/d07/liuying/6.3.5/Analysis/DedxReal/sim/fit_8z_s.txt");
00251   for(int i=0;i<7;i++) {
00252     inzs8>>par_zs[7][i];
00253   }
00254   //******************
00255 
00256   //******************
00257  //******************
00258 }

Generated on Tue Nov 29 23:14:27 2016 for BOSS_7.0.2 by  doxygen 1.4.7