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


Ignore:
Timestamp:
May 13, 1999, 12:12:51 PM (26 years ago)
Author:
ercodmgr
Message:

Mise aux "normes" version DPC/Planck - Gestion des objets a travers

un adaptateur/interface NTuple par NamedObjMgr.
Enregistrement d'objets et de l'adaptateur (I/O PPersist, display, ...)
par ServNobjMgr .... Reza 13/05/99

File:
1 edited

Legend:

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

    r205 r295  
    11#include <stdio.h>
     2#include <typeinfo>
     3
    24#include "pihisto.h"
    35#include "hisprof.h"
     
    2123  float hmax = mHisto->VMax()+0.2*(mHisto->VMax()-mHisto->VMin());
    2224  // si HBProf min,max calcules en tenant compte des erreurs
    23   if( mHisto->ClassId() == HProf::classId ) {
     25  if( typeid(*mHisto) == typeid(HProf) ) {
    2426    float v1,v2;
    2527    for (int i=1; i<mHisto->NBins(); i++) {
     
    4345  if (!mHisto)  return; 
    4446
    45   if (mMrk != PI_NotDefMarker || mHisto->ClassId() == HProf::classId ) {
     47  if (mMrk != PI_NotDefMarker ||  ( typeid(*mHisto) == typeid(HProf) ) ) {
    4648    // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a
    4749    if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
Note: See TracChangeset for help on using the changeset viewer.