/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkLevel2.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by pam-fi, Thu May 24 13:29:09 2007 UTC revision 1.35 by pam-fi, Thu May 24 14:32:14 2007 UTC
# Line 754  void TrkTrack::SetStepMin(int istepmin){ Line 754  void TrkTrack::SetStepMin(int istepmin){
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.

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.23