Ignore:
Timestamp:
08/08/02 11:58:59 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc

    r1488 r1489  
    6969{
    7070    fName  = name  ? name  : "MHillasSrc";
    71     fTitle = title ? title : "parameters depending in source position";
     71    fTitle = title ? title : "Parameters depending in source position";
    7272}
    7373
  • trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc

    r1488 r1489  
    5252#include "MParList.h"
    5353#include "MDataChain.h"
     54#include "MDataArray.h"
    5455
    5556#include "MHadroness.h"
     
    6566//
    6667MMultiDimDistCalc::MMultiDimDistCalc(const char *name, const char *title)
    67     : fNum(0), fUseKernel(kFALSE)
     68    : fNum(0), fUseKernel(kFALSE), fData(NULL)
    6869{
    6970    //
     
    7374    fTitle = title ? title : gsDefTitle.Data();
    7475
    75     fData = new TList;
    76     fData->SetOwner();
     76    /*
     77     fData = new TList;
     78     fData->SetOwner();
     79     */
    7780}
    7881
     
    8386MMultiDimDistCalc::~MMultiDimDistCalc()
    8487{
    85     delete fData;
     88    //    delete fData;
    8689}
    8790
     
    119122    }
    120123
     124    /*
    121125    TIter Next(fMGammas->GetRules());
    122126    TObject *data=NULL;
     
    130134        }
    131135        fData->Add(chain);
     136    }
     137    */
     138    fData = fMGammas->GetColumns();
     139    if (!fData)
     140    {
     141        *fLog << err << dbginf << "Error matrix doesn't contain columns... aborting." << endl;
     142        return kFALSE;
     143    }
     144
     145    if (!fData->PreProcess(plist))
     146    {
     147        *fLog << err << dbginf << "PreProcessing of the MDataArray failed for the columns failed... aborting." << endl;
     148        return kFALSE;
    132149    }
    133150
     
    156173    TVector event(ncols);
    157174
     175    for (int i=0; i<fData->GetNumEntries(); i++)
     176        event(i) = (*fData)(i);
     177
     178    /*
    158179    Int_t n=0;
    159180    TIter Next(fData);
     
    161182    while ((data=(MData*)Next()))
    162183        event(n++) = data->GetValue();
     184        */
    163185
    164186    Double_t numg = fNum;
  • trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.h

    r1488 r1489  
    99class MParList;
    1010class MHadroness;
     11class MDataArray;
    1112
    1213class MMultiDimDistCalc : public MTask
     
    2122    MHadroness *fHadroness; //! Output container for calculated hadroness
    2223
    23     TList *fData;           //! Used to store the MDataChains to get the event values
     24    MDataArray *fData;      //! Used to store the MDataChains to get the event values
    2425
    2526    void StreamPrimitive(ofstream &out) const;
Note: See TracChangeset for help on using the changeset viewer.