Changeset 682 in Sophya for trunk/SophyaLib/Samba/spheregorski.cc


Ignore:
Timestamp:
Dec 10, 1999, 5:56:03 PM (26 years ago)
Author:
ansari
Message:

Compilation Mac pour CodeWarrior PRO 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spheregorski.cc

    r604 r682  
    186186//++
    187187template<class T>
    188 SphereGorski<T>::SphereGorski(int m)
     188SphereGorski<T>::SphereGorski(int_4 m)
    189189
    190190//    m is the "nside" of the Gorski algorithm
     
    246246//++
    247247template<class T>
    248 void SphereGorski<T>::Resize(int m)
     248void SphereGorski<T>::Resize(int_4 m)
    249249
    250250//    m is the "nside" of the Gorski algorithm
     
    272272
    273273template<class T>
    274 void  SphereGorski<T>::Pixelize( int m)
     274void  SphereGorski<T>::Pixelize( int_4 m)
    275275
    276276//    prépare la pixelisation Gorski (m a la même signification
     
    313313//++
    314314template<class T>
    315 int SphereGorski<T>::NbPixels() const
     315int_4 SphereGorski<T>::NbPixels() const
    316316
    317317//    Retourne le nombre de pixels du découpage
     
    323323//++
    324324template<class T>
    325 int SphereGorski<T>::NbThetaSlices() const
     325int_4 SphereGorski<T>::NbThetaSlices() const
    326326
    327327//    Return number of slices in theta direction on the  sphere
     
    333333//++
    334334template<class T>
    335 void SphereGorski<T>::GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const
     335void SphereGorski<T>::GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const
    336336
    337337//    For a theta-slice with index 'index', return :
     
    354354    }
    355355
    356   int iring= 0;
    357   int lring  = 0;
     356  int_4 iring= 0;
     357  int_4 lring  = 0;
    358358  if(index < nSide_-1)
    359359    {
     
    368368  else
    369369    {
    370       int nc= 4*nSide_-1-index;
     370      int_4 nc= 4*nSide_-1-index;
    371371      iring = nPix_-2*nc*(nc+1);
    372372      lring = 4*nc;
     
    377377  double TH= 0.;
    378378  double FI= 0.;
    379   for(int kk = 0; kk < lring;kk++)
     379  for(int_4 kk = 0; kk < lring;kk++)
    380380    {
    381381      PixThetaPhi(kk+iring,TH,FI);
     
    389389//++
    390390template<class T>
    391 T& SphereGorski<T>::PixVal(int k)
     391T& SphereGorski<T>::PixVal(int_4 k)
    392392
    393393//    Return value of  pixel with "RING" index k
     
    406406//++
    407407template<class T>
    408 T const& SphereGorski<T>::PixVal(int k) const
     408T const& SphereGorski<T>::PixVal(int_4 k) const
    409409
    410410//    Return value of  pixel with "RING" index k
     
    422422//++
    423423template<class T>
    424 T& SphereGorski<T>::PixValNest(int k)
     424T& SphereGorski<T>::PixValNest(int_4 k)
    425425
    426426//    Return value of  pixel with "NESTED" index k
     
    438438
    439439template<class T>
    440 T const& SphereGorski<T>::PixValNest(int k) const
     440T const& SphereGorski<T>::PixValNest(int_4 k) const
    441441
    442442//    Return value of  pixel with "NESTED" index k
     
    449449      THROW(rangeCheckErr);
    450450  }
    451   int pix= nest2ring(nSide_,k);
     451  int_4 pix= nest2ring(nSide_,k);
    452452  return *(pixels_.Data()+pix);
    453453}
     
    456456//++
    457457template<class T>
    458 bool SphereGorski<T>::ContainsSph(double theta, double phi) const
     458bool SphereGorski<T>::ContainsSph(double /*theta*/, double /*phi*/) const
    459459//--
    460460{
     
    465465//++
    466466template<class T>
    467 int SphereGorski<T>::PixIndexSph(double theta,double phi) const
     467int_4 SphereGorski<T>::PixIndexSph(double theta,double phi) const
    468468
    469469//    Return "RING" index of the pixel corresponding to
     
    476476//++
    477477template<class T>
    478 int SphereGorski<T>::PixIndexSphNest(double theta,double  phi) const
     478int_4 SphereGorski<T>::PixIndexSphNest(double theta,double  phi) const
    479479
    480480//    Return "NESTED" index of the pixel corresponding to
     
    489489//++
    490490template<class T>
    491 void SphereGorski<T>::PixThetaPhi(int k,double& theta,double& phi) const
     491void SphereGorski<T>::PixThetaPhi(int_4 k,double& theta,double& phi) const
    492492
    493493//   Return (theta,phi) coordinates of middle of  pixel with "RING" index k
     
    506506//++
    507507template<class T>
    508 double SphereGorski<T>::PixSolAngle(int dummy) const
     508double SphereGorski<T>::PixSolAngle(int_4 /*dummy*/) const
    509509//    Pixel Solid angle  (steradians)
    510510//    All the pixels have the same solid angle. The dummy argument is
     
    518518//++
    519519template<class T>
    520 void SphereGorski<T>::PixThetaPhiNest(int k,double& theta,double& phi) const
     520void SphereGorski<T>::PixThetaPhiNest(int_4 k,double& theta,double& phi) const
    521521
    522522//   Return (theta,phi) coordinates of middle of  pixel with "NESTED" index k
     
    528528//++
    529529template<class T>
    530 int SphereGorski<T>::NestToRing(int k) const
     530int_4 SphereGorski<T>::NestToRing(int_4 k) const
    531531
    532532//    translation from NESTED index  into RING index
     
    539539//++
    540540template<class T>
    541 int SphereGorski<T>::RingToNest(int k) const
     541int_4 SphereGorski<T>::RingToNest(int_4 k) const
    542542//
    543543//    translation from  RING index  into NESTED index
     
    550550
    551551template<class T>
    552 int SphereGorski<T>::nest2ring(int nside, int ipnest) const
     552int_4 SphereGorski<T>::nest2ring(int_4 nside, int_4 ipnest) const
    553553{
    554554  /*
     
    632632
    633633template<class T>
    634 int SphereGorski<T>::ring2nest(int nside, int ipring) const
     634int_4 SphereGorski<T>::ring2nest(int_4 nside, int_4 ipring) const
    635635{
    636636  /*
     
    741741
    742742template<class T>
    743 int SphereGorski<T>::ang2pix_ring(int nside, double theta, double phi) const
     743int_4 SphereGorski<T>::ang2pix_ring(int_4 nside, double theta, double phi) const
    744744{
    745745  /*
     
    817817
    818818template<class T>
    819 int SphereGorski<T>::ang2pix_nest(int nside, double theta, double phi) const
     819int_4 SphereGorski<T>::ang2pix_nest(int_4 nside, double theta, double phi) const
    820820{
    821821  /*
     
    914914
    915915template<class T>
    916 void SphereGorski<T>::pix2ang_ring(int nside,int ipix,double& theta,double& phi) const {
     916void SphereGorski<T>::pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) const {
    917917  /*
    918918    ===================================================
     
    982982
    983983template<class T>
    984 void SphereGorski<T>::pix2ang_nest(int nside,int ipix,double& theta,double& phi) const {
     984void SphereGorski<T>::pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) const {
    985985  /*
    986986    ==================================================
     
    11741174    }
    11751175
    1176   int nSide;
     1176  int_4 nSide;
    11771177  is.GetI4(nSide);
    11781178  dobj->setSizeIndex(nSide);
    11791179
    1180   int nPix;
     1180  int_4 nPix;
    11811181  is.GetI4(nPix);
    11821182  dobj->setNbPixels(nPix);
     
    12041204
    12051205  char strg[256];
    1206   int nSide= dobj->SizeIndex();
    1207   int nPix = dobj->NbPixels();
     1206  int_4 nSide= dobj->SizeIndex();
     1207  int_4 nPix = dobj->NbPixels();
    12081208 
    12091209  if(dobj->ptrInfo())
Note: See TracChangeset for help on using the changeset viewer.