BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
KalFitWire Class Reference

Description of a Wire class. More...

#include <KalFitWire.h>

Public Member Functions

 KalFitWire (const int localID, const KalFitLayer_Mdc &layer, const HepPoint3D &fwd, const HepPoint3D &bck, KalFitWire *const vt, unsigned int geoID, unsigned int stereo)
 constructor
 KalFitWire ()
 ~KalFitWire (void)
 destructor
unsigned int localId (void) const
 Extractor :
const KalFitLayer_Mdclayer (void) const
KalFitWire ** neighborPtr (void)
unsigned int state (void) const
unsigned stateAND (const unsigned mask) const
unsigned int geoID (void) const
unsigned int stereo (void) const
double distance (void) const
 returns drift distance
double distance_z (void) const
 returns z_distance from the center of wire by drift distance
void state (const unsigned int i)
void stateOR (const unsigned mask)
void stateXOR (const unsigned mask)
void stateORXOR (const unsigned mask)
void sagcoef (void)
void ddl (const double d)
void ddr (const double d)
HepPoint3D fwd (void) const
 Geometry :
HepPoint3D bck (void) const
HepPoint3D xyPosition (void) const
double Acoef (void) const
double lzx (void) const
void chk_left_and_right (void)
double x (void) const
double y (void) const
int z (const Lpav &la, double &z) const
 returns z for track la
double phi (void) const
double distance (const double distance)
 set drift distance
 KalFitWire (const int localID, const KalFitLayer_Mdc &layer, const HepPoint3D &fwd, const HepPoint3D &bck, KalFitWire *const vt, unsigned int geoID, unsigned int stereo)
 constructor
 KalFitWire ()
 ~KalFitWire (void)
 destructor
unsigned int localId (void) const
 Extractor :
const KalFitLayer_Mdclayer (void) const
KalFitWire ** neighborPtr (void)
unsigned int state (void) const
unsigned stateAND (const unsigned mask) const
unsigned int geoID (void) const
unsigned int stereo (void) const
double distance (void) const
 returns drift distance
double distance_z (void) const
 returns z_distance from the center of wire by drift distance
void state (const unsigned int i)
void stateOR (const unsigned mask)
void stateXOR (const unsigned mask)
void stateORXOR (const unsigned mask)
void sagcoef (void)
void ddl (const double d)
void ddr (const double d)
HepPoint3D fwd (void) const
 Geometry :
HepPoint3D bck (void) const
HepPoint3D xyPosition (void) const
double Acoef (void) const
double lzx (void) const
void chk_left_and_right (void)
double x (void) const
double y (void) const
int z (const Lpav &la, double &z) const
 returns z for track la
double phi (void) const
double distance (const double distance)
 set drift distance
 KalFitWire (const int localID, const KalFitLayer_Mdc &layer, const HepPoint3D &fwd, const HepPoint3D &bck, KalFitWire *const vt, unsigned int geoID, unsigned int stereo)
 constructor
 KalFitWire ()
 ~KalFitWire (void)
 destructor
unsigned int localId (void) const
 Extractor :
const KalFitLayer_Mdclayer (void) const
KalFitWire ** neighborPtr (void)
unsigned int state (void) const
unsigned stateAND (const unsigned mask) const
unsigned int geoID (void) const
unsigned int stereo (void) const
double distance (void) const
 returns drift distance
double distance_z (void) const
 returns z_distance from the center of wire by drift distance
void state (const unsigned int i)
void stateOR (const unsigned mask)
void stateXOR (const unsigned mask)
void stateORXOR (const unsigned mask)
void sagcoef (void)
void ddl (const double d)
void ddr (const double d)
HepPoint3D fwd (void) const
 Geometry :
HepPoint3D bck (void) const
HepPoint3D xyPosition (void) const
double Acoef (void) const
double lzx (void) const
void chk_left_and_right (void)
double x (void) const
double y (void) const
int z (const Lpav &la, double &z) const
 returns z for track la
double phi (void) const
double distance (const double distance)
 set drift distance

Detailed Description

Description of a Wire class.

Definition at line 47 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

Constructor & Destructor Documentation

◆ KalFitWire() [1/6]

KalFitWire::KalFitWire ( const int localID,
const KalFitLayer_Mdc & layer,
const HepPoint3D & fwd,
const HepPoint3D & bck,
KalFitWire *const vt,
unsigned int geoID,
unsigned int stereo )

constructor

Definition at line 27 of file KalFitWire.cxx.

30 : localId_( localID )
31 , fwd_( fwd )
32 , bck_( bck )
33 , layer_( layer )
34 , state_( WireHitInvalid )
35 , geoID_( geoID )
36 , stereo_( stereo )
37 , ddl_( 0 )
38 , ddr_( 0 )
39 , distance_( 0 ) {
40
41 int layer_ID = layer_.layerId();
42 xyPosition_ = 0.5 * ( fwd_ + bck_ );
43 if ( !stereo_ )
44 {
45 dx_ = 0;
46 dy_ = 0;
47 x_ = xyPosition_.x();
48 y_ = xyPosition_.y();
49 }
50 else
51 {
52 dx_ = (double)fwd_.x() - (double)bck_.x();
53 dy_ = (double)fwd_.y() - (double)bck_.y();
54 x_ = bck_.x();
55 y_ = bck_.y();
56 }
57 // Wire sag coeff
58 Hep3Vector wire_;
59 wire_ = (CLHEP::Hep3Vector)fwd - (CLHEP::Hep3Vector)bck;
60 lzx_ = sqrt( wire_.z() * wire_.z() + wire_.x() * wire_.x() );
61
62 // problem with layer_ and its id inside sagcoef ?!!
63 // sagcoef();
64 if ( layer_ID < 3 ) A_ = A[0];
65 else
66 {
67 if ( layer_ID < 14 ) A_ = A[1];
68 else if ( layer_ID < 50 )
69 {
70 double f_current( F[layer_ID] );
71 double l( wire_.mag() );
72 A_ = A[2] * F[49] * F[49] * L49_2 / ( f_current * f_current * l * l );
73 }
74 else std::cout << "*** PROBLEM WIRE !!!!! " << std::endl;
75 }
76
77 // Neighbor :
78 neighbor_[0] = (KalFitWire*)innerLeft( vt );
79 neighbor_[1] = (KalFitWire*)innerRight( vt );
80
81 neighbor_[2] = (KalFitWire*)left();
82 neighbor_[3] = (KalFitWire*)right();
83
84 neighbor_[4] = (KalFitWire*)outerLeft( vt );
85 neighbor_[5] = (KalFitWire*)outerRight( vt );
86}
const double L49_2
KalFitWire(const int localID, const KalFitLayer_Mdc &layer, const HepPoint3D &fwd, const HepPoint3D &bck, KalFitWire *const vt, unsigned int geoID, unsigned int stereo)
constructor

Referenced by distance(), KalFitWire(), and neighborPtr().

◆ KalFitWire() [2/6]

KalFitWire::KalFitWire ( )

Definition at line 88 of file KalFitWire.cxx.

89 : localId_( 0 )
90 , fwd_( 0, 0, 0 )
91 , bck_( 0, 0, 0 )
92 , layer_( *(KalFitLayer_Mdc*)NULL )
93 , state_( WireHitInvalid )
94 , x_( 0 )
95 , y_( 0 )
96 , dx_( 0 )
97 , dy_( 0 ) {
98 // Neighbor :
99 neighbor_[0] = NULL;
100 neighbor_[1] = NULL;
101 neighbor_[2] = NULL;
102 neighbor_[3] = NULL;
103 neighbor_[4] = NULL;
104 neighbor_[5] = NULL;
105}

◆ ~KalFitWire() [1/3]

KalFitWire::~KalFitWire ( void )

destructor

Definition at line 108 of file KalFitWire.cxx.

108{}

◆ KalFitWire() [3/6]

KalFitWire::KalFitWire ( const int localID,
const KalFitLayer_Mdc & layer,
const HepPoint3D & fwd,
const HepPoint3D & bck,
KalFitWire *const vt,
unsigned int geoID,
unsigned int stereo )

constructor

◆ KalFitWire() [4/6]

KalFitWire::KalFitWire ( )

◆ ~KalFitWire() [2/3]

KalFitWire::~KalFitWire ( void )

destructor

◆ KalFitWire() [5/6]

KalFitWire::KalFitWire ( const int localID,
const KalFitLayer_Mdc & layer,
const HepPoint3D & fwd,
const HepPoint3D & bck,
KalFitWire *const vt,
unsigned int geoID,
unsigned int stereo )

constructor

◆ KalFitWire() [6/6]

KalFitWire::KalFitWire ( )

◆ ~KalFitWire() [3/3]

KalFitWire::~KalFitWire ( void )

destructor

Member Function Documentation

◆ Acoef() [1/3]

double KalFitWire::Acoef ( void ) const
inline

Definition at line 92 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

92{ return A_; }

◆ Acoef() [2/3]

double KalFitWire::Acoef ( void ) const
inline

Definition at line 92 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

92{ return A_; }

◆ Acoef() [3/3]

double KalFitWire::Acoef ( void ) const
inline

Definition at line 92 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

92{ return A_; }

◆ bck() [1/3]

◆ bck() [2/3]

HepPoint3D KalFitWire::bck ( void ) const
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

90{ return bck_; }

◆ bck() [3/3]

HepPoint3D KalFitWire::bck ( void ) const
inline

Definition at line 90 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

90{ return bck_; }

◆ chk_left_and_right() [1/3]

void KalFitWire::chk_left_and_right ( void )

Definition at line 193 of file KalFitWire.cxx.

193 {
194 if ( ( ( **( neighbor_ + 2 ) ).state_ & WireHit ) &&
195 ( ( **( neighbor_ + 3 ) ).state_ & WireHit ) )
196 {
197 state_ |= WireHitInvalid;
198 ( **( neighbor_ + 2 ) ).state_ |= WireHitInvalid;
199 ( **( neighbor_ + 3 ) ).state_ |= WireHitInvalid;
200 }
201}

◆ chk_left_and_right() [2/3]

void KalFitWire::chk_left_and_right ( void )

◆ chk_left_and_right() [3/3]

void KalFitWire::chk_left_and_right ( void )

◆ ddl() [1/3]

void KalFitWire::ddl ( const double d)
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

85{ ddl_ = d; }

◆ ddl() [2/3]

void KalFitWire::ddl ( const double d)
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

85{ ddl_ = d; }

◆ ddl() [3/3]

void KalFitWire::ddl ( const double d)
inline

Definition at line 85 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

85{ ddl_ = d; }

◆ ddr() [1/3]

void KalFitWire::ddr ( const double d)
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

86{ ddr_ = d; }

◆ ddr() [2/3]

void KalFitWire::ddr ( const double d)
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

86{ ddr_ = d; }

◆ ddr() [3/3]

void KalFitWire::ddr ( const double d)
inline

Definition at line 86 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

86{ ddr_ = d; }

◆ distance() [1/6]

double KalFitWire::distance ( const double distance)
inline

set drift distance

Definition at line 164 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

164{ return distance_ = distance; }
double distance(void) const
returns drift distance

◆ distance() [2/6]

double KalFitWire::distance ( const double distance)

set drift distance

◆ distance() [3/6]

double KalFitWire::distance ( const double distance)

set drift distance

◆ distance() [4/6]

double KalFitWire::distance ( void ) const
inline

returns drift distance

Definition at line 158 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

158{ return distance_; }

Referenced by distance().

◆ distance() [5/6]

double KalFitWire::distance ( void ) const

returns drift distance

◆ distance() [6/6]

double KalFitWire::distance ( void ) const

returns drift distance

◆ distance_z() [1/3]

double KalFitWire::distance_z ( void ) const
inline

returns z_distance from the center of wire by drift distance

Definition at line 160 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

160 {
161 return distance_ * fabs( layer_.tanSlant() );
162}

◆ distance_z() [2/3]

double KalFitWire::distance_z ( void ) const

returns z_distance from the center of wire by drift distance

◆ distance_z() [3/3]

double KalFitWire::distance_z ( void ) const

returns z_distance from the center of wire by drift distance

◆ fwd() [1/3]

◆ fwd() [2/3]

HepPoint3D KalFitWire::fwd ( void ) const
inline

Geometry :

Definition at line 89 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

89{ return fwd_; }

◆ fwd() [3/3]

HepPoint3D KalFitWire::fwd ( void ) const
inline

Geometry :

Definition at line 89 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

89{ return fwd_; }

◆ geoID() [1/3]

◆ geoID() [2/3]

unsigned int KalFitWire::geoID ( void ) const
inline

Definition at line 71 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

71{ return geoID_; }

◆ geoID() [3/3]

unsigned int KalFitWire::geoID ( void ) const
inline

Definition at line 71 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

71{ return geoID_; }

◆ layer() [1/3]

◆ layer() [2/3]

const KalFitLayer_Mdc & KalFitWire::layer ( void ) const
inline

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

67{ return layer_; }

◆ layer() [3/3]

const KalFitLayer_Mdc & KalFitWire::layer ( void ) const
inline

Definition at line 67 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

67{ return layer_; }

◆ localId() [1/3]

unsigned int KalFitWire::localId ( void ) const
inline

Extractor :

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

66{ return localId_; }

Referenced by KalFitAlg::filter_fwd_calib().

◆ localId() [2/3]

unsigned int KalFitWire::localId ( void ) const
inline

Extractor :

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

66{ return localId_; }

◆ localId() [3/3]

unsigned int KalFitWire::localId ( void ) const
inline

Extractor :

Definition at line 66 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

66{ return localId_; }

◆ lzx() [1/3]

double KalFitWire::lzx ( void ) const
inline

◆ lzx() [2/3]

double KalFitWire::lzx ( void ) const
inline

Definition at line 93 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

93{ return lzx_; }

◆ lzx() [3/3]

double KalFitWire::lzx ( void ) const
inline

Definition at line 93 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

93{ return lzx_; }

◆ neighborPtr() [1/3]

KalFitWire ** KalFitWire::neighborPtr ( void )
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

68{ return neighbor_; }

◆ neighborPtr() [2/3]

KalFitWire ** KalFitWire::neighborPtr ( void )
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

68{ return neighbor_; }

◆ neighborPtr() [3/3]

KalFitWire ** KalFitWire::neighborPtr ( void )
inline

Definition at line 68 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

68{ return neighbor_; }

◆ phi() [1/3]

double KalFitWire::phi ( void ) const
inline

Definition at line 154 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

154 {
155 return M_PI * ( layer_.offset() + 2 * localId_ ) / (double)layer_.superLayer().nWire();
156}

◆ phi() [2/3]

double KalFitWire::phi ( void ) const

◆ phi() [3/3]

double KalFitWire::phi ( void ) const

◆ sagcoef() [1/3]

void KalFitWire::sagcoef ( void )

Definition at line 111 of file KalFitWire.cxx.

111 {
112
113 Hep3Vector wire_;
114 wire_ = (CLHEP::Hep3Vector)fwd_ - (CLHEP::Hep3Vector)bck_;
115 int layer_ID = layer_.layerId();
116
117 if ( layer_ID < 3 ) { A_ = A[0]; }
118 else
119 {
120 if ( layer_ID < 14 ) { A_ = A[1]; }
121 else if ( layer_ID < 50 )
122 {
123 double f_current( F[layer_ID] );
124 double l( wire_.mag() );
125 A_ = A[2] * F[49] * F[49] * L49_2 / ( f_current * f_current * l * l );
126 }
127 else { std::cout << "*** PROBLEM WIRE !!!!! " << std::endl; }
128 }
129}

◆ sagcoef() [2/3]

void KalFitWire::sagcoef ( void )

◆ sagcoef() [3/3]

void KalFitWire::sagcoef ( void )

◆ state() [1/6]

void KalFitWire::state ( const unsigned int i)
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

80{ state_ = i; }

◆ state() [2/6]

void KalFitWire::state ( const unsigned int i)
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

80{ state_ = i; }

◆ state() [3/6]

void KalFitWire::state ( const unsigned int i)
inline

Definition at line 80 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

80{ state_ = i; }

◆ state() [4/6]

unsigned int KalFitWire::state ( void ) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

69{ return state_; }

◆ state() [5/6]

unsigned int KalFitWire::state ( void ) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

69{ return state_; }

◆ state() [6/6]

unsigned int KalFitWire::state ( void ) const
inline

Definition at line 69 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

69{ return state_; }

◆ stateAND() [1/3]

unsigned KalFitWire::stateAND ( const unsigned mask) const
inline

Definition at line 144 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

144{ return state_ & mask; }

◆ stateAND() [2/3]

unsigned KalFitWire::stateAND ( const unsigned mask) const

◆ stateAND() [3/3]

unsigned KalFitWire::stateAND ( const unsigned mask) const

◆ stateOR() [1/3]

void KalFitWire::stateOR ( const unsigned mask)
inline

Definition at line 146 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

146{ state_ |= mask; }

◆ stateOR() [2/3]

void KalFitWire::stateOR ( const unsigned mask)

◆ stateOR() [3/3]

void KalFitWire::stateOR ( const unsigned mask)

◆ stateORXOR() [1/3]

void KalFitWire::stateORXOR ( const unsigned mask)
inline

Definition at line 150 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

150 {
151 state_ = ( state_ | mask ) ^ mask;
152}

◆ stateORXOR() [2/3]

void KalFitWire::stateORXOR ( const unsigned mask)

◆ stateORXOR() [3/3]

void KalFitWire::stateORXOR ( const unsigned mask)

◆ stateXOR() [1/3]

void KalFitWire::stateXOR ( const unsigned mask)
inline

Definition at line 148 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

148{ state_ ^= mask; }

◆ stateXOR() [2/3]

void KalFitWire::stateXOR ( const unsigned mask)

◆ stateXOR() [3/3]

void KalFitWire::stateXOR ( const unsigned mask)

◆ stereo() [1/3]

unsigned int KalFitWire::stereo ( void ) const
inline

◆ stereo() [2/3]

unsigned int KalFitWire::stereo ( void ) const
inline

Definition at line 72 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

72{ return stereo_; }

◆ stereo() [3/3]

unsigned int KalFitWire::stereo ( void ) const
inline

Definition at line 72 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

72{ return stereo_; }

◆ x() [1/3]

double KalFitWire::x ( void ) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

97{ return x_; }

◆ x() [2/3]

double KalFitWire::x ( void ) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

97{ return x_; }

◆ x() [3/3]

double KalFitWire::x ( void ) const
inline

Definition at line 97 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

97{ return x_; }

◆ xyPosition() [1/3]

HepPoint3D KalFitWire::xyPosition ( void ) const
inline

Definition at line 91 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

91{ return xyPosition_; }

◆ xyPosition() [2/3]

HepPoint3D KalFitWire::xyPosition ( void ) const
inline

Definition at line 91 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

91{ return xyPosition_; }

◆ xyPosition() [3/3]

HepPoint3D KalFitWire::xyPosition ( void ) const
inline

Definition at line 91 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

91{ return xyPosition_; }

◆ y() [1/3]

double KalFitWire::y ( void ) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

98{ return y_; }

◆ y() [2/3]

double KalFitWire::y ( void ) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-opt/include/KalFitAlg/KalFitWire.h.

98{ return y_; }

◆ y() [3/3]

double KalFitWire::y ( void ) const
inline

Definition at line 98 of file Reconstruction/KalFitAlg/include/KalFitAlg/KalFitWire.h.

98{ return y_; }

◆ z() [1/3]

int KalFitWire::z ( const Lpav & la,
double & z ) const
inline

returns z for track la

Definition at line 166 of file InstallArea/x86_64-el9-gcc13-dbg/include/KalFitAlg/KalFitWire.h.

166 {
167 HepVector center = la.center();
168 double rho = la.radius();
169 double dx2 = center( 1 ) - x_;
170 double dy2 = center( 2 ) - y_;
171 double par1 = dx_ * dx_ + dy_ * dy_;
172 double par2 = ( dx_ * dx2 + dy_ * dy2 ) / par1;
173 double par3 = dx_ * dy2 - dy_ * dx2;
174 double par4 = rho * rho * par1 - par3 * par3;
175 if ( par4 < 0. ) return 0;
176 par4 = sqrt( par4 ) / par1;
177 double delta = par2 + par4;
178 if ( delta >= 0. && delta < 1. )
179 {
180 z = layer_.zb() + delta * ( layer_.zf() - layer_.zb() );
181 return 1;
182 }
183 else
184 {
185 delta = par2 - par4;
186 if ( delta >= 0. && delta < 1. )
187 {
188 z = layer_.zb() + delta * ( layer_.zf() - layer_.zb() );
189 return 1;
190 }
191 }
192 return 0;
193}
int z(const Lpav &la, double &z) const
returns z for track la

Referenced by z().

◆ z() [2/3]

int KalFitWire::z ( const Lpav & la,
double & z ) const

returns z for track la

◆ z() [3/3]

int KalFitWire::z ( const Lpav & la,
double & z ) const

returns z for track la


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