Ignore:
Timestamp:
10/17/06 09:38:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MH3.cc

    r7804 r8082  
    6969//   plist.AddToList(&bins);
    7070//
     71//
     72// Class Version 2:
     73// ----------------
     74//   - MDataChain *fData[3];        // Object from which the data is filled
     75//   + MData      *fData[3];        // Object from which the data is filled
     76//
     77//
    7178/////////////////////////////////////////////////////////////////////////////
    7279#include "MH3.h"
     
    8996#include "MParList.h"
    9097#include "MBinning.h"
    91 #include "MDataChain.h"
     98#include "MDataPhrase.h"
    9299
    93100ClassImp(MH3);
     
    148155    fHist = new TH1D;
    149156
    150     fData[0] = new MDataChain(memberx);
     157    fData[0] = new MDataPhrase(memberx);
    151158    fData[1] = NULL;
    152159    fData[2] = NULL;
     
    178185    {
    179186    case 3:
    180         fData[2] = new MDataChain(h1.GetZaxis()->GetTitle());
    181     case 2:
    182         fData[1] = new MDataChain(h1.GetYaxis()->GetTitle());
    183     case 1:
    184         fData[0] = new MDataChain(h1.GetXaxis()->GetTitle());
     187        fData[2] = new MDataPhrase(h1.GetZaxis()->GetTitle());
     188    case 2:
     189        fData[1] = new MDataPhrase(h1.GetYaxis()->GetTitle());
     190    case 1:
     191        fData[0] = new MDataPhrase(h1.GetXaxis()->GetTitle());
    185192    }
    186193
     
    207214    fHist = new TH2D;
    208215
    209     fData[0] = new MDataChain(memberx);
    210     fData[1] = new MDataChain(membery);
     216    fData[0] = new MDataPhrase(memberx);
     217    fData[1] = new MDataPhrase(membery);
    211218    fData[2] = NULL;
    212219
     
    234241    fHist = new TH3D;
    235242
    236     fData[0] = new MDataChain(memberx);
    237     fData[1] = new MDataChain(membery);
    238     fData[2] = new MDataChain(memberz);
     243    fData[0] = new MDataPhrase(memberx);
     244    fData[1] = new MDataPhrase(membery);
     245    fData[2] = new MDataPhrase(memberz);
    239246
    240247    fName  = gsDefName;
  • trunk/MagicSoft/Mars/mhbase/MH3.h

    r7804 r8082  
    1111class TH1;
    1212class TMethodCall;
    13 class MDataChain;
     13class MData;
    1414
    1515class MH3 : public MH
     
    2323    Int_t       fDimension;      // Number of dimensions of histogram
    2424    TH1        *fHist;           // Histogram to fill
    25     MDataChain *fData[3];        // Object from which the data is filled
     25    MData      *fData[3];        // Object from which the data is filled
    2626    Double_t    fScale[3];       // Scale for the three axis (eg unit)
    2727
     
    8686    void Paint(Option_t *opt="");
    8787
    88     ClassDef(MH3, 1) // Generalized 1/2/3D-histogram for Mars variables
     88    ClassDef(MH3, 2) // Generalized 1/2/3D-histogram for Mars variables
    8989};
    9090
Note: See TracChangeset for help on using the changeset viewer.