Changeset 3139 in Sophya


Ignore:
Timestamp:
Jan 17, 2007, 5:51:29 PM (19 years ago)
Author:
cmv
Message:

modifs mineures et intro POHe2DAdapter cmv 17/01/2007

Location:
trunk/SophyaPI/PIext
Files:
7 edited

Legend:

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

    r3135 r3139  
    77
    88#include "nomherradapter.h"
    9 #include "servnobjm.h"
    10 
    119#include "pihisto.h"   /* Wrapper pour HistoErr */
    1210#include "sohiswrap.h"   /* Wrapper pour HistoErr */
    1311
     12#include "pipodrw.h"
     13
     14#include "servnobjm.h"
    1415
    1516#include "objfitter.h"
     
    246247  */
    247248  return NULL;
     249}
     250
     251/* --Methode-- */
     252P2DArrayAdapter* NOMAdapter_Histo2DErr::Get2DArray(string & dopt)
     253{
     254return ( new POHe2DAdapter(mHerr, false) );
    248255}
    249256
  • trunk/SophyaPI/PIext/nomherradapter.h

    r3125 r3139  
    8181  virtual void                  Print(ostream& os, int lev=0);
    8282  virtual PIDrawer*             GetDrawer(string& dopt);
     83  virtual P2DArrayAdapter*      Get2DArray(string& dopt);
    8384  virtual NTupleInterface*      GetNTupleInterface(bool& adel);
    8485
  • trunk/SophyaPI/PIext/nomhistadapter.cc

    r3125 r3139  
    1212#include "pihisto2d.h"
    1313#include "pipodrw.h"
     14
    1415#include "servnobjm.h"
    1516
  • trunk/SophyaPI/PIext/nomhistadapter.h

    r3123 r3139  
    1111#include "histos2.h"
    1212#include "hisprof.h"
    13 #include "histerr.h"
    1413#include "ntuple.h"
    1514#include "xntuple.h"
  • trunk/SophyaPI/PIext/pihisto.cc

    r3135 r3139  
    303303info += "      =e: draw bin error (if exist)\n";
    304304info += "      =n: draw number of entries in the bin (if exist)\n";
    305 info += "      default: draw scaled and offset value (default)";
     305info += "      default: draw scaled and offset value (default)\n";
    306306info += "  sta,stat,stats:            activate   statistic display\n";
    307307info += "  nsta,nstat,nostat,nostats: deactivate statistic display\n";
  • trunk/SophyaPI/PIext/pipodrw.cc

    r2615 r3139  
    5757
    5858// ----------------------------------------------------------
    59 // Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
     59// Adaptateur d'Histo-2D a P2DArrayAdapter
    6060// ----------------------------------------------------------
    6161
     
    7878{
    7979return((*mH2d)(ix, iy));
     80}
     81
     82// ----------------------------------------------------------
     83// Adaptateur d'Histo2DErr a P2DArrayAdapter
     84// ----------------------------------------------------------
     85
     86/* --Methode-- */
     87POHe2DAdapter::POHe2DAdapter(Histo2DErr* he2d, bool ad)
     88        : P2DArrayAdapter(he2d->NBinX(), he2d->NBinY())
     89{
     90aDel = ad; mHe2d = he2d;
     91DefineXYCoordinates(he2d->XMin(), he2d->YMin(), he2d->WBinX(), he2d->WBinY() );
     92}
     93
     94/* --Methode-- */
     95POHe2DAdapter::~POHe2DAdapter()
     96{
     97if (aDel)  delete mHe2d;
     98}
     99
     100/* --Methode-- */
     101double POHe2DAdapter::Value(int ix, int iy)
     102{
     103return((*mHe2d)(ix, iy));
    80104}
    81105
  • trunk/SophyaPI/PIext/pipodrw.h

    r584 r3139  
    1111#include "parradapter.h"
    1212#include "histos2.h"
     13#include "hist2err.h"
    1314
    1415#ifdef SANS_EVOLPLANCK
     
    3334
    3435
    35 // Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
     36// Adaptateur d'Histo-2D a P2DArrayAdapter
    3637class POH2DAdapter :  public P2DArrayAdapter {
    3738public :
     
    4445  bool aDel;
    4546  Histo2D* mH2d;
     47};
     48
     49// Adaptateur d'Histo2DErr a P2DArrayAdapter
     50class POHe2DAdapter :  public P2DArrayAdapter {
     51public :
     52                  POHe2DAdapter(Histo2DErr* he2d, bool ad=false);
     53  virtual         ~POHe2DAdapter();
     54
     55  virtual double  Value(int ix, int iy);   
     56
     57protected:
     58  bool aDel;
     59  Histo2DErr* mHe2d;
    4660};
    4761
Note: See TracChangeset for help on using the changeset viewer.