BOSS 7.1.2
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 632 of file BesTofDigitizerEcV4.cc.

Member Function Documentation

◆ calAvaLength()

double BesTofDigitizerEcV4::HitStruct::calAvaLength ( )

Definition at line 444 of file BesTofDigitizerEcV4.cc.

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

◆ calTPropagate()

void BesTofDigitizerEcV4::HitStruct::calTPropagate ( )

Definition at line 428 of file BesTofDigitizerEcV4.cc.

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

◆ initial()

void BesTofDigitizerEcV4::HitStruct::initial ( )

Definition at line 638 of file BesTofDigitizerEcV4.cc.

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

◆ print()

void BesTofDigitizerEcV4::HitStruct::print ( )

Definition at line 957 of file BesTofDigitizerEcV4.cc.

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

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: