Changeset 493 in Sophya for trunk/SophyaPI
- Timestamp:
- Oct 21, 1999, 6:08:44 PM (26 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r486 r493 778 778 { 779 779 bool ok = true; 780 #ifdef SANS_EVOLPLANCK 780 781 RzImage* obj; 782 #else 783 //CMV_A_FAIRE RzImage* obj; 784 #endif 781 785 782 786 TRY{ -
trunk/SophyaPI/PIext/piafitting.cc
r466 r493 498 498 return;} 499 499 } 500 #ifdef SANS_EVOLPLANCK 500 501 else if (dynamic_cast<RzImage*>(mObj)) { 501 502 mNVar = 2; 502 503 mIm = (RzImage*) mObj; mNBinX = mIm->XSize(); mNBinY = mIm->YSize(); 503 504 } 505 #else 506 //CMV_A_FAIRE else if (dynamic_cast<RzImage*>(mObj)) { 507 //CMV_A_FAIRE mNVar = 2; 508 //CMV_A_FAIRE mIm = (RzImage*) mObj; mNBinX = mIm->XSize(); mNBinY = mIm->YSize(); 509 //CMV_A_FAIRE } 510 #endif 504 511 else { 505 512 cout<<"PIAFitter::DecodeObject Error , Objet n'est pas un " … … 878 885 string nomres = mNObj + "_res"; 879 886 string nomfun = mNObj + "_fun"; 887 //#################### 888 #ifdef SANS_EVOLPLANCK 889 //#################### 880 890 if(mV) { 881 891 if(mOpt.okres) {Vector* ob = mV->FitResidus(*mFit); if(ob) omg.AddObj(ob,nomres);} … … 907 917 {GeneralFitData* ob = mG->FitFunction(*mFit); if(ob) omg.AddObj(ob,nomfun);} 908 918 } 919 //#################### 920 #else 921 //#################### 922 if(mV) { 923 if(mOpt.okres) {Vector* ob = new Vector(mV->FitResidus(*mFit)); if(ob) omg.AddObj(ob,nomres);} 924 if(mOpt.okfun) {Vector* ob = new Vector(mV->FitFunction(*mFit)); if(ob) omg.AddObj(ob,nomfun);} 925 } else if(mH) { 926 if(mOpt.okres) {Histo* ob = new Histo(mH->FitResidus(*mFit)); if(ob) omg.AddObj(ob,nomres);} 927 if(mOpt.okfun) {Histo* ob = new Histo(mH->FitFunction(*mFit)); if(ob) omg.AddObj(ob,nomfun);} 928 } else if(mM) { 929 if(mOpt.okres) {Matrix* ob = new Matrix(mM->FitResidus(*mFit)); if(ob) omg.AddObj(ob,nomres);} 930 if(mOpt.okfun) {Matrix* ob = new Matrix(mM->FitFunction(*mFit)); if(ob) omg.AddObj(ob,nomfun);} 931 } else if(mH2) { 932 if(mOpt.okres) 933 {Histo2D* ob = new Histo2D(mH2->FitResidus(*mFit)); if(ob) omg.AddObj(ob,nomres);} 934 if(mOpt.okfun) 935 {Histo2D* ob = new Histo2D(mH2->FitFunction(*mFit)); if(ob) omg.AddObj(ob,nomfun);} 936 //CMV_A_FAIRE } else if(mIm) { 937 //CMV_A_FAIRE if(mOpt.okres) { 938 //CMV_A_FAIRE RzImage* ob = mIm->FitResidus(*mFit); 939 //CMV_A_FAIRE if(ob) {ImageR4* rob = new ImageR4(*ob); omg.AddObj(rob,nomres); delete ob;} 940 //CMV _A_FAIRE } 941 //CMV_A_FAIRE if(mOpt.okfun) { 942 //CMV_A_FAIRE RzImage* ob = mIm->FitFunction(*mFit); 943 //CMV_A_FAIRE if(ob) {ImageR4* rob = new ImageR4(*ob); omg.AddObj(rob,nomfun); delete ob;} 944 //CMV_A_FAIRE } 945 } else if(mG) { 946 if(mOpt.okres) 947 {GeneralFitData* ob = new GeneralFitData(mG->FitResidus(*mFit)); if(ob) omg.AddObj(ob,nomres);} 948 if(mOpt.okfun) 949 {GeneralFitData* ob = new GeneralFitData(mG->FitFunction(*mFit)); if(ob) omg.AddObj(ob,nomfun);} 950 } 951 //#################### 952 #endif 953 //#################### 909 954 } 910 955 return; -
trunk/SophyaPI/PIext/piafitting.h
r440 r493 22 22 class GeneralFunction; class GeneralFunc; class GeneralFit; 23 23 class GeneralFitData; 24 class Histo; class Matrix; class Histo2D; class RzImage; 24 class Histo; class Matrix; class Histo2D; 25 #ifdef SANS_EVOLPLANCK 26 class RzImage; 27 #else 28 //CMV_A_FAIRE class RzImage; 29 #endif 25 30 26 31 class PIAFitter : public CmdExecutor { … … 88 93 // Possibles objets a fitter 89 94 Vector* mV; Histo* mH; // Do not delete 90 Matrix* mM; Histo2D* mH2; RzImage* mIm; // Do not delete 95 Matrix* mM; Histo2D* mH2; // Do not delete 96 #ifdef SANS_EVOLPLANCK 97 RzImage* mIm; // Do not delete 98 #else 99 //CMV_A_FAIRE RzImage* mIm; // Do not delete 100 #endif 91 101 GeneralFitData* mG; // Do not delete 92 102 // Gestion des fonctions de fit predefinies -
trunk/SophyaPI/PIext/pimgadapter.h
r338 r493 5 5 #include "parradapter.h" 6 6 7 #ifdef SANS_EVOLPLANCK 7 8 class RzImageAdapter : public P2DArrayAdapter { 8 9 public: … … 19 20 RzImage* mImg; 20 21 }; 22 #endif 21 23 22 24 template <class T>
Note:
See TracChangeset
for help on using the changeset viewer.