Changeset 493 in Sophya


Ignore:
Timestamp:
Oct 21, 1999, 6:08:44 PM (26 years ago)
Author:
ercodmgr
Message:

Preparation pour portage DPC , cmv 21/10/99

Location:
trunk/SophyaPI/PIext
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r486 r493  
    778778{
    779779bool ok = true;
     780#ifdef SANS_EVOLPLANCK
    780781RzImage* obj;
     782#else
     783//CMV_A_FAIRE RzImage* obj;
     784#endif
    781785
    782786TRY{
  • trunk/SophyaPI/PIext/piafitting.cc

    r466 r493  
    498498     return;}
    499499  }
     500#ifdef SANS_EVOLPLANCK
    500501else if (dynamic_cast<RzImage*>(mObj)) {
    501502  mNVar = 2;
    502503  mIm = (RzImage*) mObj; mNBinX = mIm->XSize(); mNBinY = mIm->YSize();
    503504  }
     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
    504511else {
    505512  cout<<"PIAFitter::DecodeObject Error , Objet n'est pas un "
     
    878885  string nomres = mNObj + "_res";
    879886  string nomfun = mNObj + "_fun";
     887//####################
     888#ifdef SANS_EVOLPLANCK
     889//####################
    880890  if(mV) {
    881891    if(mOpt.okres) {Vector* ob = mV->FitResidus(*mFit);  if(ob) omg.AddObj(ob,nomres);}
     
    907917      {GeneralFitData* ob = mG->FitFunction(*mFit); if(ob) omg.AddObj(ob,nomfun);}
    908918  }
     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//####################
    909954}
    910955return;
  • trunk/SophyaPI/PIext/piafitting.h

    r440 r493  
    2222class GeneralFunction; class GeneralFunc; class GeneralFit;
    2323class GeneralFitData;
    24 class Histo; class Matrix; class Histo2D; class RzImage;
     24class Histo; class Matrix; class Histo2D;
     25#ifdef SANS_EVOLPLANCK
     26class RzImage;
     27#else
     28//CMV_A_FAIRE class RzImage;
     29#endif
    2530
    2631class PIAFitter : public CmdExecutor {
     
    8893// Possibles objets a fitter
    8994Vector* mV; Histo* mH; // Do not delete
    90 Matrix* mM; Histo2D* mH2; RzImage* mIm; // Do not delete
     95Matrix* mM; Histo2D* mH2; // Do not delete
     96#ifdef SANS_EVOLPLANCK
     97RzImage* mIm; // Do not delete
     98#else
     99//CMV_A_FAIRE RzImage* mIm; // Do not delete
     100#endif
    91101GeneralFitData* mG; // Do not delete
    92102// Gestion des fonctions de fit predefinies
  • trunk/SophyaPI/PIext/pimgadapter.h

    r338 r493  
    55#include "parradapter.h"
    66
     7#ifdef SANS_EVOLPLANCK
    78class RzImageAdapter : public P2DArrayAdapter {
    89public:
     
    1920  RzImage* mImg;
    2021};
     22#endif
    2123
    2224template <class T>
Note: See TracChangeset for help on using the changeset viewer.