#include <BesTofDigitizerEcV4.hh>
Public Member Functions | |
HitStruct () | |
void | initial () |
void | print () |
void | calTPropagate () |
double | calAvaLength () |
Public Attributes | |
Param | m_param |
int | trkIndex |
int | pdgCode |
int | ions |
int | strip |
int | underStrip |
int | gap |
double | glbTime |
double | locx |
double | locy |
double | locz |
double | x |
double | y |
double | z |
double | px |
double | py |
double | pz |
double | v_propagate |
double | tPropagate_sphi |
double | tPropagate_xphi |
AVALANCH | ava_num |
AVALANCH | ava_pos |
Definition at line 66 of file BesTofDigitizerEcV4.hh.
BesTofDigitizerEcV4::HitStruct::HitStruct | ( | ) |
Definition at line 629 of file BesTofDigitizerEcV4.cc.
References initial().
00630 { 00631 initial(); 00632 }
double BesTofDigitizerEcV4::HitStruct::calAvaLength | ( | ) |
Definition at line 441 of file BesTofDigitizerEcV4.cc.
References gap, BesTofDigitizerEcV4::Param::gapWidth, locy, m_param, and BesTofDigitizerEcV4::Param::ngap.
00442 { 00443 //This calculation depends on the arangements of the gasLayer order and the turnover of gasContainer. 00444 //all modules have the same local y trends: y larger, 11->0 00445 //In units of mm 00446 double length=0; 00447 if(gap>=0 && gap<m_param.ngap/2) length = m_param.gapWidth/2+locy; 00448 else if(gap<m_param.ngap) length = m_param.gapWidth/2-locy; 00449 else 00450 { 00451 cout<<"BesTofDigitizerEcV4::StripStruct::calAvaLength Wrong gap calculation !!!"<<endl; 00452 return -999.0; 00453 } 00454 00455 return length; 00456 }
void BesTofDigitizerEcV4::HitStruct::calTPropagate | ( | ) |
Definition at line 425 of file BesTofDigitizerEcV4.cc.
References abs, locx, m_param, BesTofDigitizerEcV4::Param::nstrip, strip, BesTofDigitizerEcV4::Param::strip_x, tPropagate_sphi, tPropagate_xphi, and v_propagate.
00426 { 00427 if(strip<0 || strip>m_param.nstrip-1) 00428 { 00429 cout<<"!! BesTofDigitizerEcV4::HitStruct::calTPropagate Wrong Strip !!!"<<endl; 00430 return; 00431 } 00432 00433 //It can be minus, consistent with calibration 00434 double length_sphi = m_param.strip_x[strip]/2-locx; //mm 00435 tPropagate_sphi = abs(length_sphi)/v_propagate; 00436 00437 double length_xphi = m_param.strip_x[strip]/2+locx; //mm 00438 tPropagate_xphi = abs(length_xphi)/v_propagate; 00439 }
void BesTofDigitizerEcV4::HitStruct::initial | ( | ) |
Definition at line 635 of file BesTofDigitizerEcV4.cc.
References gap, glbTime, ions, locx, locy, locz, pdgCode, px, py, pz, strip, tPropagate_sphi, tPropagate_xphi, trkIndex, v_propagate, x, y, and z.
Referenced by HitStruct().
00636 { 00637 trkIndex = -999.0; 00638 pdgCode = -999.0; 00639 ions = -999.0; 00640 strip = -999.0; 00641 gap = -999.0; 00642 glbTime = -999.0; 00643 locx = -999.0; 00644 locy = -999.0; 00645 locz = -999.0; 00646 x = -999.0; 00647 y = -999.0; 00648 z = -999.0; 00649 px = -999.0; 00650 py = -999.0; 00651 pz = -999.0; 00652 v_propagate = 0.5*0.299792458e+3; //mm/ns 00653 tPropagate_sphi = -999.0; 00654 tPropagate_xphi = -999.0; 00655 }
void BesTofDigitizerEcV4::HitStruct::print | ( | ) |
Definition at line 939 of file BesTofDigitizerEcV4.cc.
References gap, glbTime, locx, locy, locz, pdgCode, px, py, pz, strip, tPropagate_sphi, tPropagate_xphi, trkIndex, v_propagate, x, y, and z.
00940 { 00941 cout<<"Hit information: "<<endl; 00942 cout<<" trkIndex= "<<trkIndex 00943 <<" pdgCode= "<<pdgCode 00944 <<" ions= "<<pdgCode 00945 <<" strip= "<<strip 00946 <<" gap= "<<gap 00947 <<" glbTime= "<<glbTime 00948 <<" locx= "<<locx 00949 <<" locy= "<<locy 00950 <<" locz= "<<locz 00951 <<" x= "<<x 00952 <<" y= "<<y 00953 <<" z= "<<z 00954 <<" px= "<<px 00955 <<" py= "<<py 00956 <<" pz= "<<pz 00957 <<" v_propagate= "<<v_propagate 00958 <<" tPropagate_sphi= "<<tPropagate_sphi 00959 <<" tPropagate_xphi= "<<tPropagate_xphi 00960 <<endl; 00961 }
Definition at line 97 of file BesTofDigitizerEcV4.hh.
Definition at line 98 of file BesTofDigitizerEcV4.hh.
Definition at line 81 of file BesTofDigitizerEcV4.hh.
Referenced by calAvaLength(), BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 82 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 78 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), and initial().
Definition at line 83 of file BesTofDigitizerEcV4.hh.
Referenced by calTPropagate(), BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 84 of file BesTofDigitizerEcV4.hh.
Referenced by calAvaLength(), BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 85 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 75 of file BesTofDigitizerEcV4.hh.
Referenced by calAvaLength(), calTPropagate(), and BesTofDigitizerEcV4::Digitize().
Definition at line 77 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 89 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 90 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 91 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 79 of file BesTofDigitizerEcV4.hh.
Referenced by calTPropagate(), BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 93 of file BesTofDigitizerEcV4.hh.
Referenced by calTPropagate(), initial(), and print().
Definition at line 94 of file BesTofDigitizerEcV4.hh.
Referenced by calTPropagate(), initial(), and print().
Definition at line 76 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 80 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize().
Definition at line 92 of file BesTofDigitizerEcV4.hh.
Referenced by calTPropagate(), initial(), and print().
Definition at line 86 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 87 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().
Definition at line 88 of file BesTofDigitizerEcV4.hh.
Referenced by BesTofDigitizerEcV4::Digitize(), initial(), and print().