Changeset 1057 in Sophya for trunk/SophyaPI/PIext/pihisto.cc


Ignore:
Timestamp:
Jul 7, 2000, 10:50:03 AM (25 years ago)
Author:
ercodmgr
Message:

cmv 7/7/2000

nomhistadapter.cc :

GetCopyObj() on fait un UpdateHisto() si c'est un HProf

servnobjm.cc :

ProjectHProf() on fait un UpdateHisto()

pihisto.cc :

Draw() on fait un UpdateHisto() si c'est un HProf

pawexecut.cc :

h/integ, h/deriv, h/rebin, h/cadd, h/cmult NON valable pour un HProf
h/oper teste et h3->Zero() ENLEVE pour permettre

h/oper @ h1 h3 h3
h/oper @ h3 h3 h3 ... etc...

cmv 7/7/2000

File:
1 edited

Legend:

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

    r548 r1057  
    7676  if (!mHisto)  return; 
    7777
    78   if (mMrk != PI_NotDefMarker ||  ( typeid(*mHisto) == typeid(HProf) ) )  {
    79     // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a
    80     if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
     78  if(mMrk != PI_NotDefMarker ||  (typeid(*mHisto) == typeid(HProf)) ) {
     79    // Marqeurs definis OU HProf => marqueurs+Erreurs si il y en a
     80    if(typeid(*mHisto) == typeid(HProf))
     81      { HProf* hp = (HProf*) mHisto; if(!(hp->IsOk())) hp->UpdateHisto();}
     82    if(mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
    8183    double x1,y1, x2,y2;
    8284    double bw = mHisto->BinWidth();
    83     for (int i=0; i<mHisto->NBins(); i++) {
     85    for(int i=0; i<mHisto->NBins(); i++) {
    8486      if(mHisto->Error(i)>0.) {
    8587        // barres d'erreur verticales
     
    100102    oktrace = true;
    101103  }
    102   if (mLAtt != PI_NotDefLineAtt) {
     104  if(mLAtt != PI_NotDefLineAtt) {
    103105    double x1,y1, x2, y2;
    104106    x1 = mHisto->BinLowEdge(0);
    105107    y1 = 0;
    106     for (int i=0; i<mHisto->NBins(); i++) {
     108    for(int i=0; i<mHisto->NBins(); i++) {
    107109      x2 = x1;
    108110      y2 = (*mHisto)(i);
     
    127129  }
    128130  // A faire a la fin - DrawStats change l'attribut de ligne
    129   if (stats) DrawStats(g);
     131  if(stats) DrawStats(g);
    130132}
    131133
Note: See TracChangeset for help on using the changeset viewer.