BOSS 7.0.1
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
 
double strip_x [12]
 
double strip_z
 
double strip_gap
 
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 655 of file BesTofDigitizerEcV4.cc.

656{
657 //parameters fixed
659 nstrip = 12;
660 std::stringstream ss;
661 for(int i=0; i<nstrip; i++)
662 {
663 ss.str("");
664 ss<<"strip_x["<<i<<"]";
665 strip_x[i] = tofPara->Get(ss.str().c_str()); //mm
666 }
667 strip_z = tofPara->Get("strip_z");
668 strip_gap = tofPara->Get("strip_gap");
669
670 ngap = 12;
671 gapWidth = 0.22; //mm
672 nstep = 200;
674 E_weight = 1./(6.*0.22+(5.*0.4+2*0.55)/3.7); //V/mm
675 eCharge = 1.60217733e-7; //pC
676
677 //print();
678}
double Get(std::string key)
static BesTofGeoParameter * GetInstance()

◆ Param() [2/2]

BesTofDigitizerEcV4::Param::Param ( )

Member Function Documentation

◆ print() [1/2]

void BesTofDigitizerEcV4::Param::print ( )

Definition at line 866 of file BesTofDigitizerEcV4.cc.

867{
868 cout<<"Fixed parameters: "<<endl;
869 for(int i=0; i<nstrip; i++)
870 {
871 cout<<" strip_x["<<i<<"]= "<<strip_x[i];
872 }
873 cout<<" strip_z= "<<strip_z
874 <<" strip_gap= "<<strip_gap
875 <<" ngap= "<<ngap
876 <<" gapWidth= "<<gapWidth
877 <<" nstep= "<<nstep
878 <<" stepWidth= "<<stepWidth
879 <<" E_weight= "<<E_weight
880 <<" eCharge= "<<eCharge
881 <<endl;
882}

◆ print() [2/2]

void BesTofDigitizerEcV4::Param::print ( )

◆ setPar() [1/2]

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

Definition at line 649 of file BesTofDigitizerEcV4.cc.

650{
651 if(nstep_n>0) nstep = nstep_n;
652 if(E_weight_n>0) E_weight = E_weight_n;
653}

Referenced by BesTofDigitizerEcV4::initial().

◆ setPar() [2/2]

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

Member Data Documentation

◆ E_weight

double BesTofDigitizerEcV4::Param::E_weight

◆ eCharge

double BesTofDigitizerEcV4::Param::eCharge

◆ gapWidth

◆ ngap

double BesTofDigitizerEcV4::Param::ngap

◆ 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: