#include <FTWire.h>
|
| FTWire (const float x, const float y, const float dx, const float dy, const FTLayer &, const int localID, FTWire *const vt) |
| constructors
|
|
| FTWire () |
|
| ~FTWire () |
| destructor
|
|
void | initNeighbor (void) |
| initNeighbor
|
|
const float | x (void) const |
| returns position x
|
|
const float | y (void) const |
| returns position y
|
|
float | phi (void) const |
| returns phi
|
|
const int | localId (void) const |
| returns local ID
|
|
const FTLayer & | layer (void) const |
| returns layer
|
|
FTWire ** | neighborPtr (void) |
| returns pointer of neighbor array
|
|
float | distance (void) const |
| returns drift distance
|
|
float | distance_z (void) const |
| returns z_distance from the center of wire by drift distance
|
|
float | t0 (void) const |
| returns t0 read at begin run
|
|
float | pedestal (void) const |
| returns pedestal read at begin run
|
|
unsigned | state (void) const |
| returns state
|
|
unsigned | stateAND (const unsigned mask) const |
| returns state bit
|
|
int | z (const Lpav &la, double &z) const |
| returns z for track la
|
|
float | time (void) const |
| rerurns TDC time(after t0 subtraction)
|
|
float | getAdc (void) const |
|
float | getChi2 (void) const |
|
void | clear (void) |
| clear
|
|
float | distance (const float distance) |
| set drift distance
|
|
float | t0 (const float t0) |
| set t0 at begin-run
|
|
float | pedestal (const float ped) |
| set pedestal at begin-run
|
|
unsigned | state (const unsigned state) |
| set state
|
|
void | stateOR (const unsigned mask) |
| set state bit
|
|
void | stateXOR (const unsigned mask) |
| invert state bit
|
|
void | stateORXOR (const unsigned mask) |
| reset state bit
|
|
void | chk_left_and_right (void) |
| check neighbors of phi-side and raise invalid flag if both hits
|
|
float | time (float t) |
| reset time
|
|
void | wireId (int wireID) |
| set wireId
|
|
int | getWireId (void) |
| get wireId
|
|
void | setAdc (float adc) |
| wangdy add:set Adc value
|
|
void | setChi2 (float chi2) |
| set residual fit chi2
|
|
Definition at line 43 of file FTWire.h.
◆ FTWire() [1/2]
FTWire::FTWire |
( |
const float |
x, |
|
|
const float |
y, |
|
|
const float |
dx, |
|
|
const float |
dy, |
|
|
const FTLayer & |
layer, |
|
|
const int |
localID, |
|
|
FTWire *const |
vt |
|
) |
| |
|
inline |
constructors
Definition at line 199 of file FTWire.h.
204 _dx(dx),
205 _dy(dy),
207 _wire(vt),
208 _localId(localID),
209 _phi((
const float)2*
M_PI*_localId/(
float)_layer.
NWire()+_layer.
offset()),
210
211
212 _distance(0),
213 _t0(0),
214 _time(0),
215 m_adc(0),
216 _pedestal(0),
218{
219 getMidNeighbor();
220}
const int NWire(void) const
returns the number of wire
const float offset(void) const
returns offset of numbering(local ID)
const float y(void) const
returns position y
const FTLayer & layer(void) const
returns layer
const float x(void) const
returns position x
◆ FTWire() [2/2]
Definition at line 223 of file FTWire.h.
224 : _x(0),
225 _y(0),
226 _dx(0),
227 _dy(0),
229 _wire(NULL),
230 _localId(0),
231
232 _phi(0),
233 _distance(0),
234 _t0(0),
235 _time(0),
236 m_adc(0),
237 _pedestal(0),
239{
240 _neighbor[0] = NULL;
241 _neighbor[1] = NULL;
242 _neighbor[2] = NULL;
243 _neighbor[3] = NULL;
244 _neighbor[4] = NULL;
245 _neighbor[5] = NULL;
246}
◆ ~FTWire()
◆ chk_left_and_right()
void FTWire::chk_left_and_right |
( |
void |
| ) |
|
|
inline |
check neighbors of phi-side and raise invalid flag if both hits
Definition at line 552 of file FTWire.h.
552 {
553 if (((**(_neighbor+2))._state&
FTWireHit) &&
558 }
559}
◆ clear()
void FTWire::clear |
( |
void |
| ) |
|
|
inline |
clear
Definition at line 347 of file FTWire.h.
348{
349 _distance = 0.;
350 _time = 0.;
351 _t0 = 0.;
352 m_adc = 0.0;
353 _pedestal = 0.;
355}
◆ distance() [1/2]
float FTWire::distance |
( |
const float |
distance | ) |
|
|
inline |
set drift distance
Definition at line 415 of file FTWire.h.
416{
418}
float distance(void) const
returns drift distance
◆ distance() [2/2]
float FTWire::distance |
( |
void |
| ) |
const |
|
inline |
◆ distance_z()
float FTWire::distance_z |
( |
void |
| ) |
const |
|
inline |
returns z_distance from the center of wire by drift distance
Definition at line 408 of file FTWire.h.
409{
410 return _distance * std::fabs(_layer.
tanSlant());
411}
const float tanSlant(void) const
returns tangent of slant angle
◆ getAdc()
float FTWire::getAdc |
( |
void |
| ) |
const |
|
inline |
Definition at line 591 of file FTWire.h.
591 {
592 return m_adc;
593}
◆ getChi2()
float FTWire::getChi2 |
( |
void |
| ) |
const |
|
inline |
Definition at line 600 of file FTWire.h.
600 {
601 return m_chi2;
602}
◆ getWireId()
int FTWire::getWireId |
( |
void |
| ) |
|
|
inline |
get wireId
Definition at line 585 of file FTWire.h.
585 {
586 return _wireId;
587}
◆ initNeighbor()
void FTWire::initNeighbor |
( |
void |
| ) |
|
|
inline |
initNeighbor
Definition at line 255 of file FTWire.h.
256{
257 getInnerNeighbor(_wire);
258 getOuterNeighbor(_wire);
259
260
261
262
263
264
265
266
267}
Referenced by FTFinder::begin_run().
◆ layer()
const FTLayer & FTWire::layer |
( |
void |
| ) |
const |
|
inline |
◆ localId()
const int FTWire::localId |
( |
void |
| ) |
const |
|
inline |
◆ neighborPtr()
FTWire ** FTWire::neighborPtr |
( |
void |
| ) |
|
|
inline |
returns pointer of neighbor array
Definition at line 387 of file FTWire.h.
388{
389 return _neighbor;
390}
◆ pedestal() [1/2]
float FTWire::pedestal |
( |
const float |
ped | ) |
|
|
inline |
set pedestal at begin-run
Definition at line 443 of file FTWire.h.
444{
445 return _pedestal = ped;
446}
◆ pedestal() [2/2]
float FTWire::pedestal |
( |
void |
| ) |
const |
|
inline |
returns pedestal read at begin run
Definition at line 436 of file FTWire.h.
437{
438 return _pedestal;
439}
◆ phi()
float FTWire::phi |
( |
void |
| ) |
const |
|
inline |
◆ setAdc()
void FTWire::setAdc |
( |
float |
adc | ) |
|
|
inline |
wangdy add:set Adc value
Definition at line 595 of file FTWire.h.
595 {
596 m_adc = adc;
597}
◆ setChi2()
void FTWire::setChi2 |
( |
float |
chi2 | ) |
|
|
inline |
◆ state() [1/2]
unsigned FTWire::state |
( |
const unsigned |
state | ) |
|
|
inline |
set state
Definition at line 487 of file FTWire.h.
488{
490}
unsigned state(void) const
returns state
◆ state() [2/2]
unsigned FTWire::state |
( |
void |
| ) |
const |
|
inline |
◆ stateAND()
unsigned FTWire::stateAND |
( |
const unsigned |
mask | ) |
const |
|
inline |
◆ stateOR()
void FTWire::stateOR |
( |
const unsigned |
mask | ) |
|
|
inline |
◆ stateORXOR()
void FTWire::stateORXOR |
( |
const unsigned |
mask | ) |
|
|
inline |
reset state bit
Definition at line 515 of file FTWire.h.
516{
517 _state=(_state|mask)^mask;
518}
◆ stateXOR()
void FTWire::stateXOR |
( |
const unsigned |
mask | ) |
|
|
inline |
invert state bit
Definition at line 508 of file FTWire.h.
509{
510 _state^=mask;
511}
◆ t0() [1/2]
float FTWire::t0 |
( |
const float |
t0 | ) |
|
|
inline |
set t0 at begin-run
Definition at line 429 of file FTWire.h.
430{
432}
float t0(void) const
returns t0 read at begin run
◆ t0() [2/2]
float FTWire::t0 |
( |
void |
| ) |
const |
|
inline |
returns t0 read at begin run
Definition at line 422 of file FTWire.h.
423{
424 return _t0;
425}
Referenced by t0().
◆ time() [1/2]
float FTWire::time |
( |
float |
t | ) |
|
|
inline |
◆ time() [2/2]
float FTWire::time |
( |
void |
| ) |
const |
|
inline |
◆ wireId()
void FTWire::wireId |
( |
int |
wireID | ) |
|
|
inline |
set wireId
Definition at line 580 of file FTWire.h.
580 {
581 _wireId = wireID;
582}
◆ x()
const float FTWire::x |
( |
void |
| ) |
const |
|
inline |
◆ y()
const float FTWire::y |
( |
void |
| ) |
const |
|
inline |
◆ z()
int FTWire::z |
( |
const Lpav & |
la, |
|
|
double & |
z |
|
) |
| const |
|
inline |
returns z for track la
Definition at line 522 of file FTWire.h.
522 {
523 HepVector center = la.
center();
525 double dx2 = center(1) - _x;
526 double dy2 = center(2) - _y;
527 double par1 = _dx*_dx + _dy*_dy;
528 double par2 = (_dx*dx2 + _dy*dy2)/par1;
529 double par3 = _dx*dy2 - _dy*dx2;
530 double par4 = rho*rho*par1 - par3*par3;
531 if (par4<0.) return 0;
532 par4 = std::sqrt(par4)/par1;
533 double delta = par2 + par4;
534
536
538 return 1;
539 }else{
542
544 return 1;
545 }
546 }
547 return 0;
548}
const float zf(void) const
returns z of forward end-plate
const float zb(void) const
returns z of backward end-plate
int z(const Lpav &la, double &z) const
returns z for track la
Referenced by FTTrack::s_zFit(), and z().
The documentation for this class was generated from the following file: