| 754 |
extern cMini2track track_; |
extern cMini2track track_; |
| 755 |
track_.istepmin = istepmin; |
track_.istepmin = istepmin; |
| 756 |
} |
} |
| 757 |
|
/** |
| 758 |
|
* Returns 1 if the track is inside the magnet cavity |
| 759 |
|
* Set the minimum number of steps for tracking precision |
| 760 |
|
*/ |
| 761 |
|
Bool_t TrkTrack::IsInsideCavity(){ |
| 762 |
|
float xmagntop, ymagntop, xmagnbottom, ymagnbottom; |
| 763 |
|
xmagntop = xv[0] + (ZMAGNHIGH-zv[0])*tan(cos(-1.0)*axv[0]/180.); |
| 764 |
|
ymagntop = yv[0] + (ZMAGNHIGH-zv[0])*tan(cos(-1.0)*ayv[0]/180.); |
| 765 |
|
xmagnbottom = xv[5] + (ZMAGNLOW-zv[5])*tan(cos(-1.0)*axv[5]/180.); |
| 766 |
|
ymagnbottom = yv[5] + (ZMAGNLOW-zv[5])*tan(cos(-1.0)*ayv[5]/180.); |
| 767 |
|
if( xmagntop>XMAGNLOW && xmagntop<XMAGNHIGH && |
| 768 |
|
ymagntop>YMAGNLOW && ymagntop<YMAGNHIGH && |
| 769 |
|
xmagnbottom>XMAGNLOW && xmagnbottom<XMAGNHIGH && |
| 770 |
|
ymagnbottom>YMAGNLOW && ymagnbottom<YMAGNHIGH ) return(true); |
| 771 |
|
else return(false); |
| 772 |
|
} |
| 773 |
/** |
/** |
| 774 |
* Method to retrieve ID (0,1,...) of x-cluster (if any) associated to this track. |
* Method to retrieve ID (0,1,...) of x-cluster (if any) associated to this track. |
| 775 |
* If no cluster is associated, ID=-1. |
* If no cluster is associated, ID=-1. |