Changeset 1135 in Sophya


Ignore:
Timestamp:
Aug 23, 2000, 3:56:27 PM (25 years ago)
Author:
ansari
Message:

bug ds xntuple.cc , petites correction ds virtual Histo/HProf::UpdateHisto() - Reza 23/8/2000

Location:
trunk/SophyaLib/HiStats
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/hisprof.cc

    r1092 r1135  
    102102/********* Methode *********/
    103103/*!
     104Calcule la partie histogramme du profile si elle n'est pas a jour.
     105*/
     106void HProf::UpdateHisto(bool force) const
     107{
     108if(!Ok || force) updatehisto();
     109}
     110
     111/********* Methode *********/
     112/*!
    104113  Remise a zero
    105114*/
     
    112121  Histo::Zero();
    113122}
     123
    114124
    115125/********* Methode *********/
  • trunk/SophyaLib/HiStats/hisprof.h

    r1109 r1135  
    2323
    2424  // UPDATING or SETTING
    25   //! Calcul la partie histogramme du profile si elle n'est pas a jour.
    26   virtual inline void UpdateHisto(bool force=false) const
    27                         {if(!Ok || force) updatehisto();}
     25  virtual void UpdateHisto(bool force=false) const;
     26
    2827  void SetErrOpt(bool spread = true);
    2928  void Zero();
  • trunk/SophyaLib/HiStats/histos.cc

    r1109 r1135  
    11//
    2 // $Id: histos.cc,v 1.11 2000-07-28 16:29:54 ansari Exp $
     2// $Id: histos.cc,v 1.12 2000-08-23 13:56:27 ansari Exp $
    33//
    44
     
    500500{
    501501SetErr2(numBin,  e*e);
     502}
     503
     504/********* Methode *********/
     505/*!
     506  Methode virtuelle de mise a jour - Ne fait rien pour Histo - Voir HProf
     507*/
     508void Histo::UpdateHisto(bool force) const
     509{
     510  return;
    502511}
    503512
  • trunk/SophyaLib/HiStats/histos.h

    r1109 r1135  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: histos.h,v 1.12 2000-07-28 16:29:55 ansari Exp $
     3// $Id: histos.h,v 1.13 2000-08-23 13:56:27 ansari Exp $
    44//
    55
     
    4242  void SetErr(r_8 x, r_8 e);
    4343  void SetErr(int_4 numBin, r_8 e);
    44   virtual inline void UpdateHisto() const { return;}
     44  virtual void UpdateHisto(bool force=false) const;
    4545
    4646  // Operators
  • trunk/SophyaLib/HiStats/xntuple.cc

    r1046 r1135  
    295295   
    296296    // on ferme le fichier de swap
    297     if(swf) fclose(swf) ; swf = NULL ;
    298     remove(swf_name) ;
    299     delete swf_name ; swf_name = NULL ;
    300    
     297    if(swf) {
     298      fclose(swf) ; swf = NULL ;
     299      remove(swf_name) ;
     300      delete swf_name ; swf_name = NULL ;
     301    }
    301302    // tout le monde remis a 0
    302303    mNEnt   = 0 ;     mNBlk   = 0 ;
Note: See TracChangeset for help on using the changeset viewer.