Changeset 2516 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 11/15/03 18:01:32 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MFillH.cc
r2448 r2516 436 436 // Now we have the histogram container available. Try to Setup Fill. 437 437 // 438 fH->SetSerialNumber(GetSerialNumber()); 438 439 if (!fH->SetupFill(pList)) 439 440 { -
trunk/MagicSoft/Mars/mhist/MH.h
r2416 r2516 19 19 class MH : public MParContainer 20 20 { 21 private: 22 Byte_t fSerialNumber; 23 21 24 public: 22 25 MH(const char *name=NULL, const char *title=NULL); 26 27 28 virtual void SetSerialNumber(Byte_t num) { fSerialNumber = num; } 29 Byte_t GetSerialNumber() const { return fSerialNumber; } 30 TString AddSerialNumber(const char *str) const { TString s(str); if (fSerialNumber==0) return s; s += ";"; s += fSerialNumber; return s; } 31 TString AddSerialNumber(const TString &str) const { return AddSerialNumber((const char*)str); } 32 23 33 24 34 Bool_t OverwritesDraw(TClass *cls=NULL) const; … … 84 94 static TObject *FindObjectInPad(const char *name, TVirtualPad *pad=NULL); 85 95 86 ClassDef(MH, 0) //A base class for Mars histograms96 ClassDef(MH, 1) //A base class for Mars histograms 87 97 }; 88 98 -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r2414 r2516 154 154 if (!fMatrix) 155 155 { 156 fMcEvt = (MMcEvt*)plist->FindObject( "MMcEvt");156 fMcEvt = (MMcEvt*)plist->FindObject(AddSerialNumber("MMcEvt")); 157 157 if (!fMcEvt) 158 158 { 159 *fLog << err << dbginf << "MMcEvt not found... aborting." << endl; 159 TString str = AddSerialNumber("MMcEvt"); 160 str += " not found... aborting."; 161 *fLog << err << dbginf << str << endl; 160 162 return kFALSE; 161 163 } … … 563 565 564 566 fMatrix = mat; 565 fMap = fMatrix->AddColumn("MMcEvt.fPartId"); 567 568 TString str = AddSerialNumber("MMcEvt"); 569 str += ".fPartId"; 570 571 fMap = fMatrix->AddColumn(str); 566 572 } 567 573
Note:
See TracChangeset
for help on using the changeset viewer.