Changeset 8082


Ignore:
Timestamp:
10/17/06 09:38:43 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 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
  • trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc

    r7971 r8082  
    5050// SetMaxPts(-1) disables this feature.
    5151//
     52//
     53// Class Version 2:
     54// ----------------
     55//  + MData      *fData;      // Object from which the data is filled
     56//  - MDataChain *fData;      // Object from which the data is filled
     57//  + MData      *fError;     // Object from which the error is filled
     58//  - MDataChain *fError;     // Object from which the error is filled
     59//
    5260/////////////////////////////////////////////////////////////////////////////
    5361#include "MHVsTime.h"
     
    6775#include "MTime.h"
    6876#include "MParList.h"
    69 #include "MDataChain.h"
     77#include "MDataPhrase.h"
    7078#include "MRawEvtHeader.h"
    7179
     
    8088//
    8189// Default constructor. For more informations about a valid rule
    82 // see MDataChain.
     90// see MDataPhrase.
    8391//
    8492MHVsTime::MHVsTime(const char *rule, const char *error)
     
    92100        return;
    93101
    94     fData = new MDataChain(rule);
     102    fData = new MDataPhrase(rule);
    95103
    96104    if (error)
    97         fError = new MDataChain(error);
     105        fError = new MDataPhrase(error);
    98106
    99107    fGraph = error ? new TGraphErrors : new TGraph;
     
    141149// --------------------------------------------------------------------------
    142150//
    143 // PreProcess the MDataChain. Create a new TGraph. Delete an old one if
     151// PreProcess the MDataPhrase. Create a new TGraph. Delete an old one if
    144152// already allocated.
    145153//
  • trunk/MagicSoft/Mars/mhvstime/MHVsTime.h

    r7033 r8082  
    1111
    1212class TGraph;
    13 class MDataChain;
     13class MData;
    1414
    1515class MHVsTime : public MH
     
    2222    // Could be const but root < 3.02/06 doesn't like this...
    2323    TGraph     *fGraph;     // Histogram to fill
    24     MDataChain *fData;      // Object from which the data is filled
    25     MDataChain *fError;     // Object from which the error is filled
     24    MData      *fData;      // Object from which the data is filled
     25    MData      *fError;     // Object from which the error is filled
    2626    Double_t    fScale;     // Scale for axis (eg unit)
    2727    Int_t       fMaxPts;    // Maximum number of data points
     
    7878    void SetMaxPts(Int_t n) { fMaxPts=n; }
    7979
    80     ClassDef(MHVsTime, 1) // Generalized 1/2/3D-histogram for Mars variables
     80    ClassDef(MHVsTime, 2) // Generalized 1/2/3D-histogram for Mars variables
    8181};
    8282
Note: See TracChangeset for help on using the changeset viewer.