Changeset 6915 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 04/07/05 14:27:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/HBaseLinkDef.h
r2738 r6915 13 13 14 14 #pragma link C++ class MBinning+; 15 #pragma link C++ class MWeight+;16 15 17 16 #endif -
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r6240 r6915 51 51 // 52 52 // To use a weight for each event filled in a histogram call 53 // SetWeight(). You can eithe use the name of a M Weightcontainer stored53 // SetWeight(). You can eithe use the name of a MParameterD container stored 54 54 // in the parameter list or a pointer to it as an argument. 55 55 // … … 92 92 #include "MHArray.h" 93 93 94 #include "M Weight.h"94 #include "MParameters.h" 95 95 96 96 #include "MParList.h" … … 424 424 if (!fWeight && !fWeightName.IsNull()) 425 425 { 426 fWeight = (M Weight*)pList->FindObject(fWeightName, "MWeight");426 fWeight = (MParameterD*)pList->FindObject(fWeightName, "MParameterD"); 427 427 428 428 if (!fWeight) 429 429 { 430 *fLog << err << fWeightName << " [M Weight] not found... aborting." << endl;430 *fLog << err << fWeightName << " [MParameterD] not found... aborting." << endl; 431 431 return kFALSE; 432 432 } … … 547 547 fCanvas->cd(); 548 548 549 const Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->Get Weight():1);549 const Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetVal():1); 550 550 fH->SetNumExecutions(GetNumExecutions()+1); 551 551 552 552 if (save && fCanvas) 553 553 save->cd(); 554 555 554 return rc; 556 555 } -
trunk/MagicSoft/Mars/mhbase/MFillH.h
r3788 r6915 9 9 class MMap; 10 10 class MData; 11 class M Weight;11 class MParameterD; 12 12 class MParList; 13 13 … … 30 30 TString fNameTab; 31 31 32 M Weight *fWeight;// Pointer to the container storing a weight32 MParameterD *fWeight; // Pointer to the container storing a weight 33 33 TString fWeightName; // Name of a container storing a weight 34 34 … … 62 62 void SetRuleForIdx(MData *rule); 63 63 64 void SetWeight(M Weight *w){ fWeight = w; }64 void SetWeight(MParameterD *w) { fWeight = w; } 65 65 void SetWeight(const char *name) { fWeightName = name; } 66 66 -
trunk/MagicSoft/Mars/mhbase/Makefile
r3927 r6915 23 23 SRCFILES = MFillH.cc \ 24 24 MBinning.cc \ 25 MWeight.cc \26 25 MH.cc \ 27 26 MH3.cc \
Note:
See TracChangeset
for help on using the changeset viewer.