Ignore:
Timestamp:
04/07/05 14:27:22 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/HBaseLinkDef.h

    r2738 r6915  
    1313
    1414#pragma link C++ class MBinning+;
    15 #pragma link C++ class MWeight+;
    1615
    1716#endif
  • trunk/MagicSoft/Mars/mhbase/MFillH.cc

    r6240 r6915  
    5151//
    5252// To use a weight for each event filled in a histogram call
    53 // SetWeight(). You can eithe use the name of a MWeight container stored
     53// SetWeight(). You can eithe use the name of a MParameterD container stored
    5454// in the parameter list or a pointer to it as an argument.
    5555//
     
    9292#include "MHArray.h"
    9393
    94 #include "MWeight.h"
     94#include "MParameters.h"
    9595
    9696#include "MParList.h"
     
    424424    if (!fWeight && !fWeightName.IsNull())
    425425    {
    426         fWeight = (MWeight*)pList->FindObject(fWeightName, "MWeight");
     426        fWeight = (MParameterD*)pList->FindObject(fWeightName, "MParameterD");
    427427
    428428        if (!fWeight)
    429429        {
    430             *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl;
     430            *fLog << err << fWeightName << " [MParameterD] not found... aborting." << endl;
    431431            return kFALSE;
    432432        }
     
    547547        fCanvas->cd();
    548548
    549     const Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1);
     549    const Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetVal():1);
    550550    fH->SetNumExecutions(GetNumExecutions()+1);
    551551
    552552    if (save && fCanvas)
    553553        save->cd();
    554 
    555554    return rc;
    556555}
  • trunk/MagicSoft/Mars/mhbase/MFillH.h

    r3788 r6915  
    99class MMap;
    1010class MData;
    11 class MWeight;
     11class MParameterD;
    1212class MParList;
    1313
     
    3030    TString fNameTab;
    3131
    32     MWeight *fWeight;             // Pointer to the container storing a weight
     32    MParameterD *fWeight;         // Pointer to the container storing a weight
    3333    TString fWeightName;          // Name of a container storing a weight
    3434
     
    6262    void SetRuleForIdx(MData *rule);
    6363
    64     void SetWeight(MWeight *w)       { fWeight = w; }
     64    void SetWeight(MParameterD *w)   { fWeight = w; }
    6565    void SetWeight(const char *name) { fWeightName = name; }
    6666
  • trunk/MagicSoft/Mars/mhbase/Makefile

    r3927 r6915  
    2323SRCFILES = MFillH.cc \
    2424           MBinning.cc \
    25            MWeight.cc \
    2625           MH.cc \
    2726           MH3.cc \
Note: See TracChangeset for help on using the changeset viewer.