BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTofDigitizerEcV4::HitStruct Struct Reference

#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
 

Detailed Description

Definition at line 73 of file BesTofDigitizerEcV4.hh.

Constructor & Destructor Documentation

◆ HitStruct()

BesTofDigitizerEcV4::HitStruct::HitStruct ( )

Definition at line 631 of file BesTofDigitizerEcV4.cc.

Member Function Documentation

◆ calAvaLength()

double BesTofDigitizerEcV4::HitStruct::calAvaLength ( )

Definition at line 443 of file BesTofDigitizerEcV4.cc.

444{
445 //This calculation depends on the arangements of the gasLayer order and the turnover of gasContainer.
446 //all modules have the same local y trends: y larger, 11->0
447 //In units of mm
448 double length=0;
449 if(gap>=0 && gap<m_param.ngap/2) length = m_param.gapWidth/2+locy;
450 else if(gap<m_param.ngap) length = m_param.gapWidth/2-locy;
451 else
452 {
453 cout<<"BesTofDigitizerEcV4::StripStruct::calAvaLength Wrong gap calculation !!!"<<endl;
454 return -999.0;
455 }
456
457 return length;
458}

◆ calTPropagate()

void BesTofDigitizerEcV4::HitStruct::calTPropagate ( )

Definition at line 427 of file BesTofDigitizerEcV4.cc.

428{
429 if(strip<0 || strip>m_param.nstrip-1)
430 {
431 cout<<"!! BesTofDigitizerEcV4::HitStruct::calTPropagate Wrong Strip !!!"<<endl;
432 return;
433 }
434
435 //It can be minus, consistent with calibration
436 double length_sphi = m_param.strip_x[strip]/2-locx; //mm
437 tPropagate_sphi = abs(length_sphi)/v_propagate;
438
439 double length_xphi = m_param.strip_x[strip]/2+locx; //mm
440 tPropagate_xphi = abs(length_xphi)/v_propagate;
441}

◆ initial()

void BesTofDigitizerEcV4::HitStruct::initial ( )

Definition at line 637 of file BesTofDigitizerEcV4.cc.

638{
639 trkIndex = -999.0;
640 pdgCode = -999.0;
641 ions = -999.0;
642 strip = -999.0;
643 gap = -999.0;
644 glbTime = -999.0;
645 locx = -999.0;
646 locy = -999.0;
647 locz = -999.0;
648 x = -999.0;
649 y = -999.0;
650 z = -999.0;
651 px = -999.0;
652 py = -999.0;
653 pz = -999.0;
654 v_propagate = 0.5*0.299792458e+3; //mm/ns
655 tPropagate_sphi = -999.0;
656 tPropagate_xphi = -999.0;
657}

◆ print()

void BesTofDigitizerEcV4::HitStruct::print ( )

Definition at line 956 of file BesTofDigitizerEcV4.cc.

957{
958 cout<<"Hit information: "<<endl;
959 cout<<" trkIndex= "<<trkIndex
960 <<" pdgCode= "<<pdgCode
961 <<" ions= "<<pdgCode
962 <<" strip= "<<strip
963 <<" gap= "<<gap
964 <<" glbTime= "<<glbTime
965 <<" locx= "<<locx
966 <<" locy= "<<locy
967 <<" locz= "<<locz
968 <<" x= "<<x
969 <<" y= "<<y
970 <<" z= "<<z
971 <<" px= "<<px
972 <<" py= "<<py
973 <<" pz= "<<pz
974 <<" v_propagate= "<<v_propagate
975 <<" tPropagate_sphi= "<<tPropagate_sphi
976 <<" tPropagate_xphi= "<<tPropagate_xphi
977 <<endl;
978}

Member Data Documentation

◆ ava_num

AVALANCH BesTofDigitizerEcV4::HitStruct::ava_num

Definition at line 103 of file BesTofDigitizerEcV4.hh.

◆ ava_pos

AVALANCH BesTofDigitizerEcV4::HitStruct::ava_pos

Definition at line 104 of file BesTofDigitizerEcV4.hh.

◆ gap

int BesTofDigitizerEcV4::HitStruct::gap

Definition at line 87 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ glbTime

double BesTofDigitizerEcV4::HitStruct::glbTime

Definition at line 88 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ ions

int BesTofDigitizerEcV4::HitStruct::ions

Definition at line 84 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ locx

double BesTofDigitizerEcV4::HitStruct::locx

Definition at line 89 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ locy

double BesTofDigitizerEcV4::HitStruct::locy

Definition at line 90 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ locz

double BesTofDigitizerEcV4::HitStruct::locz

Definition at line 91 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ m_param

Param BesTofDigitizerEcV4::HitStruct::m_param

Definition at line 81 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ pdgCode

int BesTofDigitizerEcV4::HitStruct::pdgCode

Definition at line 83 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ px

double BesTofDigitizerEcV4::HitStruct::px

Definition at line 95 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ py

double BesTofDigitizerEcV4::HitStruct::py

Definition at line 96 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ pz

double BesTofDigitizerEcV4::HitStruct::pz

Definition at line 97 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ strip

int BesTofDigitizerEcV4::HitStruct::strip

Definition at line 85 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ tPropagate_sphi

double BesTofDigitizerEcV4::HitStruct::tPropagate_sphi

Definition at line 99 of file BesTofDigitizerEcV4.hh.

◆ tPropagate_xphi

double BesTofDigitizerEcV4::HitStruct::tPropagate_xphi

Definition at line 100 of file BesTofDigitizerEcV4.hh.

◆ trkIndex

int BesTofDigitizerEcV4::HitStruct::trkIndex

Definition at line 82 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ underStrip

int BesTofDigitizerEcV4::HitStruct::underStrip

Definition at line 86 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ v_propagate

double BesTofDigitizerEcV4::HitStruct::v_propagate

Definition at line 98 of file BesTofDigitizerEcV4.hh.

◆ x

double BesTofDigitizerEcV4::HitStruct::x

Definition at line 92 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ y

double BesTofDigitizerEcV4::HitStruct::y

Definition at line 93 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().

◆ z

double BesTofDigitizerEcV4::HitStruct::z

Definition at line 94 of file BesTofDigitizerEcV4.hh.

Referenced by BesTofDigitizerEcV4::Digitize().


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