BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcRes.cc
Go to the documentation of this file.
1#include "BesMdcRes.hh"
2#include <iostream>
3#include <fstream>
4#include <string>
5#include <cstdlib>
6using namespace std;
7
8BesMdcRes::BesMdcRes(string& path){
9 int layerId, bin,layId ;
10 double sigma;
11 double cons1,sigma1,cons2,sigma2,Sig,sigmaE;
12 double effi,m_nhit_Raw,m_nhit_Exp;
13
14
15 /*
16 //read lay efficiency parameter
17 ifstream infpar5;
18 string logeff_raw= path+"/data/logeffi_0_42.dat";
19 infpar5.open(logeff_raw.c_str());
20 if( !infpar5.good()){
21 std::cout<<"Error,mdc parameter file4 Data-effi-lay not exist "<<std::endl;
22 exit (0);
23 }else{
24 std::cout<<" open mdc parameter file4 Data-effi-lay "<<std::endl;
25 for(int lay =0; lay<43;lay++){
26 infpar5 >> lay;
27 for(int dD = 0; dD<91;dD++ ){
28 infpar5 >> dD >> effi >> m_nhit_Raw >> m_nhit_Exp ;
29 par_lay5[lay][dD] = effi;
30 //cout<<"lay : "<<lay<<" dD "<<dD <<" =" <<effi<<endl;
31 }
32 }// end of lay loop
33 }
34
35*/
36 //read resolution Vs enter angle and doca
37 ifstream infpar6;
38 string logres_iEntr = path+"/data/logrVetr.dat";
39 infpar6.open(logres_iEntr.c_str());
40 if(!infpar6.good()){
41 std::cout<<" Error , mdc parameters file6 Data_res_iEnter not exist "<<std::endl;
42 exit (0);
43 }else{
44 std::cout<<" open mdc parameter file6 Data_res_iEnter "<<std::endl;
45 for(int lay =0;lay<43;lay++){
46 infpar6 >> lay;
47 for(int iEntr =0;iEntr<2;iEntr++){
48 infpar6 >> iEntr;
49 for(int dD =0;dD<18;dD++){
50 infpar6 >> dD >> sigmaE;
51 par_lay6[lay][iEntr][dD] = sigmaE;
52 // cout<<" lay : "<<lay<<" iEntr : "<<iEntr<<" dD : "<<dD<<" = "<<sigmaE<<endl;
53 }
54 }
55 }// end of lay loop
56 }
57
58 //read resolution Vs enter angle and doca
59 ifstream infpar7;
60 string logres_M_iEntr = path + "/mc/logrVetr.dat";
61 infpar7.open(logres_M_iEntr.c_str());
62 if(!infpar7.good()){
63 std::cout<<"Error,mdc parameters file7 Mc_res_iEntr not exist"<<std::endl;
64 exit (0);
65 }else{
66 std::cout<<"open mdc parameters file7 Mc_res_iEntr "<<std::endl;
67 for(int lay =0;lay<43;lay++){
68 infpar7 >> lay;
69 for(int iEntr =0;iEntr<2;iEntr++){
70 infpar7 >> iEntr;
71 for(int dD =0;dD<18;dD++){
72 infpar7 >> dD >> sigmaE;
73 par_lay7[lay][iEntr][dD] = sigmaE;
74 // std::cout<<"par_lay7["<<lay<<"]["<<iEntr<<"]["<<dD<<"] : "<<sigmaE<<std::endl;
75 }
76 }
77 }//end of lay loop
78 }
79
80}
TTree * sigma
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
Definition: FoamA.h:85
BesMdcRes(std::string &path)
Definition: BesMdcRes.cc:8