/[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.24 by mocchiut, Wed Jan 31 16:15:55 2007 UTC revision 1.25 by pam-fi, Mon Feb 5 16:01:51 2007 UTC
# Line 16  extern "C" {     Line 16  extern "C" {    
16      int  readb_();      int  readb_();
17      void mini2_(int*,int*,int*);      void mini2_(int*,int*,int*);
18      void guess_();      void guess_();
19        void gufld_(float*, float*);
20  }  }
21  //--------------------------------------  //--------------------------------------
22  //  //
# Line 293  void TrkTrack::LoadField(TString path){ Line 294  void TrkTrack::LoadField(TString path){
294    
295  };  };
296    
297    
298  /**  /**
299   * Method to fill minimization-routine common   * Method to fill minimization-routine common
300   */   */
# Line 1072  void TrkLevel2::LoadField(TString path){ Line 1074  void TrkLevel2::LoadField(TString path){
1074      readb_();      readb_();
1075  //  //
1076  };  };
1077    /**
1078     * Get BY (kGauss)
1079     * @param v (x,y,z) coordinates in cm
1080     */
1081    float TrkLevel2::GetBX(float* v){
1082        float b[3];
1083        gufld_(v,b);
1084        return b[0]/10.;
1085    }
1086    /**
1087     * Get BY (kGauss)
1088     * @param v (x,y,z) coordinates in cm
1089     */
1090    float TrkLevel2::GetBY(float* v){
1091        float b[3];
1092        gufld_(v,b);
1093        return b[1]/10.;
1094    }
1095    /**
1096     * Get BY (kGauss)
1097     * @param v (x,y,z) coordinates in cm
1098     */
1099    float TrkLevel2::GetBZ(float* v){
1100        float b[3];
1101        gufld_(v,b);
1102        return b[2]/10.;
1103    }
1104  //--------------------------------------  //--------------------------------------
1105  //  //
1106  //  //

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.23