#include <BesTofDigitizerEcV4.hh>
Public Member Functions | |
Param () | |
void | print () |
void | setPar (int nstep, double E_weight) |
Public Attributes | |
BesTofGeoParameter * | tofPara |
int | nstrip |
int | nmodule |
double | strip_x [12] |
double | strip_z |
double | strip_gap |
int | deadChannel [72][12] |
double | ngap |
double | gapWidth |
int | nstep |
double | stepWidth |
double | E_weight |
double | eCharge |
Definition at line 44 of file BesTofDigitizerEcV4.hh.
BesTofDigitizerEcV4::Param::Param | ( | ) |
Definition at line 700 of file BesTofDigitizerEcV4.cc.
References deadChannel, E_weight, eCharge, gapWidth, BesTofGeoParameter::Get(), BesTofGeoParameter::Get_deadChannel(), BesTofGeoParameter::GetInstance(), genRecEmupikp::i, ngap, nmodule, nstep, nstrip, stepWidth, strip_gap, strip_x, strip_z, and tofPara.
00701 { 00702 //parameters fixed 00703 tofPara = BesTofGeoParameter::GetInstance(); 00704 nstrip = 12; 00705 nmodule = 72; 00706 std::stringstream ss; 00707 for(int i=0; i<nstrip; i++) 00708 { 00709 ss.str(""); 00710 ss<<"strip_x["<<i<<"]"; 00711 strip_x[i] = tofPara->Get(ss.str().c_str()); //mm 00712 } 00713 strip_z = tofPara->Get("strip_z"); 00714 strip_gap = tofPara->Get("strip_gap"); 00715 00716 ngap = 12; 00717 gapWidth = 0.22; //mm 00718 nstep = 200; 00719 stepWidth = gapWidth/nstep; 00720 E_weight = 1./(6.*0.22+(5.*0.4+2*0.55)/3.7); //V/mm 00721 eCharge = 1.60217733e-7; //pC 00722 tofPara->Get_deadChannel(deadChannel); 00723 00724 //print(); 00725 }
void BesTofDigitizerEcV4::Param::print | ( | ) |
Definition at line 913 of file BesTofDigitizerEcV4.cc.
References deadChannel, E_weight, eCharge, gapWidth, genRecEmupikp::i, ganga-rec::j, ngap, nmodule, nstep, nstrip, stepWidth, strip_gap, strip_x, and strip_z.
00914 { 00915 cout<<"Fixed parameters: "<<endl; 00916 for(int i=0; i<nstrip; i++) 00917 { 00918 cout<<" strip_x["<<i<<"]= "<<strip_x[i]; 00919 } 00920 for(int i=0; i<nmodule; i++) 00921 { 00922 for(int j=0; j<nstrip; j++) 00923 { 00924 cout<<" deadChannel["<<i<<"]["<<j<<"]= "<<deadChannel[i][j]; 00925 } 00926 } 00927 00928 cout<<" strip_z= "<<strip_z 00929 <<" strip_gap= "<<strip_gap 00930 <<" ngap= "<<ngap 00931 <<" gapWidth= "<<gapWidth 00932 <<" nstep= "<<nstep 00933 <<" stepWidth= "<<stepWidth 00934 <<" E_weight= "<<E_weight 00935 <<" eCharge= "<<eCharge 00936 <<endl; 00937 }
void BesTofDigitizerEcV4::Param::setPar | ( | int | nstep, | |
double | E_weight | |||
) |
Definition at line 694 of file BesTofDigitizerEcV4.cc.
References E_weight, and nstep.
Referenced by BesTofDigitizerEcV4::initial().
int BesTofDigitizerEcV4::Param::deadChannel[72][12] |
Definition at line 57 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), Param(), and print().
Definition at line 59 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::StripStruct::avalanche(), BesTofDigitizerEcV4::HitStruct::calAvaLength(), Param(), print(), and BesTofDigitizerEcV4::StripStruct::setPar().
Definition at line 58 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::HitStruct::calAvaLength(), Param(), and print().
Definition at line 60 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::StripStruct::avalanche(), Param(), print(), and setPar().
Definition at line 52 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::calStrip(), BesTofDigitizerEcV4::HitStruct::calTPropagate(), BesTofDigitizerEcV4::Digitize(), Param(), print(), and BesTofDigitizerEcV4::underStrip().
Definition at line 61 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::StripStruct::avalanche(), BesTofDigitizerEcV4::StripStruct::calNextN(), BesTofDigitizerEcV4::StripStruct::calSigma(), BesTofDigitizerEcV4::StripStruct::multiply(), Param(), and print().
Definition at line 56 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::calStrip(), Param(), print(), and BesTofDigitizerEcV4::underStrip().
double BesTofDigitizerEcV4::Param::strip_x[12] |
Definition at line 54 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::HitStruct::calTPropagate(), Param(), print(), and BesTofDigitizerEcV4::underStrip().
Definition at line 55 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::calStrip(), Param(), print(), and BesTofDigitizerEcV4::underStrip().