Changeset 701 in Sophya
- Timestamp:
- Jan 4, 2000, 3:27:29 PM (26 years ago)
- Location:
- trunk/SophyaLib/Samba
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/localmap.cc
r682 r701 636 636 int_4 nSzX; 637 637 is.GetI4(nSzX); 638 dobj->setSize_x(nSzX);638 // dobj->setSize_x(nSzX); 639 639 640 640 int_4 nSzY; 641 641 is.GetI4(nSzY); 642 dobj->setSize_y(nSzY);642 // dobj->setSize_y(nSzY); 643 643 644 644 int_4 nPix; 645 645 is.GetI4(nPix); 646 dobj->setNbPixels(nPix);647 646 // dobj->setNbPixels(nPix); 647 dobj->ReSize(nSzX, nSzY); 648 648 string ss("local mapping is done"); 649 649 string sso; … … 668 668 669 669 // On lit le DataBlock; 670 is >> dobj->DataBlock(); 670 FIO_NDataBlock<T> fio_nd(&dobj->DataBlock()); 671 fio_nd.Read(is); 671 672 } 672 673 … … 729 730 730 731 // On ecrit le dataBlock 731 os << dobj->DataBlock(); 732 FIO_NDataBlock<T> fio_nd(&dobj->DataBlock()); 733 fio_nd.Write(os); 732 734 } 733 735 -
trunk/SophyaLib/Samba/localmap.h
r682 r701 80 80 /* return/set the number of pixels */ 81 81 /*! Return number of pixels */ 82 virtual int_4 NbPixels() const; 83 inline void setNbPixels(int_4 n) {nPix_= n;} 82 virtual int NbPixels() const; 84 83 85 84 /* return the value of pixel number k */ … … 143 142 inline int_4 Size_x() const {return nSzX_;} 144 143 inline int_4 XSize() const {return nSzX_;} 145 inline void setSize_x(int_4 n) {nSzX_= n;}146 144 inline int_4 Size_y() const {return nSzY_;} 147 145 inline int_4 YSize() const {return nSzY_;} 148 inline void setSize_y(int_4 n) {nSzY_= n;}149 146 150 147 inline void Origin(double& theta,double& phi,int_4& x0,int_4& y0,double& angle) const {theta= theta0_; phi= phi0_; x0= x0_; y0= y0_;angle= angle_;} … … 152 149 inline void Aperture(double& anglex,double& angley) const {anglex= angleX_; angley= angleY_;} 153 150 154 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */155 inline const NDataBlock<T>* getDataBlock() const {return (&pixels_);}156 inline void setDataBlock(T* data, int_4 n) {pixels_.FillFrom(n,data);}157 151 158 152 /* Acces to the DataBlock */ -
trunk/SophyaLib/Samba/sambainit.cc
r518 r701 19 19 // Enregistrement des classes PPersist du modules Outils++ 20 20 21 PPRegister( SphereCoordSys);21 PPRegister(FIO_SphereCoordSys); 22 22 23 23 PPRegister(FIO_SphereThetaPhi<float>); -
trunk/SophyaLib/Samba/scan.cc
r682 r701 92 92 93 93 //++ 94 Scan::Scan(const Scan& s )94 Scan::Scan(const Scan& s, bool share) : sPix_(s.sPix_ , share) 95 95 96 96 // copy constructor … … 106 106 TempsInitial_ = s.TempsInitial_; 107 107 PhiZero_ = s.PhiZero_; 108 sPix_=s.sPix_;109 108 for (int k=0; k<9; k++) Rota_[k]=s. Rota_[k]; 110 109 } … … 257 256 void Scan::InitNull() { 258 257 // sPix_=NULL; 259 sPix_.Reset();258 // sPix_.Reset(); pas de reset (pour le cas de share) 260 259 mInfo_=NULL; 261 260 } … … 389 388 dobj->SetFloatParams(Ouverture,OmegaTeta,OmegaPhi,OmegaRad, 390 389 FrequenceEch,TempsFinal,TempsInitial,PhiZero,Rota); 391 r_8* sPix=new r_8[NmaxPts]; 392 PIOSReadArray(is, sPix, NmaxPts); 393 dobj->setDataBlock(sPix, NmaxPts); 394 delete [] sPix; 390 // On lit le DataBlock; 391 FIO_NDataBlock<r_8> fio_nd(&dobj->DataBlock()); 392 fio_nd.Read(is); 395 393 } 396 394 //++ … … 438 436 os.PutR8s(Rota, 9); 439 437 440 PIOSWriteArray(os,(dobj->getDataBlock())->Data(), dobj->NbPoints()); 441 442 } 438 // On ecrit le dataBlock 439 FIO_NDataBlock<r_8> fio_nd(&dobj->DataBlock()); 440 fio_nd.Write(os); 441 442 } -
trunk/SophyaLib/Samba/scan.h
r565 r701 8 8 #include "dvlist.h" 9 9 #include "ndatablock.h" 10 11 class FIO_Scan; 12 10 13 //! Storage and treatment of data for a scanning of a part of the sky with a set of given values for parameters (see constructor) 11 14 12 15 class Scan : public AnyDataObj { 13 // friendFIO_Scan;16 friend class FIO_Scan; 14 17 public : 15 18 /* … … 38 41 */ 39 42 Scan(float,float*,float,float,float,float); 40 Scan(const Scan& );43 Scan(const Scan&, bool share=false ); 41 44 Scan() { 42 45 InitNull(); … … 94 97 95 98 99 100 101 private : 102 103 //void Clear(); 104 void InitNull(); 105 106 /* Acces to the DataBlock */ 107 inline NDataBlock<r_8>& DataBlock() {return sPix_;} 108 inline const NDataBlock<r_8>& DataBlock() const {return sPix_;} 109 96 110 inline void SetIntParams(int_4 NmaxPts, int_4 NmaxTrs, int_4 NPts1Tr) 97 111 { … … 129 143 for (int k=0; k<9;k++) Rota[k]=Rota_[k]; 130 144 } 131 132 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */133 inline const NDataBlock<r_8>* getDataBlock() const {return (&sPix_);}134 inline void setDataBlock(r_8* data, int n) {sPix_.FillFrom(n,data);}135 136 private :137 138 //void Clear();139 void InitNull();140 145 141 146 -
trunk/SophyaLib/Samba/spheregorski.cc
r697 r701 219 219 //-- 220 220 { 221 cout << " constructeur de recopie " << endl;222 221 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_); 223 222 … … 1116 1115 { 1117 1116 dobj= new SphereGorski<T>; 1118 dobj-> DataBlock().SetTemp(true);1117 dobj->pixels_.SetTemp(true); 1119 1118 ownobj= true; 1120 1119 Read(filename); … … 1125 1124 { 1126 1125 dobj= new SphereGorski<T>(obj, true); 1127 dobj-> DataBlock().SetTemp(true);1126 dobj->pixels_.SetTemp(true); 1128 1127 ownobj= true; 1129 1128 } … … 1155 1154 { 1156 1155 dobj= new SphereGorski<T>; 1157 dobj-> DataBlock().SetTemp(true);1156 dobj->pixels_.SetTemp(true); 1158 1157 ownobj= true; 1159 1158 } 1160 1159 1161 1160 // Let's Read the SphereCoordSys object -- ATTENTIOn - $CHECK$ 1162 SphereCoordSys* cs = dynamic_cast<SphereCoordSys*>(is.ReadObject()); 1163 dobj->SetCoordSys(cs); 1164 1161 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 1162 fio_scs.Read(is); 1165 1163 // Pour savoir s'il y avait un DVList Info associe 1166 1164 char strg[256]; … … 1175 1173 int_4 nSide; 1176 1174 is.GetI4(nSide); 1177 dobj->setSizeIndex(nSide);1178 1179 1175 int_4 nPix; 1180 1176 is.GetI4(nPix); 1181 dobj->setNbPixels(nPix);1182 1183 1177 double Omega; 1184 1178 is.GetR8(Omega); 1185 dobj->setP ixSolAngle(Omega);1179 dobj->setParameters(nSide,nPix, Omega); 1186 1180 1187 1181 // On lit le DataBlock; 1188 is >> dobj->DataBlock(); 1182 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 1183 fio_nd.Read(is); 1189 1184 } 1190 1185 … … 1192 1187 void FIO_SphereGorski<T>::WriteSelf(POutPersist& os) const 1193 1188 { 1194 1195 1189 if(dobj == NULL) 1196 1190 { … … 1200 1194 1201 1195 // Let's write the SphereCoordSys object 1202 dobj->GetCoordSys()->Write(os); 1196 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 1197 fio_scs.Write(os); 1203 1198 1204 1199 char strg[256]; … … 1220 1215 os.PutI4(nSide); 1221 1216 os.PutI4(nPix); 1222 os.PutR8(dobj->PixSolAngle( 0));1217 os.PutR8(dobj->PixSolAngle()); 1223 1218 // On ecrit le dataBlock 1224 os << dobj->DataBlock(); 1219 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 1220 fio_nd.Write(os); 1225 1221 } 1226 1222 -
trunk/SophyaLib/Samba/spheregorski.h
r698 r701 51 51 52 52 template<class T> 53 class FIO_SphereGorski; 54 55 template<class T> 53 56 class SphereGorski : public SphericalMap<T> 54 57 { 58 59 friend class FIO_SphereGorski<T>; 55 60 56 61 public : … … 74 79 /*! Return number of pixels of the splitting */ 75 80 virtual int_4 NbPixels() const; 76 inline void setNbPixels(int_4 n) {nPix_= n;}77 81 78 82 /* Valeur du contenu du pixel d'indice "RING" k */ … … 115 119 fulfil this requirement. 116 120 */ 117 virtual double PixSolAngle(int_4 dummy) const; 118 inline void setPixSolAngle(double x) {omeg_= x;} 121 virtual double PixSolAngle(int_4 dummy=0) const; 119 122 120 123 // --------------- Specific methods … … 160 163 161 164 162 /* retourne /fixela valeur du parametre Gorski */165 /* retourne la valeur du parametre Gorski */ 163 166 inline virtual int_4 SizeIndex() const {return(nSide_);} 164 inline void setSizeIndex(int_4 n) {nSide_= n;}165 167 166 168 /* retourne les pointeurs /remplit les tableaux */ 167 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 168 inline void setDataBlock(T* data,int_4 m) { pixels_.FillFrom(m,data); } 169 170 /* Acces to the DataBlock */ 171 inline NDataBlock<T>& DataBlock() {return pixels_;} 172 inline const NDataBlock<T>& DataBlock() const {return pixels_;} 169 173 170 174 171 … … 189 186 void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) const; 190 187 void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) const; 188 inline void setParameters(int_4 nside, int_4 nbpixels, double solangle) 189 { 190 nSide_= nside; 191 nPix_= nbpixels; 192 omeg_= solangle; 193 } 191 194 192 195 // ------------- variables internes ----------------------- -
trunk/SophyaLib/Samba/spherepos.cc
r682 r701 1 // 04/01/00 : implantation de la persistance par classe deleguee - Guy Le Meur 2 1 3 #include "spherepos.h" 2 4 3 static char *head_spherepos_cc_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.cc,v 1. 3 1999-12-10 16:55:59ansari Exp $";5 static char *head_spherepos_cc_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.cc,v 1.4 2000-01-04 14:27:15 ansari Exp $"; 4 6 5 7 … … 9 11 id_ = SphereCoordSys_NEUTRAL; 10 12 description_ = "NEUTRAL SphereCoordSystem"; 13 } 14 SphereCoordSys::SphereCoordSys(const SphereCoordSys& a ) 15 { 16 id_ = a.id_; 17 description_ = a.description_; 11 18 } 12 19 … … 19 26 { 20 27 } 21 22 // Temporary implementation of PPersist:: 23 // To be changed later ($CHECK$ Reza 26/10/99) 24 void SphereCoordSys::ReadSelf(PInPersist& is) 28 SphereCoordSys& SphereCoordSys::operator = (const SphereCoordSys& a) 25 29 { 26 uint_8 itab[3]; 27 is.Get(itab, 3); 28 id_ = itab[1]; 29 is.GetStr(description_); 30 id_ = a.id_; 31 description_ = a.description_; 32 return *this; 30 33 } 31 34 32 void SphereCoordSys::WriteSelf(POutPersist& os) const 35 36 //////////////////////////////////////////////////////////////// 37 // ------------------------------------------------------------------------- 38 // Les objets delegues pour la gestion de persistance 39 // ------------------------------------------------------------------------- 40 41 FIO_SphereCoordSys::FIO_SphereCoordSys() 42 { 43 dobj=new SphereCoordSys; 44 ownobj=true; 45 } 46 FIO_SphereCoordSys::FIO_SphereCoordSys(string const & filename) 47 { 48 dobj=new SphereCoordSys; 49 ownobj=true; 50 Read(filename); 51 } 52 FIO_SphereCoordSys::FIO_SphereCoordSys(const SphereCoordSys & obj) 53 { 54 dobj = new SphereCoordSys(obj); 55 ownobj=true; 56 } 57 FIO_SphereCoordSys::FIO_SphereCoordSys(SphereCoordSys * obj) 58 { 59 dobj = obj; 60 ownobj=false; 61 } 62 FIO_SphereCoordSys::~FIO_SphereCoordSys() 63 { 64 if (ownobj && dobj) delete dobj; 65 } 66 AnyDataObj* FIO_SphereCoordSys::DataObj() 67 { 68 return(dobj); 69 } 70 71 72 void FIO_SphereCoordSys::ReadSelf(PInPersist& is) 73 { 74 uint_8 itab[3]; 75 string description; 76 is.Get(itab, 3); 77 is.GetStr(description); 78 if (dobj == NULL) dobj = new SphereCoordSys(itab[1], description); 79 else *dobj= SphereCoordSys(itab[1], description); 80 } 81 void FIO_SphereCoordSys::WriteSelf(POutPersist& os) const 33 82 { 83 if (dobj == NULL) return; // Attention - $CHECK$ Guy 04/01/00 34 84 // On ecrit 3 uint_8 35 85 // 0 : Numero de version, 1 : Id, 2 reserve a l 36 86 uint_8 itab[3]; 37 87 itab[0] = 1; 38 itab[1] = id_;88 itab[1] = dobj->Id(); 39 89 itab[2] = 0; 40 90 os.Put(itab, 3); 41 os.PutStr(description_); 42 } 91 os.PutStr(dobj->description()); 92 } 93 94 43 95 44 96 //................. SpherePosition class ................. -
trunk/SophyaLib/Samba/spherepos.h
r552 r701 7 7 #include <string> 8 8 #include "unitvector.h" 9 #include "anydataobj.h" 9 10 10 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1. 3 1999-11-05 13:10:10ansari Exp $";11 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1.4 2000-01-04 14:27:11 ansari Exp $"; 11 12 12 13 namespace SOPHYA { … … 17 18 }; 18 19 19 // We make this class a PPersist class, in order20 // to be able to implement easily the persistence21 // for pixelmaps22 // To be changed later ($CHECK$ Reza 26/10/99)23 20 24 class SphereCoordSys : public PPersist{21 class SphereCoordSys : public AnyDataObj { 25 22 public: 26 23 27 SphereCoordSys(); 24 SphereCoordSys(); 25 SphereCoordSys(const SphereCoordSys& a); 28 26 SphereCoordSys(int id, const string& description); 29 27 virtual ~SphereCoordSys(); … … 31 29 virtual int Id() const {return id_; } 32 30 virtual string description() const {return description_; } 31 SphereCoordSys& operator = (const SphereCoordSys& a); 33 32 34 // METHODS FOR PERSISTENCE TO FOLLOW:35 protected:36 virtual void ReadSelf(PInPersist&);37 virtual void WriteSelf(POutPersist&) const;38 33 39 34 private: 40 35 int id_; 41 36 string description_; 37 }; 38 39 // Classe pour la gestion de persistance 40 41 class FIO_SphereCoordSys : public PPersist { 42 public: 43 FIO_SphereCoordSys(); 44 FIO_SphereCoordSys(string const & filename); 45 FIO_SphereCoordSys(const SphereCoordSys & obj); 46 FIO_SphereCoordSys(SphereCoordSys * obj); 47 virtual ~FIO_SphereCoordSys(); 48 virtual AnyDataObj* DataObj(); 49 inline operator SphereCoordSys() { return(*dobj); } 50 protected : 51 virtual void ReadSelf(PInPersist&); 52 virtual void WriteSelf(POutPersist&) const; 53 SphereCoordSys * dobj; 54 bool ownobj; 42 55 }; 43 56 -
trunk/SophyaLib/Samba/spherethetaphi.cc
r699 r701 322 322 //-- 323 323 { 324 int nbslices; 325 nbslices= 2*NTheta_; 326 return(nbslices); 324 return( 2*NTheta_); 327 325 } 328 326 … … 566 564 { 567 565 568 if(index < 0 || index > NbThetaSlices())566 if(index < 0 || index >= NbThetaSlices()) 569 567 { 570 568 // THROW(out_of_range("SphereThetaPhi::PIxVal Pixel index out of range")); 571 cout << " SphereThetaPhi::GetThetaSlice : exceptions a mettre en place" <<endl;569 cout << " SphereThetaPhi::GetThetaSlice : Pixel index out of range" <<endl; 572 570 THROW(rangeCheckErr); 573 571 } 574 572 575 573 int iring= Index(index,0); 576 int bid = this->NPhi(index); 577 int lring = bid; 574 int lring = NPhi(index); 578 575 579 576 phi.ReSize(lring); … … 617 614 } 618 615 619 template <class T>620 void SphereThetaPhi<T>::setDataBlock(T* data, int_4 m)621 // remplit le vecteur des contenus des pixels622 {623 pixels_.FillFrom(m,data);624 }625 616 626 617 template <class T> … … 684 675 { 685 676 dobj= new SphereThetaPhi<T>; 686 dobj->DataBlock().SetTemp(true); 677 // dobj->DataBlock().SetTemp(true); 678 dobj->pixels_.SetTemp(true); 687 679 ownobj= true; 688 680 Read(filename); … … 693 685 { 694 686 dobj= new SphereThetaPhi<T>(obj, true); 695 dobj->DataBlock().SetTemp(true); 687 // dobj->DataBlock().SetTemp(true); 688 dobj->pixels_.SetTemp(true); 696 689 ownobj= true; 697 690 } … … 723 716 { 724 717 dobj= new SphereThetaPhi<T>; 725 dobj->DataBlock().SetTemp(true); 718 // dobj->DataBlock().SetTemp(true); 719 dobj->pixels_.SetTemp(true); 726 720 ownobj= true; 727 721 } 728 722 729 723 // Let's Read the SphereCoordSys object -- ATTENTIOn - $CHECK$ 730 SphereCoordSys* cs = dynamic_cast<SphereCoordSys*>(is.ReadObject());731 dobj->SetCoordSys(cs);724 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 725 fio_scs.Read(is); 732 726 733 727 // Pour savoir s'il y avait un DVList Info associe … … 743 737 int_4 mNTheta; 744 738 is.GetI4(mNTheta); 745 dobj->setSizeIndex(mNTheta);746 747 739 int_4 mNPix; 748 740 is.GetI4(mNPix); 749 dobj->setNbPixels(mNPix);750 751 741 double mOmeg; 752 742 is.GetR8(mOmeg); 753 dobj->setP ixSolAngle(mOmeg);743 dobj->setParameters(mNPix, mOmeg, mNTheta); 754 744 755 745 int_4* mNphi= new int_4[mNTheta]; … … 769 759 770 760 // On lit le DataBlock; 771 is >> dobj->DataBlock(); 761 //FIO_NDataBlock<T> fio_nd(&dobj->DataBlock()); 762 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 763 fio_nd.Read(is); 764 // is >> dobj->DataBlock(); 772 765 } 773 766 … … 783 776 784 777 // Let's write the SphereCoordSys object 785 dobj->GetCoordSys()->Write(os); 778 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 779 fio_scs.Write(os); 786 780 787 781 char strg[256]; … … 803 797 os.PutI4(mNTheta); 804 798 os.PutI4(mNPix); 805 os.PutR8(dobj->PixSolAngle( 0));799 os.PutR8(dobj->PixSolAngle()); 806 800 os.PutI4s(dobj->getmNPhi() , mNTheta); 807 801 os.PutI4s(dobj->getmTNphi(), mNTheta+1); 808 802 os.PutR8s(dobj->getmTheta(), mNTheta+1); 809 803 // On ecrit le datablock 810 os << dobj->DataBlock(); 804 //FIO_NDataBlock<T> fio_nd(&dobj->DataBlock()); 805 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 806 fio_nd.Write(os); 807 // os << dobj->DataBlock(); 811 808 } 812 809 -
trunk/SophyaLib/Samba/spherethetaphi.h
r682 r701 8 8 #include "anydataobj.h" 9 9 #include "ppersist.h" 10 11 template <class T> 12 class FIO_SphereThetaPhi; 13 10 14 11 15 // ***************** Class SphereThetaPhi ***************************** … … 24 28 { 25 29 30 friend class FIO_SphereThetaPhi<T>; 31 26 32 public : 27 33 … … 37 43 // ------------ Definition of PixelMap abstract methods - 38 44 39 /* retourne /fixele nombre de pixels */45 /* retourne le nombre de pixels */ 40 46 /*! Return total number of pixels */ 41 47 virtual int_4 NbPixels() const; 42 inline void setNbPixels(int_4 nbpix) { NPix_= nbpix; }43 48 44 49 /* retourne la valeur du pixel d'indice k */ … … 67 72 fulfil this requirement. 68 73 */ 69 virtual double PixSolAngle(int_4 dummy) const; 70 inline void setPixSolAngle(double omega) { Omega_= omega; } 74 virtual double PixSolAngle(int_4 dummy=0) const; 71 75 72 76 /* retourne/fixe la valeur du parametre de decoupage m */ 73 77 inline virtual int_4 SizeIndex() const { return( NTheta_); } 74 inline void setSizeIndex(int_4 nbindex) { NTheta_= nbindex; }75 78 76 79 // ------------- Specific methods ---------------------- … … 133 136 void GetThetaSlice(int_4 index,double& theta,TVector<double>& phi,TVector<T>& value) const; 134 137 135 /*retourne le tableau contenant le nombre de pixels en phi de chacune des bandes en theta */ 136 inline const int_4* getmNPhi() const { return(NPhi_); } 137 void setmNPhi(int_4* array, int_4 m); 138 139 /* retourne/remplit le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */ 140 inline const int_4* getmTNphi() const { return(TNphi_); } 141 void setmTNphi(int_4* array, int_4 m); 142 143 /* retourne/remplit le tableau contenant les valeurs limites de theta */ 144 inline const double* getmTheta() const { return(Theta_); } 145 void setmTheta(double* array, int_4 m); 146 147 /* retourne le pointeur vers/remplit le vecteur des contenus des pixels */ 148 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 149 void setDataBlock(T* data, int_4 m); 150 151 /* Acces to the DataBlock */ 152 inline NDataBlock<T>& DataBlock() {return pixels_;} 153 inline const NDataBlock<T>& DataBlock() const {return pixels_;} 138 139 154 140 155 141 /* impression */ … … 161 147 void InitNul(); 162 148 void Clear(); 149 inline void setParameters(int nbpix, double omega, int nbThetaIndex) 150 { 151 NPix_= nbpix; 152 Omega_= omega; 153 NTheta_= nbThetaIndex; 154 } 155 void setmNPhi(int* array, int m); 156 void setmTNphi(int* array, int m); 157 void setmTheta(double* array, int m); 158 /*retourne l'adresse du tableau contenant le nombre de pixels en phi de chacune des bandes en theta */ 159 inline const int* getmNPhi() const { return(NPhi_); } 160 161 /* retourne le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes */ 162 inline const int* getmTNphi() const { return(TNphi_); } 163 164 /* retourne le tableau contenant les valeurs limites de theta */ 165 inline const double* getmTheta() const { return(Theta_); } 166 167 /* Acces to the DataBlock */ 168 //inline NDataBlock<T>& DataBlock() {return pixels_;} 169 //inline const NDataBlock<T>& DataBlock() const {return pixels_;} 163 170 164 171 // ------------- variables internes --------------------- 165 int_4 NTheta_; 166 int_4 NPix_; 167 double Omega_; 168 int_4* NPhi_; 172 int_4 NTheta_; // nombre de tranches en theta, pour une demi-sphere 173 int_4 NPix_; // nombre total de pixels 174 double Omega_; // angle solide constant pour chaque pixel 175 int_4* NPhi_; // tableau donnant, pour chaque bande en theta, le nombre de 176 // pixels selon phi 169 177 int_4* TNphi_; 170 178 double* Theta_; … … 185 193 virtual AnyDataObj* DataObj(); 186 194 inline operator SphereThetaPhi<T>() { return(*dobj); } 187 //inline SphereThetaPhi<T> getObj() { return(*dobj); }188 195 189 196 protected :
Note:
See TracChangeset
for help on using the changeset viewer.