Ignore:
Timestamp:
11/15/03 18:01:32 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MFillH.cc

    r2448 r2516  
    436436    // Now we have the histogram container available. Try to Setup Fill.
    437437    //
     438    fH->SetSerialNumber(GetSerialNumber());
    438439    if (!fH->SetupFill(pList))
    439440    {
  • trunk/MagicSoft/Mars/mhist/MH.h

    r2416 r2516  
    1919class MH : public MParContainer
    2020{
     21private:
     22    Byte_t fSerialNumber;
     23
    2124public:
    2225    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
    2333
    2434    Bool_t OverwritesDraw(TClass *cls=NULL) const;
     
    8494    static TObject *FindObjectInPad(const char *name, TVirtualPad *pad=NULL);
    8595
    86     ClassDef(MH, 0) //A base class for Mars histograms
     96    ClassDef(MH, 1) //A base class for Mars histograms
    8797};
    8898
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r2414 r2516  
    154154    if (!fMatrix)
    155155    {
    156         fMcEvt = (MMcEvt*)plist->FindObject("MMcEvt");
     156        fMcEvt = (MMcEvt*)plist->FindObject(AddSerialNumber("MMcEvt"));
    157157        if (!fMcEvt)
    158158        {
    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;
    160162            return kFALSE;
    161163        }
     
    563565
    564566    fMatrix = mat;
    565     fMap = fMatrix->AddColumn("MMcEvt.fPartId");
     567
     568    TString str = AddSerialNumber("MMcEvt");
     569    str += ".fPartId";
     570
     571    fMap = fMatrix->AddColumn(str);
    566572}
    567573
Note: See TracChangeset for help on using the changeset viewer.