Changeset 1825 in Sophya for trunk/SophyaLib/Samba/datacirclefake.cc
- Timestamp:
- Dec 19, 2001, 3:33:12 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/datacirclefake.cc
r1770 r1825 21 21 double DataCircleFake::getData(double psi) const { 22 22 23 int ibin= (int)floor(psi*_NMeasurements/2./M_PI);23 int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI)); 24 24 //cout << "bin= " << ibin << ", " << _mesures[ibin] << endl; 25 25 return _mesures[ibin]; … … 37 37 << NMeasurements() << endl; 38 38 } 39 40 double DataCircleFake::getTMeasure(double psi) const { 41 42 if(_mesures == NULL) { 43 cout << " DataCircleFake::getTMeasure data must be stored" 44 << " in an array... " << endl; 45 exit(0); 46 } 47 int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI)); 48 return _mesures[ibin]; 49 }
Note:
See TracChangeset
for help on using the changeset viewer.