Changeset 2681 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc


Ignore:
Timestamp:
Apr 20, 2005, 7:03:24 PM (20 years ago)
Author:
cmv
Message:

1-/ pour n/proj pas de display si histo existe ET pas d'option graphiques donnees
2-/ gestion correcte de la superposition d'histo 1D dans n/plot nt.x

L'histo pour le 2ieme display est dimensionne comme le premier.

(ajout de l'option graphique keepbin)

cmv 20/04/2005

File:
1 edited

Legend:

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

    r2679 r2681  
    500500  cout << "Services2NObjMgr::ProjectH1() Error , No such object " << nom << endl;
    501501  return;
    502   }
     502}
    503503if (!mImgapp)  return;
    504504
     
    516516  char* ntn[2]= {"hxval", "hwt"};
    517517  nt = new NTuple(2,ntn);  // Creation NTuple
    518   }
     518}
    519519string expz = "0.";   
    520520ComputeExpressions(obja, expx, expwt, expz, expwt, expcut, loop, nt, h1, NULL);
     
    526526    delete nt;
    527527    return;
    528     }
     528  }
    529529  double xmin, xmax;
    530530  nt->GetMinMax(0, xmin, xmax);
     
    535535    xn = nt->GetVec(k);
    536536    h1->Add(xn[0], xn[1]);   
    537     }
     537  }
    538538  delete nt;
    539539  MyObjMgr()->AddObj(h1, nomh1);
    540   }
    541 
    542 if(!h1_already_exist) MyObjMgr()->DisplayObj(nomh1, dopt);
     540}
     541
     542if(!h1_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomh1, dopt);
    543543return; 
    544544}
     
    553553  cout << "Services2NObjMgr::ProjectH2() Error , No such object " << nom << endl;
    554554  return;
    555   }
     555}
    556556if (!mImgapp)  return;
    557557
     
    569569  char* ntn[3]= {"hxval", "hyval", "hwt"};
    570570  nt = new NTuple(3,ntn);  // Creation NTuple
    571   }
     571}
    572572string expz = "0.";   
    573573ComputeExpressions(obja, expx, expy, expwt, expwt, expcut, loop, nt, NULL, h2);
     
    579579    delete nt;
    580580    return;
    581     }
     581  }
    582582  double xmin, xmax, ymin, ymax;
    583583  nt->GetMinMax(0, xmin, xmax);
     
    589589    xn = nt->GetVec(k);
    590590    h2->Add(xn[0], xn[1], xn[2]);   
    591     }
     591  }
    592592  delete nt;
    593593  MyObjMgr()->AddObj(h2, nomh2);
    594   }
    595 
    596 if(!h2_already_exist) MyObjMgr()->DisplayObj(nomh2, dopt);
     594}
     595
     596if(!h2_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomh2, dopt);
    597597return; 
    598598
     
    618618  cout << "Services2NObjMgr::ProjectHProf() Error , No such object " << nom << endl;
    619619  return;
    620   }
     620}
    621621if (!mImgapp)  return;
    622622
     
    652652    xn = nt->GetVec(k);
    653653    hprof->Add(xn[0], xn[1], xn[2]);
    654     }
     654  }
    655655  delete nt;
    656656  MyObjMgr()->AddObj(hprof, nomprof);
    657   }
     657}
    658658hprof->UpdateHisto();
    659659
    660 if(!hp_already_exist) MyObjMgr()->DisplayObj(nomprof, dopt);
     660if(!hp_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomprof, dopt);
    661661return;
    662662}
Note: See TracChangeset for help on using the changeset viewer.