BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcRes Class Reference

#include <BesMdcRes.hh>

Public Member Functions

 BesMdcRes (std::string &path)
 
 ~BesMdcRes ()
 
double getD_dD (int ii, int jj)
 
double getD_lay (int ii, int jj)
 
double getD_theta (int ii, int jj)
 
double getM_dD (int ii, int jj)
 
double getM_lay (int ii, int jj)
 
double getM_theta (int ii, int jj)
 
double getD_effi (int ii, int jj)
 
double getD_iEntr (int ii, int jj, int kk)
 
double getM_iEntr (int ii, int jj, int kk)
 

Detailed Description

Definition at line 5 of file BesMdcRes.hh.

Constructor & Destructor Documentation

◆ BesMdcRes()

BesMdcRes::BesMdcRes ( std::string &  path)

Definition at line 8 of file BesMdcRes.cc.

8 {
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
std::ifstream ifstream
Definition: bpkt_streams.h:44

◆ ~BesMdcRes()

BesMdcRes::~BesMdcRes ( )
inline

Definition at line 8 of file BesMdcRes.hh.

8{};

Member Function Documentation

◆ getD_dD()

double BesMdcRes::getD_dD ( int  ii,
int  jj 
)
inline

Definition at line 10 of file BesMdcRes.hh.

10{return par_lay1[ii][jj];}

◆ getD_effi()

double BesMdcRes::getD_effi ( int  ii,
int  jj 
)
inline

Definition at line 16 of file BesMdcRes.hh.

16{return par_lay5[ii][jj];}

◆ getD_iEntr()

double BesMdcRes::getD_iEntr ( int  ii,
int  jj,
int  kk 
)
inline

Definition at line 17 of file BesMdcRes.hh.

17{return par_lay6[ii][jj][kk];}

◆ getD_lay()

double BesMdcRes::getD_lay ( int  ii,
int  jj 
)
inline

Definition at line 11 of file BesMdcRes.hh.

11{return par_lay2[ii][jj];}

◆ getD_theta()

double BesMdcRes::getD_theta ( int  ii,
int  jj 
)
inline

Definition at line 12 of file BesMdcRes.hh.

12{return par_lay11[ii][jj];}

◆ getM_dD()

double BesMdcRes::getM_dD ( int  ii,
int  jj 
)
inline

Definition at line 13 of file BesMdcRes.hh.

13{return par_lay3[ii][jj];}

◆ getM_iEntr()

double BesMdcRes::getM_iEntr ( int  ii,
int  jj,
int  kk 
)
inline

Definition at line 18 of file BesMdcRes.hh.

18{return par_lay7[ii][jj][kk];}

◆ getM_lay()

double BesMdcRes::getM_lay ( int  ii,
int  jj 
)
inline

Definition at line 14 of file BesMdcRes.hh.

14{return par_lay4[ii][jj];}

◆ getM_theta()

double BesMdcRes::getM_theta ( int  ii,
int  jj 
)
inline

Definition at line 15 of file BesMdcRes.hh.

15{return par_lay33[ii][jj];}

The documentation for this class was generated from the following files: