BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTofDigitizerEcV4::Param Struct Reference

#include <BesTofDigitizerEcV4.hh>

Public Member Functions

 Param ()
 
void print ()
 
void setPar (int nstep, double E_weight)
 
 Param ()
 
void print ()
 
void setPar (int nstep, double E_weight)
 

Public Attributes

BesTofGeoParametertofPara
 
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
 

Detailed Description

Constructor & Destructor Documentation

◆ Param() [1/2]

BesTofDigitizerEcV4::Param::Param ( )

Definition at line 700 of file BesTofDigitizerEcV4.cc.

701{
702 //parameters fixed
704 nstrip = 12;
705 nmodule = 72;
706 std::stringstream ss;
707 for(int i=0; i<nstrip; i++)
708 {
709 ss.str("");
710 ss<<"strip_x["<<i<<"]";
711 strip_x[i] = tofPara->Get(ss.str().c_str()); //mm
712 }
713 strip_z = tofPara->Get("strip_z");
714 strip_gap = tofPara->Get("strip_gap");
715
716 ngap = 12;
717 gapWidth = 0.22; //mm
718 nstep = 200;
720 E_weight = 1./(6.*0.22+(5.*0.4+2*0.55)/3.7); //V/mm
721 eCharge = 1.60217733e-7; //pC
723
724 //print();
725}
double Get(std::string key)
void Get_deadChannel(int deadChannel[72][12])
static BesTofGeoParameter * GetInstance()

◆ Param() [2/2]

BesTofDigitizerEcV4::Param::Param ( )

Member Function Documentation

◆ print() [1/2]

void BesTofDigitizerEcV4::Param::print ( )

Definition at line 913 of file BesTofDigitizerEcV4.cc.

914{
915 cout<<"Fixed parameters: "<<endl;
916 for(int i=0; i<nstrip; i++)
917 {
918 cout<<" strip_x["<<i<<"]= "<<strip_x[i];
919 }
920 for(int i=0; i<nmodule; i++)
921 {
922 for(int j=0; j<nstrip; j++)
923 {
924 cout<<" deadChannel["<<i<<"]["<<j<<"]= "<<deadChannel[i][j];
925 }
926 }
927
928 cout<<" strip_z= "<<strip_z
929 <<" strip_gap= "<<strip_gap
930 <<" ngap= "<<ngap
931 <<" gapWidth= "<<gapWidth
932 <<" nstep= "<<nstep
933 <<" stepWidth= "<<stepWidth
934 <<" E_weight= "<<E_weight
935 <<" eCharge= "<<eCharge
936 <<endl;
937}

◆ print() [2/2]

void BesTofDigitizerEcV4::Param::print ( )

◆ setPar() [1/2]

void BesTofDigitizerEcV4::Param::setPar ( int  nstep,
double  E_weight 
)

Definition at line 694 of file BesTofDigitizerEcV4.cc.

695{
696 if(nstep_n>0) nstep = nstep_n;
697 if(E_weight_n>0) E_weight = E_weight_n;
698}

Referenced by BesTofDigitizerEcV4::initial().

◆ setPar() [2/2]

void BesTofDigitizerEcV4::Param::setPar ( int  nstep,
double  E_weight 
)

Member Data Documentation

◆ deadChannel

int BesTofDigitizerEcV4::Param::deadChannel

◆ E_weight

double BesTofDigitizerEcV4::Param::E_weight

◆ eCharge

double BesTofDigitizerEcV4::Param::eCharge

◆ gapWidth

◆ ngap

double BesTofDigitizerEcV4::Param::ngap

◆ nmodule

int BesTofDigitizerEcV4::Param::nmodule

◆ nstep

int BesTofDigitizerEcV4::Param::nstep

◆ nstrip

◆ stepWidth

◆ strip_gap

double BesTofDigitizerEcV4::Param::strip_gap

◆ strip_x

double BesTofDigitizerEcV4::Param::strip_x

◆ strip_z

double BesTofDigitizerEcV4::Param::strip_z

◆ tofPara

BesTofGeoParameter * BesTofDigitizerEcV4::Param::tofPara

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